/* =========================================================
   يوني — نظام التصميم
   ========================================================= */

:root {
    --ink: #0f1430;
    --ink-2: #4a5170;
    --ink-3: #7b819c;
    --line: #e5e7f0;
    --line-2: #d6d9e6;
    --bg: #ffffff;
    --bg-soft: #f6f7fb;

    --brand: #4f46e5;
    --brand-600: #4338ca;
    --brand-ink: #312e81;
    --brand-soft: #eef0ff;
    --violet: #7c3aed;
    --success: #16a34a;
    --success-soft: #dcfce7;
    --danger: #e11d48;
    --wa: #25d366;

    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-sm: 0 1px 2px rgba(15, 20, 48, .05), 0 1px 3px rgba(15, 20, 48, .04);
    --shadow: 0 10px 30px -12px rgba(15, 20, 48, .18);
    --shadow-lg: 0 30px 60px -20px rgba(30, 27, 75, .35);

    --font: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
    --mono: ui-monospace, 'SFMono-Regular', 'Cascadia Code', Consolas, monospace;
    --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
.icon { display: inline-block; flex-shrink: 0; vertical-align: middle; }

h1, h2, h3 { line-height: 1.3; font-weight: 700; color: var(--ink); margin: 0; }
h1 { font-size: clamp(2rem, 3.6vw + 1rem, 3.5rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 1.8vw + 1rem, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
a { color: var(--brand); text-decoration: none; }
code { font-family: var(--mono); font-size: .9em; }

:focus-visible { outline: 3px solid rgba(79, 70, 229, .45); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 820px; }

.skip-link {
    position: absolute; top: -100px; inset-inline-start: 16px; z-index: 100;
    background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .75rem 1.3rem;
    font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
    border: 1.5px solid transparent; border-radius: 12px;
    cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: .95rem 1.6rem; font-size: 1.05rem; border-radius: 14px; }
.btn-sm { padding: .55rem 1rem; font-size: .925rem; border-radius: 10px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(79, 70, 229, .6); }
.btn-primary:hover { background: var(--brand-600); box-shadow: 0 12px 24px -8px rgba(79, 70, 229, .65); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-soft { background: var(--brand-soft); color: var(--brand); }
.btn-soft:hover { background: #e0e3ff; }
.btn-light { background: #fff; color: var(--brand-ink); }
.btn-light:hover { background: #f1f2ff; }
.btn-ghost-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .16); }
.btn-wa { background: var(--wa); color: #fff; }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; transition: gap .2s; }
.link-arrow:hover { gap: .7rem; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: inherit; }
.logo-mark { width: 38px; height: 38px; }
.logo-text { display: flex; flex-direction: column; gap: 3px; line-height: 1.15; }
.logo-name { font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.logo-latin { font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.logo-light .logo-name { color: #fff; }
.logo-light .logo-latin { color: #94a3b8; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px -12px rgba(15, 20, 48, .15); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }

.main-nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
    display: block; padding: .5rem .8rem; border-radius: 10px;
    color: var(--ink-2); font-weight: 500; font-size: .975rem;
    transition: color .2s, background-color .2s;
}
.main-nav a:hover { color: var(--ink); background: var(--bg-soft); }
.main-nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.main-nav-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
    display: none; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0;
    background: #fff; color: var(--ink); border: 1.5px solid var(--line-2); border-radius: 12px; cursor: pointer;
}
.nav-toggle-close { display: none; }
.nav-open .nav-toggle-open { display: none; }
.nav-open .nav-toggle-close { display: inline-flex; }

/* ---------- Pills / eyebrows ---------- */
.pill {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .4rem .95rem .4rem .8rem;
    background: #fff; border: 1px solid var(--line); border-radius: 999px;
    font-size: .875rem; font-weight: 500; color: var(--ink-2);
    box-shadow: var(--shadow-sm);
}
.pill-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.pill-dot::after {
    content: ""; position: absolute; inset: -4px; border-radius: 50%;
    background: var(--success); opacity: .3; animation: pulse 2s ease-out infinite;
}

.eyebrow {
    display: inline-block; margin-bottom: .75rem;
    padding: .25rem .8rem; border-radius: 999px;
    background: var(--brand-soft); color: var(--brand);
    font-size: .85rem; font-weight: 600;
}

.text-gradient {
    background: linear-gradient(100deg, var(--brand) 10%, var(--violet) 60%, #db2777 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 104px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(to right, rgba(15, 20, 48, .045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 20, 48, .045) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.hero-blob { position: absolute; border-radius: 50%; filter: blur(90px); }
.hero-blob-1 { width: 520px; height: 520px; top: -180px; left: -140px; background: #a5b4fc; opacity: .5; }
.hero-blob-2 { width: 420px; height: 420px; bottom: -220px; right: 8%; background: #f0abfc; opacity: .3; }

.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero-copy h1 { margin: 1.25rem 0 1.25rem; }
.hero-lead { font-size: 1.175rem; color: var(--ink-2); max-width: 34rem; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 1.75rem 0 0; }
.hero-checks li { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink-2); font-size: .95rem; }
.hero-checks .icon { color: var(--success); }

.hero-visual { position: relative; padding: 28px 8px 44px; }

.code-window {
    position: relative;
    background: #0f172a; border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden;
    animation: float 7s ease-in-out infinite;
}
.code-window-bar { direction: ltr; display: flex; align-items: center; gap: 7px; padding: 13px 16px; background: #131c36; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #f87171; } .dot-y { background: #fbbf24; } .dot-g { background: #34d399; }
.code-file { margin-left: 10px; font-family: var(--mono); font-size: .8rem; color: #94a3b8; }

.code {
    margin: 0; padding: 20px 22px 14px;
    font-family: var(--mono); font-size: .9rem; line-height: 1.95;
    color: #e2e8f0; text-align: left; overflow-x: auto; white-space: pre;
}
.code .ln { display: inline-block; width: 1.8rem; color: #475569; user-select: none; }
.code .kw { color: #c084fc; }
.code .fn { color: #60a5fa; }
.code .nu { color: #fbbf24; }
.code .cm { color: #64748b; }
.code span.hl-line:not(.ln) { text-decoration: underline wavy rgba(248, 113, 113, .9); text-underline-offset: 6px; }
.code .ln.hl-line { color: #fbbf24; }

.review-note {
    display: flex; gap: 12px; margin: 0 16px 18px; padding: 13px 15px;
    background: rgba(99, 102, 241, .14); border: 1px solid rgba(129, 140, 248, .3); border-radius: 14px;
    color: #e0e7ff; font-size: .875rem; line-height: 1.65;
}
.review-note strong { color: #fff; font-weight: 600; }
.review-note p { margin: 2px 0 0; color: #c7d2fe; }
.review-note code { background: rgba(0, 0, 0, .3); padding: 1px 6px; border-radius: 5px; color: #fca5a5; }
.review-avatar {
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 30px; height: 30px; border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff;
}

.float-card {
    position: absolute; z-index: 2;
    display: flex; align-items: center; gap: 11px;
    padding: 12px 15px; background: #fff;
    border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
    font-size: .85rem;
}
.float-card strong { display: block; color: var(--ink); font-weight: 600; }
.float-card span { color: var(--ink-3); font-size: .8rem; }
.float-card-1 { bottom: -4px; inset-inline-start: -18px; animation: float 6s ease-in-out infinite reverse; }
.float-card-2 { top: -4px; inset-inline-end: -14px; display: block; width: 230px; animation: float 8s ease-in-out infinite; }
.float-icon { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; }
.fi-green { background: var(--success-soft); color: var(--success); }
.progress-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.progress-head span { color: var(--brand) !important; font-weight: 700; font-size: .85rem !important; }
.progress { height: 8px; background: var(--brand-soft); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--violet)); }
.progress-meta { display: block; margin-top: 8px; font-size: .76rem !important; }

/* ---------- Guarantees ---------- */
.guarantees { border-block: 1px solid var(--line); background: #fff; }
.guarantee-list { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; }
.guarantee-list li { display: flex; align-items: center; gap: 14px; padding: 28px 20px; }
.guarantee-list li + li { border-inline-start: 1px solid var(--line); }
.guarantee-list strong { display: block; font-weight: 600; }
.guarantee-list span { color: var(--ink-3); font-size: .875rem; }
.g-icon {
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 46px; height: 46px; border-radius: 13px; background: var(--brand-soft); color: var(--brand);
}

/* ---------- Sections ---------- */
.section { padding-block: 96px; }
.section-tight { padding-block: 56px 96px; }
.section-soft { background: var(--bg-soft); }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { margin-bottom: .75rem; }
.section-head p { color: var(--ink-2); font-size: 1.075rem; margin: 0; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; text-align: start; }
.section-head-row h2 { margin: 0; }

/* ---------- Service cards ---------- */
.accent-indigo { --ac: #4f46e5; --ac-soft: #eef0ff; }
.accent-violet { --ac: #7c3aed; --ac-soft: #f3efff; }
.accent-teal   { --ac: #0d9488; --ac-soft: #e6faf6; }
.accent-amber  { --ac: #d97706; --ac-soft: #fff6e0; }
.accent-rose   { --ac: #e11d48; --ac-soft: #fff0f3; }
.accent-sky    { --ac: #0284c7; --ac-soft: #e8f6fe; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.service-card {
    position: relative; display: flex; flex-direction: column;
    padding: 30px 28px; background: #fff; color: inherit;
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service-card::before {
    content: ""; position: absolute; inset: 0 0 auto; height: 3px; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: var(--ac); opacity: 0; transition: opacity .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { opacity: 1; }
.service-card h3 { margin-bottom: .5rem; }
.service-card p { flex: 1; color: var(--ink-2); font-size: .96rem; }
.service-icon {
    display: flex; align-items: center; justify-content: center;
    width: 54px; height: 54px; margin-bottom: 22px;
    border-radius: 15px; background: var(--ac-soft, var(--brand-soft)); color: var(--ac, var(--brand));
}
.service-more { display: inline-flex; align-items: center; gap: .4rem; color: var(--ac); font-weight: 600; font-size: .95rem; transition: gap .2s; }
.service-card:hover .service-more { gap: .7rem; }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.why-copy h2 { margin-bottom: 1rem; }
.why-copy p { color: var(--ink-2); font-size: 1.075rem; margin-bottom: 1.5rem; }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.why-grid-4 { grid-template-columns: repeat(4, 1fr); }
.why-item { padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.why-item h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.why-item p { color: var(--ink-2); font-size: .94rem; margin: 0; }
.why-icon {
    display: flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; margin-bottom: 16px;
    border-radius: 13px; background: var(--brand-soft); color: var(--brand);
}

/* ---------- Steps ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.steps::before {
    content: ""; position: absolute; top: 49px; inset-inline: 12%;
    border-top: 2px dashed var(--line-2); z-index: 0;
}
.step { position: relative; z-index: 1; padding: 28px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--ink-2); font-size: .94rem; margin: 0; }
.step-num {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; margin-bottom: 18px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--violet)); color: #fff;
    font-weight: 700; box-shadow: 0 0 0 6px #fff;
}

/* ---------- Tech strip ---------- */
.tech { padding-block: 48px; border-block: 1px solid var(--line); }
.tech-title { text-align: center; color: var(--ink-3); font-size: .925rem; margin-bottom: 20px; }
.tech-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin: 0; padding: 0; }
.tech-list li {
    padding: .5rem 1.05rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft);
    font-family: var(--mono); font-size: .875rem; font-weight: 600; color: var(--ink-2);
}

/* ---------- Tool promo ---------- */
.tool-promo {
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
    padding: 56px; border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #eef0ff 0%, #f5f0ff 55%, #fdf2f8 100%);
    border: 1px solid #e3e5fb;
}
.tool-promo-copy h2 { margin-bottom: 1rem; }
.tool-promo-copy p { color: var(--ink-2); font-size: 1.075rem; margin-bottom: 1.75rem; }
.gpa-mock { max-width: 380px; margin-inline: auto; padding: 22px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.gpa-mock-row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.gpa-mock-row span:nth-child(2) { color: var(--ink-3); font-size: .85rem; }
.gpa-mock-row b { min-width: 42px; text-align: center; padding: 2px 10px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font-family: var(--mono); }
.gpa-mock-result {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: 16px; padding: 16px 18px; border-radius: var(--radius);
    background: linear-gradient(135deg, var(--brand), var(--violet)); color: #fff;
}
.gpa-mock-result strong { font-size: 1.9rem; line-height: 1; }
.gpa-mock-result em { font-style: normal; font-size: .85rem; font-weight: 600; padding: 3px 12px; border-radius: 99px; background: rgba(255, 255, 255, .2); }

/* ---------- Posts ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card {
    display: flex; flex-direction: column; padding: 26px;
    background: #fff; color: inherit; border: 1px solid var(--line); border-radius: var(--radius-lg);
    transition: transform .25s, box-shadow .25s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-cat { align-self: flex-start; padding: .2rem .7rem; border-radius: 99px; background: var(--brand-soft); color: var(--brand); font-size: .8rem; font-weight: 600; }
.post-card h3 { font-size: 1.12rem; line-height: 1.55; margin: 1rem 0 .5rem; }
.post-card p {
    flex: 1; color: var(--ink-2); font-size: .93rem;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--ink-3); font-size: .825rem; }
.post-meta span, .post-header-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq-side h2 { margin-bottom: .75rem; }
.faq-side p { color: var(--ink-2); margin-bottom: 1.25rem; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: #d5d8fb; box-shadow: var(--shadow-sm); }
.faq-item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 20px; cursor: pointer; list-style: none; font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle {
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 30px; height: 30px; border-radius: 50%; background: var(--bg-soft); color: var(--brand);
    transition: transform .25s, background-color .25s, color .25s;
}
.faq-item[open] .faq-toggle { transform: rotate(45deg); background: var(--brand); color: #fff; }
.faq-answer { padding: 0 20px 18px; }
.faq-answer p { margin: 0; color: var(--ink-2); line-height: 1.85; }

/* ---------- CTA band ---------- */
.cta-band {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
    padding: 56px; border-radius: var(--radius-xl); color: #fff;
    background: linear-gradient(130deg, #1e1b4b 0%, #3730a3 45%, #6d28d9 100%);
}
.cta-band-glow {
    position: absolute; z-index: -1; width: 480px; height: 480px; top: -240px; left: -120px; border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 114, 182, .45), transparent 65%);
}
.cta-band h2 { color: #fff; margin-bottom: .6rem; }
.cta-band p { color: rgba(255, 255, 255, .8); margin: 0; max-width: 540px; font-size: 1.05rem; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Page header ---------- */
.page-header { position: relative; overflow: hidden; isolation: isolate; padding: 48px 0 56px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-header-bg {
    position: absolute; inset: 0; z-index: -1;
    background-image:
        radial-gradient(600px 300px at 15% 0%, rgba(165, 180, 252, .35), transparent 70%),
        linear-gradient(to right, rgba(15, 20, 48, .04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 20, 48, .04) 1px, transparent 1px);
    background-size: auto, 44px 44px, 44px 44px;
}
.page-header h1 { font-size: clamp(1.9rem, 2.6vw + 1rem, 3rem); margin-bottom: .9rem; max-width: 900px; }
.page-header .lead { max-width: 720px; color: var(--ink-2); font-size: 1.15rem; line-height: 1.85; margin: 0; }
.page-header-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.post-header-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 4px; color: var(--ink-2); font-size: .95rem; }

.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0 0 22px; padding: 0; font-size: .875rem; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); }
.breadcrumbs a { color: var(--ink-2); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs [aria-current] { color: var(--ink-3); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Service detail ---------- */
.detail-layout, .about-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.detail-h2 { font-size: 1.5rem; margin: 52px 0 20px; }

.check-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; list-style: none; margin: 0; padding: 0; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; padding: 15px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); line-height: 1.6; }
.check-mark {
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--success-soft); color: var(--success);
}

.audience-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.audience-item { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--bg-soft); border-radius: var(--radius); }
.audience-item .icon { color: var(--brand); }

.tag-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tag-list li { padding: .35rem .85rem; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-family: var(--mono); font-size: .85rem; font-weight: 600; color: var(--ink-2); }

.side-card { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.side-card h2 { font-size: 1.2rem; margin: 0 0 16px; }
.side-card > p { color: var(--ink-2); font-size: .95rem; }
.side-card .service-icon + h2 { margin-top: -4px; }
.side-card .btn-block + .btn-block { margin-top: 10px; }
.side-card-sticky { position: sticky; top: calc(var(--header-h) + 24px); }
.side-card-soft { background: var(--bg-soft); box-shadow: none; }
.side-points { display: flex; flex-direction: column; gap: 11px; list-style: none; margin: 0 0 22px; padding: 0; }
.side-points li { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: .95rem; }
.side-points .icon { color: var(--success); }
.about-side .side-points .icon { color: var(--brand); }

/* ---------- Prose ---------- */
.prose { color: var(--ink-2); font-size: 1.075rem; line-height: 1.95; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { font-size: 1.55rem; margin: 2.1em 0 .7em; }
.prose h3 { font-size: 1.2rem; margin: 1.8em 0 .5em; }
.prose ul, .prose ol { padding-inline-start: 1.3rem; margin: 0 0 1.3em; }
.prose li { margin: .45em 0; }
.prose li::marker { color: var(--brand); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(79, 70, 229, .35); }
.prose pre {
    direction: ltr; text-align: left; overflow-x: auto; white-space: pre-wrap;
    margin: 0 0 1.2em; padding: 16px 18px; border-radius: 12px;
    background: #0f172a; color: #e2e8f0; font-family: var(--mono); font-size: .86rem; line-height: 1.8;
}
.prose pre em { color: #a5b4fc; }
.formula { padding: 16px 20px; border-radius: var(--radius); background: var(--brand-soft); color: var(--brand-ink) !important; font-weight: 600; text-align: center; }
.article { max-width: 760px; }

/* ---------- Forms ---------- */
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.order-side { display: flex; flex-direction: column; gap: 16px; }
.form-card { padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .925rem; }
.req { color: var(--danger); }

.form-card input:not([type="radio"]):not([type="checkbox"]),
.form-card select,
.form-card textarea {
    width: 100%; padding: .75rem .9rem;
    font: inherit; font-size: 1rem; color: var(--ink);
    background: #fff; border: 1.5px solid var(--line-2); border-radius: 12px;
    transition: border-color .2s, box-shadow .2s;
}
.form-card textarea { resize: vertical; min-height: 130px; line-height: 1.7; }
.form-card select {
    appearance: none; -webkit-appearance: none; padding-left: 2.4rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237b819c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: left .85rem center;
}
.form-card input::placeholder, .form-card textarea::placeholder { color: #a3a8bf; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79, 70, 229, .14);
}
.form-card .invalid { border-color: var(--danger) !important; }
.validation-message, .field-error { color: var(--danger); font-size: .85rem; }

.form-note {
    display: flex; align-items: flex-start; gap: 10px; margin: 22px 0;
    padding: 13px 15px; border-radius: 12px; background: var(--bg-soft);
    color: var(--ink-2); font-size: .9rem; line-height: 1.7;
}
.form-note .icon { margin-top: 4px; color: var(--brand); }

.mini-steps { display: flex; flex-direction: column; gap: 18px; list-style: none; margin: 0; padding: 0; }
.mini-steps li { display: flex; gap: 12px; }
.mini-steps li > span {
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: .9rem;
}
.mini-steps strong { display: block; }
.mini-steps p { margin: 2px 0 0; color: var(--ink-2); font-size: .9rem; }
.side-trust { display: flex; gap: 12px; }
.side-trust .icon { color: var(--brand); margin-top: 2px; }
.side-trust p { margin: 4px 0 0; color: var(--ink-2); font-size: .9rem; }

/* ---------- Timeline ---------- */
.timeline { max-width: 820px; margin: 0 auto; list-style: none; padding: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding-bottom: 36px; }
.timeline li:not(:last-child)::before {
    content: ""; position: absolute; top: 60px; bottom: 4px; inset-inline-start: 27px; width: 2px; background: var(--line);
}
.timeline-num {
    display: flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 50%; background: #fff;
    border: 2px solid var(--brand); color: var(--brand); font-weight: 700; font-size: 1.25rem;
}
.timeline-body { padding: 22px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.timeline-body h2 { font-size: 1.25rem; margin-bottom: .5rem; }
.timeline-body p { color: var(--ink-2); margin: 0; }

/* ---------- FAQ page ---------- */
.faq-page { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
.faq-nav { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 2px; }
.faq-nav a { padding: 10px 14px; border-radius: 10px; color: var(--ink-2); font-weight: 500; }
.faq-nav a:hover { background: var(--bg-soft); color: var(--brand); }
.faq-group { margin-bottom: 48px; }
.faq-group h2 { font-size: 1.4rem; margin-bottom: 18px; }
.faq-group h2 a { color: inherit; }
.faq-group h2 a:hover { color: var(--brand); }

/* ---------- GPA calculator ---------- */
.gpa-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.gpa-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.gpa-label { font-weight: 600; }
.segmented { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: .45rem 1.1rem; border-radius: 9px; font-weight: 600; color: var(--ink-2); transition: background-color .2s, color .2s; }
.segmented input:checked + span { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
.segmented input:focus-visible + span { outline: 3px solid rgba(79, 70, 229, .45); }

.gpa-head, .gpa-row { display: grid; grid-template-columns: minmax(0, 1fr) 88px 112px 46px; gap: 10px; }
.gpa-head { padding: 0 4px; margin-bottom: 8px; color: var(--ink-3); font-size: .82rem; font-weight: 600; }
.gpa-row { margin-bottom: 10px; }
.gpa-remove {
    display: flex; align-items: center; justify-content: center;
    background: #fff; color: var(--ink-3); border: 1.5px solid var(--line-2); border-radius: 12px; cursor: pointer;
    transition: color .2s, border-color .2s;
}
.gpa-remove:hover { color: var(--danger); border-color: var(--danger); }
.gpa-card .btn-soft { margin-top: 6px; }
.gpa-prev { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.gpa-prev summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.gpa-prev .form-grid { margin-top: 16px; }

.gpa-result { position: sticky; top: calc(var(--header-h) + 24px); }
.gpa-result-card {
    padding: 30px 26px; border-radius: 24px; text-align: center; color: #fff;
    background: linear-gradient(140deg, #312e81 0%, var(--brand) 50%, var(--violet) 100%);
    box-shadow: var(--shadow-lg);
}
.gpa-result-label { font-size: .95rem; opacity: .85; }
.gpa-result-value { display: block; margin: 6px 0 12px; font-size: 3.8rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.gpa-badge { display: inline-block; padding: .3rem 1rem; border-radius: 99px; background: rgba(255, 255, 255, .18); font-weight: 600; font-size: .9rem; }
.rating-excellent { background: #d1fae5; color: #065f46; }
.rating-vgood { background: #dbeafe; color: #1e40af; }
.rating-good { background: #fef3c7; color: #92400e; }
.rating-pass { background: #ffedd5; color: #9a3412; }
.rating-low { background: #fee2e2; color: #991b1b; }
.gpa-result-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.gpa-result-split div { padding: 13px; border-radius: 14px; background: rgba(255, 255, 255, .12); }
.gpa-result-split span { display: block; font-size: .8rem; opacity: .85; }
.gpa-result-split strong { font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.gpa-hint { margin-top: 14px; text-align: center; color: var(--ink-3); font-size: .825rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data-table th { padding: 13px 18px; background: var(--bg-soft); color: var(--ink-2); font-size: .85rem; font-weight: 600; text-align: start; white-space: nowrap; }
.data-table td { padding: 13px 18px; border-top: 1px solid var(--line); white-space: nowrap; }
.data-table tbody tr:hover { background: #fafbff; }
.grade-table td:nth-child(3) { font-family: var(--mono); font-weight: 700; color: var(--brand); }

/* ---------- 404 ---------- */
.not-found { padding: 120px 0; text-align: center; }
.not-found h1 { font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem); margin-bottom: .75rem; }
.not-found p { color: var(--ink-2); font-size: 1.1rem; }
.nf-code {
    display: block; font-size: clamp(5rem, 10vw, 8rem); font-weight: 700; line-height: 1;
    background: linear-gradient(135deg, var(--brand), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nf-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; padding: 72px 0 0; background: #0b1026; color: #cbd5e1; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin: 18px 0 22px; max-width: 340px; color: #94a3b8; font-size: .95rem; line-height: 1.85; }
.footer-wa {
    display: inline-flex; align-items: center; gap: 10px; padding: .65rem 1.05rem;
    border-radius: 12px; color: #fff; font-weight: 600;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
    transition: background-color .2s;
}
.footer-wa .icon { color: var(--wa); }
.footer-wa:hover { background: rgba(37, 211, 102, .15); }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; list-style: none; margin: 0; padding: 0; }
.footer-col a { color: #94a3b8; font-size: .95rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: 56px; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, .08);
    color: #64748b; font-size: .875rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Floating WhatsApp / mobile bar ---------- */
.wa-float {
    position: fixed; z-index: 40; bottom: 24px; left: 24px;
    display: flex; align-items: center; justify-content: center;
    width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff;
    box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .65);
    transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

.mobile-bar { display: none; }

/* ---------- Animations ---------- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(2); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
    .main-nav a { padding: .5rem .55rem; font-size: .925rem; }
    .why-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
    :root { --header-h: 64px; }

    .nav-toggle { display: inline-flex; }
    .main-nav {
        position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
        display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
        padding: 20px 20px calc(24px + env(safe-area-inset-bottom));
        background: #fff; overflow-y: auto;
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity .2s, transform .2s, visibility .2s;
    }
    .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
    .main-nav a { padding: .9rem 1rem; font-size: 1.1rem; border-radius: 12px; }
    .main-nav-cta { display: flex; flex-direction: column; gap: 10px; }
    .site-header.nav-open { background: #fff; }

    .hero { padding: 48px 0 72px; }
    .hero-inner { grid-template-columns: 1fr; gap: 56px; }
    .hero-visual { max-width: 560px; margin-inline: auto; width: 100%; }

    .guarantee-list { grid-template-columns: repeat(2, 1fr); }
    .guarantee-list li:nth-child(3) { border-inline-start: 0; }
    .guarantee-list li:nth-child(n + 3) { border-top: 1px solid var(--line); }

    .services-grid, .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .why, .faq-wrap { grid-template-columns: 1fr; gap: 40px; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .steps::before { display: none; }
    .tool-promo { grid-template-columns: 1fr; padding: 40px 32px; }

    .detail-layout, .about-layout, .article-layout, .order-layout, .gpa-layout { grid-template-columns: 1fr; gap: 32px; }
    .side-card-sticky, .gpa-result { position: static; }

    .faq-page { grid-template-columns: 1fr; gap: 24px; }
    .faq-nav {
        position: static; flex-direction: row; gap: 8px; overflow-x: auto; padding-bottom: 6px;
        scrollbar-width: none;
    }
    .faq-nav::-webkit-scrollbar { display: none; }
    .faq-nav a { flex-shrink: 0; padding: .5rem .95rem; border: 1px solid var(--line); border-radius: 99px; font-size: .9rem; white-space: nowrap; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }

    .cta-band { padding: 44px 36px; }
}

@media (max-width: 640px) {
    .container { padding-inline: 16px; }
    .section { padding-block: 64px; }
    .section-tight { padding-block: 36px 64px; }
    .section-head { margin-bottom: 32px; }
    .section-head-row { flex-direction: column; align-items: flex-start; }

    .header-cta { display: none; }

    .hero-lead { font-size: 1.05rem; }
    .hero-actions .btn { flex: 1 1 100%; }
    .code { font-size: .78rem; padding: 16px 14px 10px; }
    .code .ln { width: 1.4rem; }
    .float-card-1 { inset-inline-start: -4px; bottom: 0; }
    .float-card-2 { inset-inline-end: -4px; top: -10px; width: 196px; }

    .guarantee-list li { flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 14px; }

    .services-grid, .posts-grid, .why-grid, .why-grid-4, .steps, .check-list, .audience-grid, .form-grid { grid-template-columns: 1fr; }
    .service-card { padding: 24px 22px; }
    .tool-promo { padding: 32px 20px; border-radius: var(--radius-lg); }

    .cta-band { padding: 36px 22px; border-radius: var(--radius-lg); }
    .cta-band-actions, .cta-band-actions .btn { width: 100%; }

    .page-header { padding: 32px 0 40px; }
    .page-header .lead { font-size: 1.05rem; }
    .page-header-actions .btn { flex: 1 1 100%; }

    .form-card { padding: 22px 18px; }
    .gpa-head, .gpa-row { grid-template-columns: minmax(0, 1fr) 64px 84px 44px; gap: 8px; }
    .gpa-row input, .gpa-row select { padding-inline: .6rem !important; }
    .gpa-row select { padding-left: 1.6rem !important; background-position: left .4rem center !important; }

    .timeline li { grid-template-columns: 44px 1fr; gap: 14px; }
    .timeline-num { width: 44px; height: 44px; font-size: 1.05rem; }
    .timeline li:not(:last-child)::before { inset-inline-start: 21px; top: 48px; }
    .timeline-body { padding: 18px; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .site-footer { padding-bottom: 76px; }

    .wa-float { display: none; }
    .mobile-bar {
        position: fixed; z-index: 45; inset: auto 0 0 0;
        display: grid; grid-template-columns: 1fr 52px; gap: 10px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .94); border-top: 1px solid var(--line);
        backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    }
    .mobile-bar .btn { padding-block: .85rem; }
    .mobile-bar .btn-wa { padding: 0; }
    .nav-open ~ .mobile-bar { display: none; }
}

/* =========================================================
   المرحلة الثانية: الطلبات، التتبع، الآراء، لوحة الإدارة
   ========================================================= */

/* ---------- Alerts ---------- */
.alert { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; padding: 12px 16px; border-radius: 12px; font-size: .95rem; font-weight: 500; }
.alert-error { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.alert-muted { background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); }
.alert-sub { flex-basis: 100%; font-weight: 400; font-size: .875rem; opacity: .85; }

/* ---------- Order form extras ---------- */
.dropzone {
    position: relative; display: flex; align-items: center; gap: 14px; padding: 18px;
    border: 2px dashed var(--line-2); border-radius: 14px; background: var(--bg-soft);
    cursor: pointer; transition: border-color .2s, background-color .2s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: var(--brand-soft); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
.dropzone-text { display: flex; flex-direction: column; gap: 2px; }
.dropzone-text strong { font-weight: 600; }
.dropzone-text span { color: var(--ink-3); font-size: .85rem; }
.file-list { display: flex; flex-direction: column; gap: 6px; list-style: none; margin: 10px 0 0; padding: 0; }
.file-list:empty { display: none; }
.file-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: .9rem; }
.file-list li span:last-child { color: var(--ink-3); white-space: nowrap; }
.file-list li.too-big { border-color: #fecdd3; color: #be123c; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-hint { margin: 10px 0 0; color: var(--ink-3); font-size: .85rem; text-align: center; }
.side-link { display: inline-flex; align-items: center; gap: 8px; padding: 6px 4px; font-weight: 600; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ---------- Received ---------- */
.received { position: relative; overflow: hidden; isolation: isolate; padding: 72px 0 96px; }
.received-bg {
    position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(700px 360px at 50% 0%, rgba(165, 180, 252, .45), transparent 70%), var(--bg-soft);
}
.received-card { max-width: 640px; margin: 0 auto; padding: 44px 36px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.received-check { display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 50%; background: var(--success-soft); color: var(--success); box-shadow: 0 0 0 10px #f0fdf4; }
.received-card h1 { font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem); margin: 24px 0 10px; }
.received-lead { color: var(--ink-2); font-size: 1.05rem; }
.code-box { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 26px 0; padding: 22px; border-radius: 18px; background: var(--brand-soft); border: 1px dashed #c7cbfb; }
.code-label { color: var(--ink-3); font-size: .85rem; font-weight: 600; }
.code-value { font-family: var(--mono); font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: .08em; color: var(--brand-ink); }
.received-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.received-notes { display: flex; flex-direction: column; gap: 10px; margin: 28px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; text-align: start; }
.received-notes li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); font-size: .95rem; }
.received-notes .icon { color: var(--brand); margin-top: 3px; }

/* ---------- Status badges ---------- */
.status-badge { display: inline-flex; align-items: center; padding: .3rem .85rem; border-radius: 99px; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.status-badge.sm { padding: .15rem .6rem; font-size: .78rem; }
.st-new { background: #dbeafe; color: #1d4ed8; }
.st-quoted { background: #fef3c7; color: #b45309; }
.st-progress { background: #e0e7ff; color: #4338ca; }
.st-delivered { background: #ccfbf1; color: #0f766e; }
.st-completed { background: #dcfce7; color: #15803d; }
.st-cancelled { background: #f1f5f9; color: #475569; }

/* ---------- Track ---------- */
.track-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; }
.track-form .alert { margin: 16px 0 0; }
.track-result { margin-top: 24px; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.track-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.track-head strong { display: block; font-family: var(--mono); font-size: 1.5rem; letter-spacing: .05em; }

.progress-steps { display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; margin: 28px 0; padding: 0; }
.progress-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.progress-steps li:not(:last-child)::after {
    content: ""; position: absolute; top: 15px; inset-inline-start: calc(50% + 20px); width: calc(100% - 40px); height: 2px; background: var(--line);
}
.progress-steps li.done:not(:last-child)::after { background: var(--brand); }
.ps-dot {
    position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid var(--line-2);
    color: var(--ink-3); font-size: .85rem; font-weight: 700;
}
.progress-steps li.done .ps-dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.progress-steps li.current .ps-dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft); }
.ps-label { font-size: .82rem; color: var(--ink-3); line-height: 1.4; }
.progress-steps li.done .ps-label, .progress-steps li.current .ps-label { color: var(--ink); font-weight: 600; }

.track-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 0 24px; }
.track-facts div, .facts div { padding: 14px 16px; background: var(--bg-soft); border-radius: 12px; }
.track-facts dt, .facts dt { color: var(--ink-3); font-size: .82rem; margin-bottom: 2px; }
.track-facts dd, .facts dd { margin: 0; font-weight: 600; }
.track-h2 { font-size: 1.15rem; margin: 0 0 14px; }

.updates { list-style: none; margin: 0 0 22px; padding: 0; }
.updates li { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 12px; padding-bottom: 18px; }
.updates li:not(:last-child)::before { content: ""; position: absolute; top: 16px; bottom: 0; inset-inline-start: 6px; width: 2px; background: var(--line); }
.upd-dot { width: 14px; height: 14px; margin-top: 5px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.updates li.private .upd-dot { border-color: var(--ink-3); }
.updates time { color: var(--ink-3); font-size: .82rem; margin-inline-end: 8px; }
.updates p { margin: 4px 0 0; color: var(--ink-2); white-space: pre-line; }
.updates li.private > div { padding: 8px 12px; background: #fafafa; border: 1px dashed var(--line-2); border-radius: 10px; }
.tag-private { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; color: var(--ink-3); font-weight: 600; }
.upd-author { display: block; margin-top: 2px; color: var(--ink-3); font-size: .78rem; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi-card { display: flex; flex-direction: column; margin: 0; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.testi-card blockquote { flex: 1; margin: 12px 0 20px; color: var(--ink-2); line-height: 1.9; }
.testi-card figcaption { display: flex; align-items: center; gap: 12px; }
.testi-card figcaption strong { display: block; }
.testi-card figcaption small { display: block; color: var(--ink-3); font-size: .85rem; }
.testi-avatar { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--violet)); color: #fff; font-weight: 700; }
.stars { display: flex; gap: 2px; color: #e2e4ee; font-size: 1.1rem; line-height: 1; }
.stars .on { color: #f59e0b; }

/* ---------- Login ---------- */
.login { position: relative; display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px 16px; isolation: isolate; }
.login-bg {
    position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(600px 400px at 80% 10%, rgba(165, 180, 252, .5), transparent 70%),
                radial-gradient(500px 360px at 10% 90%, rgba(240, 171, 252, .35), transparent 70%), var(--bg-soft);
}
.login-card { width: 100%; max-width: 420px; text-align: center; }
.login-card h1 { font-size: 1.6rem; margin: 22px 0 6px; }
.login-card > p { color: var(--ink-2); }
.login-form { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; text-align: start; }

/* ---------- Admin shell ---------- */
.adm { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; background: var(--bg-soft); }
.adm-side { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 24px 16px; background: #0b1026; color: #cbd5e1; }
.adm-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 0 8px 22px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.adm-badge { font-size: .78rem; font-weight: 600; color: #a5b4fc; background: rgba(129, 140, 248, .15); padding: 2px 10px; border-radius: 99px; }
.adm-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; }
.adm-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: #cbd5e1; font-weight: 500; transition: background-color .2s, color .2s; }
.adm-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.adm-nav a[aria-current="page"] { background: var(--brand); color: #fff; }
.adm-side-foot { display: flex; flex-direction: column; gap: 4px; margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .08); }
.adm-side-foot a, .adm-side-foot button {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px;
    background: none; border: 0; border-radius: 10px; color: #94a3b8; font: inherit; font-size: .925rem; cursor: pointer; text-align: start;
}
.adm-side-foot a:hover, .adm-side-foot button:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.adm-main { padding: 32px 36px 64px; min-width: 0; }

.adm-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.adm-head h1 { font-size: 1.7rem; margin-bottom: 4px; }
.adm-head p { color: var(--ink-2); margin: 0; }
.adm-head-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.adm-crumbs { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; color: var(--ink-3); font-size: .875rem; }
.adm-crumbs a { color: var(--ink-2); }
.order-title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-family: var(--mono); letter-spacing: .03em; }
.order-title .status-badge { font-family: var(--font); letter-spacing: 0; }

.adm-search { display: flex; align-items: center; gap: 8px; min-width: min(360px, 100%); padding: 0 14px; background: #fff; border: 1.5px solid var(--line-2); border-radius: 12px; color: var(--ink-3); }
.adm-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79, 70, 229, .14); }
.adm-search input { flex: 1; min-width: 0; padding: .7rem 0; border: 0; outline: 0; background: none; font: inherit; color: var(--ink); }

.status-tabs { display: flex; gap: 6px; margin-bottom: 18px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.status-tabs a { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: .5rem .95rem; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: .9rem; font-weight: 500; }
.status-tabs a span { min-width: 22px; padding: 0 6px; border-radius: 99px; background: var(--bg-soft); font-size: .78rem; text-align: center; }
.status-tabs a.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.status-tabs a.active span { background: rgba(255, 255, 255, .18); }

.adm-card { padding: 24px; margin-bottom: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.adm-card h2 { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; margin-bottom: 16px; }
.adm-card .count { padding: 0 8px; border-radius: 99px; background: var(--bg-soft); color: var(--ink-3); font-size: .8rem; }
.adm-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.adm-card-head h2 { margin: 0; }
.narrow-card { max-width: 720px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); color: inherit; transition: box-shadow .2s, transform .2s; }
a.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.stat-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 6px; border-radius: 11px; }
.stat-label { color: var(--ink-2); font-size: .9rem; }
.stat-card strong { font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }

.adm-table-wrap { border-radius: 14px; }
.adm-table td { vertical-align: middle; }
.code-link { font-family: var(--mono); font-weight: 700; letter-spacing: .03em; }
.cell-main { display: block; color: var(--ink); font-weight: 600; }
.cell-sub { display: flex; align-items: center; gap: 4px; color: var(--ink-3); font-size: .8rem; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 16px; text-align: center; color: var(--ink-3); }
.empty p { margin: 0; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; color: var(--ink-2); font-size: .9rem; }

.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.order-actions { position: sticky; top: 20px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; }
.ltr-start { text-align: right; }
.sub-h { font-size: .95rem; margin: 22px 0 8px; color: var(--ink-2); }
.details-text { margin: 0; padding: 16px; background: var(--bg-soft); border-radius: 12px; white-space: pre-line; line-height: 1.9; }
.muted { color: var(--ink-3); margin: 0; }
.files { display: flex; flex-direction: column; gap: 8px; list-style: none; margin: 0; padding: 0; }
.files li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.file-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); flex-shrink: 0; }
.file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.file-size { color: var(--ink-3); font-size: .82rem; white-space: nowrap; }

.form-card.plain { padding: 0; border: 0; box-shadow: none; display: flex; flex-direction: column; gap: 14px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: .95rem; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.form-actions { display: flex; gap: 10px; }
.btn-danger-soft { background: #fff1f2; color: #be123c; }
.btn-danger-soft:hover { background: #ffe4e6; }

.testi-admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.testi-admin { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.testi-admin.is-draft { background: #fcfcfd; border-style: dashed; }
.testi-admin p { flex: 1; margin: 0; color: var(--ink-2); }
.testi-admin-head { display: flex; justify-content: space-between; gap: 10px; }
.testi-admin-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }

@media (max-width: 1080px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .order-grid { grid-template-columns: 1fr; }
    .order-actions { position: static; }
}

@media (max-width: 960px) {
    .testi-grid { grid-template-columns: 1fr 1fr; }
    .adm { grid-template-columns: 1fr; }
    .adm-side { position: sticky; top: 0; z-index: 30; height: auto; flex-direction: row; align-items: center; gap: 12px; padding: 10px 16px; overflow-x: auto; }
    .adm-brand { flex-direction: row; align-items: center; padding: 0; border: 0; flex-shrink: 0; }
    .adm-brand .logo-text, .adm-badge { display: none; }
    .adm-nav { flex-direction: row; margin: 0; flex-shrink: 0; }
    .adm-nav a { padding: 8px 10px; font-size: .9rem; white-space: nowrap; }
    .adm-side-foot { flex-direction: row; margin: 0; margin-inline-start: auto; padding: 0; border: 0; flex-shrink: 0; }
    .adm-side-foot a, .adm-side-foot button { padding: 8px 10px; white-space: nowrap; font-size: .875rem; }
    .adm-main { padding: 22px 16px 48px; }
    .testi-admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .received { padding: 32px 0 72px; }
    .received-card { padding: 32px 20px; border-radius: var(--radius-lg); }
    .received-actions .btn { flex: 1 1 100%; }
    .track-grid { grid-template-columns: 1fr; }
    .track-result { padding: 20px 16px; }
    .track-facts, .facts { grid-template-columns: 1fr; }
    .progress-steps { grid-template-columns: 1fr; gap: 0; margin: 20px 0; }
    .progress-steps li { flex-direction: row; gap: 12px; padding-bottom: 14px; text-align: start; }
    .progress-steps li:not(:last-child)::after { top: 32px; inset-inline-start: 15px; width: 2px; height: calc(100% - 32px); }
    .ps-label { font-size: .9rem; }
    .testi-grid { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { padding: 16px; }
    .stat-card strong { font-size: 1.6rem; }
    .adm-head h1 { font-size: 1.4rem; }
    .adm-card { padding: 18px 14px; }
    .adm-side-foot a { display: none; }
}
