/* =========================================================
   LINKBS — Software & App Solutions
   Developed by LINK Development Team
   ألوان اللوجو: أبيض / أسود / أزرق
   ========================================================= */
:root {
    --brand: #0B63CE;
    --brand-dark: #084C9E;
    --brand-soft: #E8F1FC;
    --ink: #0E1116;
    --ink-2: #2B313B;
    --muted: #5F6B7A;
    --line: #E4E8EE;
    --soft: #F5F7FA;
    --white: #FFFFFF;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px rgba(14, 17, 22, .07);
    --shadow-lg: 0 24px 60px rgba(14, 17, 22, .12);
    --font: 'Inter', 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.is-rtl { --font: 'Cairo', 'Inter', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 10px; top: 10px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem; border: 2px solid transparent; cursor: pointer; transition: .25s ease; font-family: inherit; white-space: nowrap; }
.btn-sm { padding: 9px 18px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(11, 99, 206, .28); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--brand); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--brand); }
.btn-white:hover { transform: translateY(-2px); }
.btn-outline-white { color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { background: #fff; color: var(--brand); }
.btn-accent { background: var(--accent, var(--brand)); color: #fff; }
.btn-accent:hover { filter: brightness(.9); transform: translateY(-2px); }
.btn-danger { background: #DC2626; color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand); }
.is-rtl .link-arrow svg, .is-rtl .btn svg.flip { transform: scaleX(-1); }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: .3s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(0,0,0,.04); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand img { height: 48px; width: auto; }
.main-nav { display: flex; gap: 6px; }
.main-nav a { padding: 8px 14px; border-radius: 999px; font-weight: 600; color: var(--ink-2); transition: .2s; }
.main-nav a:hover { color: var(--brand); }
.main-nav a.active { color: var(--brand); background: var(--brand-soft); }
.nav-lang-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { font-weight: 700; font-size: .92rem; color: var(--muted); }
.lang-switch:hover { color: var(--brand); }
.burger { display: none; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--ink); }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 70px 0 40px; }
.hero-bg { position: absolute; inset: 0; z-index: -1;
    background:
      radial-gradient(600px 400px at 85% 10%, rgba(11,99,206,.12), transparent 70%),
      radial-gradient(500px 300px at 5% 90%, rgba(11,99,206,.08), transparent 70%),
      linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 48px 48px,
      linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 48px 48px;
    mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
    opacity: .9; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .88rem; font-weight: 600; margin-bottom: 22px; }
.pill svg { color: #6FB1FF; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); letter-spacing: -.02em; }
.is-rtl .hero h1 { letter-spacing: 0; line-height: 1.35; }
.hero h1 span { color: var(--brand); position: relative; white-space: nowrap; }
.hero h1 span::after { content: ""; position: absolute; inset-inline: 0; bottom: .05em; height: .18em; background: var(--brand-soft); z-index: -1; border-radius: 4px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Mock dashboard */
.hero-visual { position: relative; min-height: 400px; }
.mock-window { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.hero-visual .mock-window { animation: float 6s ease-in-out infinite; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--soft); border-bottom: 1px solid var(--line); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #D9DEE6; }
.mock-bar i:first-child { background: #FF6B6B; } .mock-bar i:nth-child(2) { background: #FFC24B; } .mock-bar i:nth-child(3) { background: #3DD68C; }
.mock-bar span { margin-inline-start: 10px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.mock-body { display: grid; grid-template-columns: 58px 1fr; min-height: 330px; }
.mock-side { background: var(--ink); padding: 16px 12px; display: flex; flex-direction: column; gap: 12px; }
.mock-side b { display: block; height: 32px; border-radius: 8px; background: rgba(255,255,255,.1); }
.mock-side b.on { background: var(--brand); }
.mock-main { padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpis div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.mock-kpis small { display: block; color: var(--muted); font-size: .75rem; }
.mock-kpis strong { font-size: 1.15rem; }
.mock-kpis div:first-child strong { color: var(--brand); }
.mock-chart { flex: 1; display: flex; align-items: flex-end; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; min-height: 140px; }
.mock-chart span { flex: 1; height: var(--h); background: linear-gradient(to top, var(--brand), #5AA4FF); border-radius: 6px 6px 2px 2px; transform-origin: bottom; animation: grow 1.2s cubic-bezier(.2,.8,.2,1) both; }
.mock-chart span:nth-child(odd) { background: linear-gradient(to top, var(--ink), #4B5563); }
.mock-chart span:nth-child(2) { animation-delay: .08s; } .mock-chart span:nth-child(3) { animation-delay: .16s; } .mock-chart span:nth-child(4) { animation-delay: .24s; }
.mock-chart span:nth-child(5) { animation-delay: .32s; } .mock-chart span:nth-child(6) { animation-delay: .40s; } .mock-chart span:nth-child(7) { animation-delay: .48s; } .mock-chart span:nth-child(8) { animation-delay: .56s; }
.mock-rows { display: grid; gap: 8px; }
.mock-rows i { height: 12px; border-radius: 6px; background: var(--soft); }
.mock-rows i:nth-child(2) { width: 80%; } .mock-rows i:nth-child(3) { width: 60%; }
.mock-phone { position: absolute; bottom: -20px; left: -30px; width: 150px; height: 270px; background: #fff; border: 6px solid var(--ink); border-radius: 26px; padding: 22px 12px 12px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 9px; animation: float 6s ease-in-out infinite reverse; }
.mp-notch { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 50px; height: 8px; background: var(--ink); border-radius: 6px; }
.mp-line { height: 9px; border-radius: 5px; background: var(--soft); }
.w70 { width: 70%; } .w90 { width: 90%; } .w50 { width: 50%; }
.mp-card { height: 70px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), #5AA4FF); }
.mp-card.short { height: 50px; background: var(--ink); }
.mock-chip { position: absolute; top: -26px; right: 30px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 999px; padding: 8px 16px; font-size: .85rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2s infinite; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 70px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow); }
.stat strong { display: block; font-size: 2rem; font-weight: 800; color: var(--brand); font-family: 'Inter', sans-serif; }
.stat span { color: var(--muted); font-weight: 600; }

/* ===== Tech strip ===== */
.tech-strip { border-block: 1px solid var(--line); background: var(--soft); padding: 22px 0; margin-top: 30px; }
.tech-inner { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; justify-content: center; }
.tech-title { font-weight: 700; color: var(--muted); }
.tech-list { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; }
.tech-list span { font-weight: 800; color: var(--ink-2); font-size: 1.05rem; opacity: .75; transition: .2s; }
.tech-list span:hover { opacity: 1; color: var(--brand); }

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section-soft { background: var(--soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.kicker { display: inline-block; font-weight: 800; color: var(--brand); text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; margin-bottom: 10px; }
.is-rtl .kicker { letter-spacing: 0; font-size: .95rem; }
.kicker-light { color: #6FB1FF; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.icon-box { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); flex-shrink: 0; transition: .3s; }
.icon-box-sm { width: 46px; height: 46px; border-radius: 12px; }

.service-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: .3s; position: relative; overflow: hidden; }
.service-card::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; height: 4px; width: 0; background: var(--brand); transition: .4s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { width: 100%; }
.service-card:hover .icon-box { background: var(--brand); color: #fff; }
.service-card h3 { margin-top: 20px; font-size: 1.3rem; color: var(--brand); }
.service-card p { color: var(--muted); flex: 1; }

.product-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: .3s; border-top: 4px solid var(--accent); }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.product-mark { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; font-size: 1.4rem; font-family: 'Inter', sans-serif; }
.product-card h3 { margin: 0; font-size: 1.35rem; letter-spacing: .04em; font-family: 'Inter', sans-serif; }
.product-tag { font-size: .85rem; color: var(--muted); font-weight: 600; }
.product-card > p { color: var(--muted); }
.mini-list { display: grid; gap: 8px; margin-bottom: 20px; }
.mini-list li { display: flex; gap: 8px; align-items: flex-start; font-size: .95rem; }
.mini-list svg { color: var(--accent, var(--brand)); flex-shrink: 0; margin-top: 5px; }
.product-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.product-actions .link-arrow { color: var(--accent); font-size: .92rem; }
.product-dev { display: block; margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .75rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; font-family: 'Inter', sans-serif; direction: ltr; text-align: center; }

/* ===== Team band ===== */
.team-band { background: var(--ink); color: #fff; padding: 90px 0; position: relative; overflow: hidden; }
.team-band::before { content: ""; position: absolute; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(11,99,206,.45), transparent 70%); top: -200px; inset-inline-end: -150px; }
.team-grid { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.team-title { font-size: clamp(2rem, 4vw, 3.2rem); font-family: 'Inter', sans-serif; letter-spacing: -.01em; }
.is-rtl .team-title { text-align: right; }
.team-title span { color: #6FB1FF; }
.team-band p { color: #C9D1DC; font-size: 1.08rem; }
.team-points { display: grid; gap: 14px; }
.team-points li { display: flex; align-items: center; gap: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); padding: 18px 20px; border-radius: 14px; font-weight: 600; transition: .3s; }
.team-points li:hover { background: rgba(11,99,206,.25); border-color: var(--brand); }
.team-points .num { font-family: 'Inter', sans-serif; font-weight: 800; color: #6FB1FF; font-size: 1.1rem; }

/* ===== Process ===== */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.process li { position: relative; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.step-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 14px; font-family: 'Inter', sans-serif; transition: .3s; }
.process li:hover .step-num { background: var(--brand); transform: scale(1.1); }
.process h3 { font-size: 1.2rem; }
.process p, .why-card p { color: var(--muted); margin: 0; }
.why-card { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); transition: .3s; }
.why-card:hover { box-shadow: var(--shadow); }
.why-card h3 { margin-top: 16px; font-size: 1.2rem; }

/* ===== CTA ===== */
.cta-band { background: linear-gradient(120deg, var(--brand), var(--brand-dark)); color: #fff; padding: 60px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); margin-bottom: .3em; }
.cta-band p { margin: 0; opacity: .9; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== Inner pages ===== */
.page-hero { padding: 80px 0 60px; background: var(--soft); border-bottom: 1px solid var(--line); text-align: center; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(11,99,206,.12), transparent 70%); top: -150px; inset-inline-end: -100px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); position: relative; z-index: 1; }
.page-hero p { color: var(--muted); font-size: 1.12rem; max-width: 700px; margin-inline: auto; position: relative; z-index: 1; }

.services-list { display: grid; gap: 22px; }
.service-row { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); transition: .3s; }
.service-row:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.service-row h2 { font-size: 1.45rem; color: var(--brand); }
.service-row p { color: var(--muted); }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 20px; }
.check-grid li, .check-list li { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; }
.check-grid svg, .check-list svg { color: var(--brand); flex-shrink: 0; margin-top: 5px; }

.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 50px; align-items: start; }
.detail-intro { font-size: 1.15rem; color: var(--ink-2); }
.check-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; margin: 30px 0; }
.check-list li { padding: 16px; border-radius: 12px; background: var(--soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); font-weight: 700; font-size: .88rem; color: var(--ink-2); }
.side-card { position: sticky; top: 100px; padding: 32px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.side-card h3 { margin-top: 18px; }
.side-card p { color: var(--muted); }

.dev-badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: #fff; font-size: .82rem; font-weight: 700; font-family: 'Inter', sans-serif; direction: ltr; }
.dev-badge svg { color: #6FB1FF; }
.dev-badge-dark { background: var(--soft); border-color: var(--line); color: var(--ink); }
.dev-badge-dark svg { color: var(--brand); }

.product-hero { padding: 80px 0; background: linear-gradient(180deg, var(--soft), #fff); border-bottom: 1px solid var(--line); }
.product-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.product-hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); color: var(--accent); letter-spacing: .03em; font-family: 'Inter', sans-serif; margin-bottom: .1em; }
.is-rtl .product-hero h1 { text-align: right; }
.product-hero-tag { font-weight: 800; font-size: 1.15rem; }
.pv-body { padding: 26px; display: grid; gap: 12px; }
.pv-title { font-weight: 800; font-size: 1.6rem; color: var(--accent); font-family: 'Inter', sans-serif; }
.pv-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); font-weight: 600; }
.pv-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.feature-tile { display: flex; gap: 12px; align-items: center; padding: 22px; border-radius: 14px; border: 1px solid var(--line); font-weight: 700; transition: .3s; }
.feature-tile svg { color: var(--accent); flex-shrink: 0; }
.feature-tile:hover { border-color: var(--accent); transform: translateY(-3px); }

.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 50px; align-items: center; }
.about-year { text-align: center; padding: 40px; border-radius: var(--radius); background: var(--ink); color: #fff; }
.about-year strong { display: block; font-size: 4.5rem; line-height: 1; color: #6FB1FF; font-family: 'Inter', sans-serif; }
.about-year span { font-weight: 700; opacity: .85; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 14px; }
.info-card { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; transition: .25s; }
.info-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.info-card small { display: block; color: var(--muted); font-weight: 600; }
.info-card strong { font-size: 1.02rem; word-break: break-word; }
.contact-form { display: grid; gap: 16px; padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-weight: 700; font-size: .93rem; }
.contact-form label.check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.contact-form input:not([type=checkbox]), .contact-form select, .contact-form textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); font: inherit; font-weight: 500; background: #fff; color: var(--ink); transition: .2s; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.contact-form textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: 10px; font-weight: 600; }
.alert ul { padding-inline-start: 18px; list-style: disc; }
.alert-success { background: #ECFDF3; color: #067647; border: 1px solid #ABEFC6; }
.alert-error { background: #FEF3F2; color: #B42318; border: 1px solid #FECDCA; }

.page-404 { padding: 120px 0; }
.big-404 { display: block; font-size: 7rem; line-height: 1; color: var(--brand); font-family: 'Inter', sans-serif; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #C9D1DC; padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer-about img { height: 48px; width: auto; margin-bottom: 18px; }
.footer-about p { color: #9AA6B5; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a:hover { color: #6FB1FF; }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-contact svg { color: #6FB1FF; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; font-size: .9rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.footer-bottom strong { color: #fff; font-family: 'Inter', sans-serif; }

.wa-float { position: fixed; bottom: 22px; inset-inline-end: 22px; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 25px rgba(37,211,102,.4); z-index: 60; transition: .25s; }
.wa-float:hover { transform: scale(1.08); }

/* ===== Admin ===== */
.admin-body { background: var(--soft); min-height: 100vh; }
.admin-top { background: #fff; border-bottom: 1px solid var(--line); }
.admin-top-inner { display: flex; justify-content: space-between; align-items: center; height: 66px; }
.admin-top img { height: 32px; width: auto; }
.admin-top-actions { display: flex; align-items: center; gap: 18px; font-weight: 600; }
.admin-top-actions form { margin: 0; }
.admin-main { padding: 36px 0; }
.auth-box { width: min(440px, 100% - 40px); margin: 40px auto; text-align: center; }
.auth-box img { margin: 0 auto 16px; height: 44px; width: auto; }
.auth-box .contact-form { text-align: start; margin-top: 20px; }
.auth-foot { margin-top: 20px; color: var(--muted); font-size: .85rem; font-family: 'Inter', sans-serif; }
.muted { color: var(--muted); }
.admin-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.admin-head h1 { margin: 0; font-size: 1.7rem; }
.admin-tabs { display: flex; gap: 8px; }
.admin-tabs a { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; }
.admin-tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.admin-tabs b { margin-inline-start: 6px; color: var(--brand); }
.admin-tabs a.on b { color: #6FB1FF; }
.admin-search input { width: 100%; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); font: inherit; margin-bottom: 16px; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.admin-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.admin-table th, .admin-table td { padding: 14px 16px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { background: var(--soft); font-size: .88rem; color: var(--muted); }
.admin-table td small { display: block; color: var(--muted); }
.admin-table tr.unread td { background: #F4F8FE; }
.admin-table tr.unread a { font-weight: 800; color: var(--brand); }
.admin-table .empty { text-align: center; color: var(--muted); padding: 40px; }
.pager { margin-top: 16px; }
.pager nav ul, .pager .pagination { display: flex; gap: 8px; list-style: none; }
.pager .pagination li a, .pager .pagination li span { padding: 8px 14px; border-radius: 8px; background: #fff; border: 1px solid var(--line); display: inline-block; }
.link-back { display: inline-block; margin-bottom: 16px; font-weight: 700; color: var(--brand); }
.msg-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 30px; }
.msg-card header { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.msg-card header span { color: var(--muted); }
.msg-meta { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 20px 0; }
.msg-meta dt { color: var(--muted); font-weight: 700; }
.msg-meta dd { margin: 0; font-weight: 600; }
.msg-body { padding: 20px; border-radius: 12px; background: var(--soft); white-space: normal; line-height: 1.9; }
.msg-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.msg-actions form { margin: 0; }

/* ===== Animations ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); } 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
    .main-nav { position: fixed; top: 76px; inset-inline: 0; flex-direction: column; background: #fff; padding: 16px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(-120%); transition: transform .35s ease; z-index: -1; }
    .main-nav.open { transform: none; }
    .main-nav a { padding: 12px 14px; }
    .nav-lang-mobile { display: block; }
    .lang-switch { display: none; }
    .burger { display: block; }
    .header-actions .btn { display: none; }
    .hero-grid, .team-grid, .detail-grid, .about-grid, .contact-grid, .product-hero-grid { grid-template-columns: 1fr; }
    .hero-visual { min-height: 0; margin: 10px 20px 30px; }
    .mock-phone { width: 120px; height: 220px; left: -12px; }
    .grid-3, .process { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); margin-top: 50px; }
    .service-row { grid-template-columns: 1fr; }
    .side-card { position: static; }
}
@media (max-width: 640px) {
    .section { padding: 64px 0; }
    .grid-2, .grid-3, .grid-4, .process, .check-list, .check-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
    .hero { padding-top: 40px; }
    .mock-phone, .mock-chip { display: none; }
    .mock-kpis strong { font-size: .95rem; }
    .contact-form { padding: 22px; }
    .cta-inner { text-align: center; justify-content: center; }
    .cta-actions { justify-content: center; }
}

/* =========================================================
   THEME v2 — Dark Premium  (LINK Development Team)
   ========================================================= */
:root {
    --night: #05070D;
    --night-2: #0A0F1C;
    --night-3: #111827;
    --glass: rgba(255,255,255,.05);
    --glass-line: rgba(255,255,255,.09);
    --sky: #4AA8FF;
    --grad: linear-gradient(120deg, #1E88E5 0%, #4AA8FF 50%, #7CC4FF 100%);
}
body { background: #fff; }
::selection { background: var(--brand); color: #fff; }

/* ---------- Header (glass dark) ---------- */
.site-header { background: rgba(5,7,13,.72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--glass-line); }
.site-header.scrolled { border-color: var(--glass-line); box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.header-inner { height: 82px; }
.brand img { height: 52px; }
.main-nav a { color: #C9D4E3; }
.main-nav a:hover { color: #fff; }
.main-nav a.active { color: #fff; background: rgba(30,136,229,.22); box-shadow: inset 0 0 0 1px rgba(74,168,255,.35); }
.lang-switch { color: #9FB0C6; }
.lang-switch:hover { color: #fff; }
.burger { color: #fff; }

/* ---------- Shared dark hero background ---------- */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: none; mask-image: none; -webkit-mask-image: none; opacity: 1; pointer-events: none; }
.hero-bg .glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.hero-bg .g1 { width: 620px; height: 620px; background: #1E6FE0; top: -220px; inset-inline-start: -160px; animation: drift 14s ease-in-out infinite alternate; }
.hero-bg .g2 { width: 520px; height: 520px; background: #0EA5E9; bottom: -260px; inset-inline-end: -120px; opacity: .35; animation: drift 18s ease-in-out infinite alternate-reverse; }
.circuit { position: absolute; inset: 0; width: 100%; height: 100%; }
.c-flow path { stroke-dasharray: 18 82; animation: flow 6s linear infinite; }
.c-flow path:nth-child(2) { animation-duration: 8s; animation-delay: -2s; }
.c-flow path:nth-child(3) { animation-duration: 7s; animation-delay: -4s; }
.c-flow path:nth-child(4) { animation-duration: 9s; animation-delay: -1s; }
.c-flow path:nth-child(5) { animation-duration: 6.5s; animation-delay: -3s; }
.c-node { animation: blink 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.c-node:nth-child(2n) { animation-delay: -1.5s; }
@keyframes flow { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes blink { 0%,100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.3); } }
@keyframes drift { from { transform: translate(0,0); } to { transform: translate(80px,60px); } }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 600px at 50% -10%, #0D1A33 0%, var(--night) 60%); color: #fff; padding: 90px 0 0; isolation: isolate; }
.hero > .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
.hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: normal; }
.hero h1 span::after { display: none; }
.hero .lead { color: #A9B6C9; }
.pill { background: rgba(30,136,229,.14); border: 1px solid rgba(74,168,255,.35); color: #DCEBFF; box-shadow: 0 0 30px rgba(30,136,229,.25); }
.pill svg { color: var(--sky); }
.hero .btn-ghost, .product-hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.hero .btn-ghost:hover, .product-hero .btn-ghost:hover { background: #fff; color: var(--night); }
.btn-primary { background: var(--grad); background-size: 200% 100%; box-shadow: 0 10px 30px rgba(30,136,229,.45), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 14px 40px rgba(30,136,229,.6); }

/* mock dashboard (dark glass) */
.mock-window { background: rgba(13,20,36,.85); border: 1px solid var(--glass-line); box-shadow: 0 40px 100px rgba(0,0,0,.55), 0 0 0 1px rgba(74,168,255,.08), 0 0 80px rgba(30,136,229,.18); backdrop-filter: blur(10px); }
.mock-bar { background: rgba(255,255,255,.03); border-bottom-color: var(--glass-line); }
.mock-bar span { color: #8FA3BF; }
.mock-side { background: rgba(0,0,0,.35); }
.mock-side b { background: rgba(255,255,255,.07); }
.mock-side b.on { background: var(--grad); box-shadow: 0 0 16px rgba(74,168,255,.6); }
.mock-kpis div { border-color: var(--glass-line); background: rgba(255,255,255,.03); }
.mock-kpis small { color: #8FA3BF; }
.mock-kpis strong { color: #fff; }
.mock-kpis div:first-child strong { color: var(--sky); }
.mock-chart { border-color: var(--glass-line); background: rgba(255,255,255,.02); }
.mock-chart span { background: var(--grad); box-shadow: 0 0 14px rgba(74,168,255,.35); }
.mock-chart span:nth-child(odd) { background: linear-gradient(to top, #233150, #3B4F78); box-shadow: none; }
.mock-rows i { background: rgba(255,255,255,.06); }
.mock-phone { background: #0D1424; border-color: #1C2740; box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 40px rgba(30,136,229,.2); }
.mp-notch { background: #1C2740; }
.mp-line { background: rgba(255,255,255,.08); }
.mp-card { background: var(--grad); }
.mp-card.short { background: #1C2740; }
.mock-chip { background: rgba(13,20,36,.9); border-color: var(--glass-line); color: #E6EEF8; }

/* stats (glass) */
.stats { margin-top: 80px; position: relative; z-index: 1; }
.stat { background: var(--glass); border: 1px solid var(--glass-line); box-shadow: none; backdrop-filter: blur(8px); transition: .3s; }
.stat:hover { border-color: rgba(74,168,255,.45); transform: translateY(-4px); }
.stat strong { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 2.4rem; }
.stat span { color: #A9B6C9; }

/* tech marquee */
.tech-strip { background: var(--night); border: 0; border-top: 1px solid var(--glass-line); margin-top: 70px; padding: 26px 0; overflow: hidden; }
.tech-title { color: #6F819A; white-space: nowrap; }
.tech-inner { flex-wrap: nowrap; }
.marquee { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track span { font-weight: 800; font-size: 1.15rem; color: #C9D4E3; opacity: .7; white-space: nowrap; font-family: 'Inter', sans-serif; }
.marquee-track span::before { content: "◆"; color: var(--sky); font-size: .6rem; margin-inline-end: 14px; vertical-align: middle; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-soft { background: linear-gradient(180deg, #F4F7FB, #EEF3FA); }
.section-head h2 { font-size: clamp(2rem, 3.8vw, 3rem); letter-spacing: -.01em; }
.kicker { display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--grad); }

.icon-box { background: linear-gradient(135deg, #E8F2FF, #D6E8FF); }
.service-card { border-radius: 22px; padding: 34px; background: linear-gradient(#fff,#fff) padding-box, linear-gradient(135deg, var(--line), var(--line)) border-box; border: 1.5px solid transparent; }
.service-card::before { display: none; }
.service-card:hover { background: linear-gradient(#fff,#fff) padding-box, var(--grad) border-box; box-shadow: 0 30px 70px rgba(30,136,229,.18); transform: translateY(-8px); }
.service-card:hover .icon-box { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(30,136,229,.45); transform: rotate(-6deg) scale(1.05); }

.product-card { border-radius: 22px; border-top-width: 0; overflow: hidden; }
.product-card::after { content: ""; position: absolute; inset-inline: 0; top: 0; height: 5px; background: var(--accent); }
.product-card:hover { box-shadow: 0 30px 70px color-mix(in srgb, var(--accent) 28%, transparent); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.product-mark { box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 45%, transparent); }

.why-card { border-radius: 22px; transition: .35s; }
.why-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(14,17,22,.08); border-color: rgba(30,136,229,.35); }

.process li { border-radius: 22px; overflow: hidden; transition: .35s; }
.process li::after { content: ""; position: absolute; inset-inline-end: -20px; top: -20px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(30,136,229,.12), transparent 70%); }
.process li:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(14,17,22,.08); }
.step-num { background: var(--night); box-shadow: 0 0 0 6px #EEF4FD; }
.process li:hover .step-num { background: var(--grad); }

/* ---------- Team band ---------- */
.team-band { background: var(--night); padding: 120px 0; isolation: isolate; }
.team-band::before { z-index: 0; }
.team-band .container { z-index: 1; }
.team-band .c-base { stroke: rgba(74,155,230,.1); }
.team-title span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.team-points li { background: var(--glass); border-color: var(--glass-line); backdrop-filter: blur(6px); }

/* ---------- CTA ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, #0B4FB3, #1E88E5, #0B4FB3); background-size: 200% 100%; animation: shift 10s ease-in-out infinite alternate; padding: 80px 0; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 80% 0%, rgba(255,255,255,.18), transparent 70%); }
.cta-inner { position: relative; }
.cta-band h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
@keyframes shift { from { background-position: 0 0; } to { background-position: 100% 0; } }

/* ---------- Inner page heroes (dark) ---------- */
.page-hero { background: radial-gradient(1000px 500px at 50% -20%, #0D1A33, var(--night) 65%); color: #fff; border: 0; padding: 110px 0 90px; isolation: isolate; }
.page-hero::after { display: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.page-hero p { color: #A9B6C9; }
.page-hero .kicker { color: var(--sky); }

.product-hero { position: relative; overflow: hidden; background: radial-gradient(900px 500px at 80% 0%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%), var(--night); color: #fff; border: 0; isolation: isolate; padding: 110px 0 90px; }
.product-hero .container { position: relative; z-index: 1; }
.product-hero .hero-bg .g1 { background: var(--accent); opacity: .35; }
.product-hero h1 { color: #fff; text-shadow: 0 0 40px color-mix(in srgb, var(--accent) 60%, transparent); }
.product-hero-tag { color: color-mix(in srgb, var(--accent) 45%, #fff); }
.product-hero .lead { color: #A9B6C9; }
.product-hero .kicker { color: var(--sky); }
.product-hero .dev-badge-dark { background: var(--glass); border-color: var(--glass-line); color: #E6EEF8; }
.product-hero .dev-badge-dark svg { color: var(--sky); }
.pv-title { color: #fff; }
.pv-row { border-color: var(--glass-line); color: #DCE5F2; background: rgba(255,255,255,.03); }
.pv-dot { box-shadow: 0 0 10px var(--accent); }
.page-404 .big-404 { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 9rem; }

/* contact / detail polish */
.contact-form, .side-card { border-radius: 22px; }
.info-card { border-radius: 16px; }
.info-card:hover .icon-box { background: var(--grad); color: #fff; }
.check-list li { border: 1px solid var(--line); background: #fff; transition: .25s; }
.check-list li:hover { border-color: rgba(30,136,229,.4); box-shadow: 0 10px 30px rgba(30,136,229,.1); }

/* footer */
.site-footer { background: var(--night); border-top: 1px solid var(--glass-line); }

/* mobile nav (dark) */
@media (max-width: 960px) {
    .main-nav { top: 82px; background: rgba(5,7,13,.97); border-bottom-color: var(--glass-line); }
    .tech-title { display: none; }
}
@media (max-width: 640px) {
    .hero { padding-top: 50px; }
    .section { padding: 72px 0; }
    .brand img { height: 44px; }
}

/* =================== PRICING =================== */
.price-from { display: grid; gap: 2px; margin: 6px 0 18px; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 8%, #fff); border: 1px dashed color-mix(in srgb, var(--accent) 35%, transparent); transition: .25s; }
.price-from:hover { background: color-mix(in srgb, var(--accent) 14%, #fff); }
.price-from small { color: var(--muted); font-weight: 600; font-size: .8rem; }
.price-from span { font-family: 'Inter', sans-serif; font-weight: 700; color: var(--ink); }
.price-from b { font-size: 1.6rem; color: var(--accent); }
.center-cta { text-align: center; margin-top: 44px; }

.pricing-section { background: linear-gradient(180deg, #F4F7FB, #fff); }
.pricing-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.pricing-bar-solo { justify-content: center; }
.product-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.ptab { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font: inherit; color: var(--ink); text-align: start; transition: .25s; }
.ptab b { display: block; font-family: 'Inter', sans-serif; letter-spacing: .04em; }
.ptab small { display: block; color: var(--muted); font-size: .78rem; }
.ptab-mark { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; font-family: 'Inter', sans-serif; }
.ptab:hover { border-color: var(--accent); }
.ptab.on { border-color: var(--accent); box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 25%, transparent); background: color-mix(in srgb, var(--accent) 6%, #fff); }
.users-box { display: grid; gap: 8px; }
.users-box label { font-weight: 800; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.stepper button { width: 46px; height: 48px; border: 0; background: var(--soft); font-size: 1.4rem; font-weight: 700; cursor: pointer; color: var(--ink); }
.stepper button:hover { background: var(--brand); color: #fff; }
.stepper input { width: 80px; height: 48px; border: 0; text-align: center; font: 800 1.2rem 'Inter', sans-serif; color: var(--ink); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper input:focus { outline: none; }

.plans-panel { display: none; }
.plans-panel.on { display: block; animation: fadeUp .45s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: 0 10px 30px rgba(14,17,22,.05); transition: .35s; }
.plan:hover { transform: translateY(-6px); box-shadow: 0 30px 70px rgba(14,17,22,.1); }
.plan-ribbon { height: 50px; display: grid; place-items: center; font-weight: 700; color: transparent; }
.plan-rec { border-color: var(--night); box-shadow: 0 30px 80px rgba(5,7,13,.18); }
.plan-rec .plan-ribbon { background: var(--night); color: #fff; }
.plan-body { padding: 10px 30px 32px; display: flex; flex-direction: column; flex: 1; }
.plan h3 { font-size: 1.45rem; font-weight: 700; margin-bottom: .4em; }
.plan h3 span { font-family: 'Inter', sans-serif; font-weight: 800; letter-spacing: .02em; }
.plan-desc { color: var(--muted); min-height: 3.4em; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; justify-content: flex-start; }
.is-rtl .plan-price { justify-content: flex-end; }
.plan-price strong { font: 800 3.4rem/1 'Inter', sans-serif; letter-spacing: -.03em; }
.plan-cur { font: 700 1.1rem 'Inter', sans-serif; color: var(--muted); }
.plan-unit { font-weight: 700; margin-top: 4px; }
.plan-total { margin: 18px 0 14px; padding: 14px 16px; border-radius: 14px; background: var(--soft); display: grid; gap: 2px; }
.plan-rec .plan-total { background: #EAF3FF; }
.plan-total span { color: var(--muted); font-weight: 600; font-size: .88rem; }
.plan-total b { font: 800 1.3rem 'Inter', sans-serif; color: var(--brand); }
.plan-total small { color: var(--muted); font-size: .82rem; }
.plan-note { color: var(--ink-2); font-size: .93rem; }
.plan-note small { color: var(--muted); font-size: .78rem; }
.plan-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.plan-actions .btn { border-radius: 10px; }
.plan-actions .btn-ghost { border-width: 1.5px; }
.plan hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0 20px; width: 100%; }
.plan h4 { font-size: 1.05rem; margin-bottom: 14px; }
.plan-list { display: grid; gap: 12px; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; }
.plan-list svg { color: var(--brand); flex-shrink: 0; margin-top: 4px; }
@media (max-width: 960px) {
    .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
    .plan-rec { order: -1; }
    .pricing-bar { flex-direction: column; align-items: stretch; }
}

/* pricing — request quote (no prices) */
.price-from span { display: inline-flex; align-items: center; gap: 6px; font-family: inherit; font-size: 1.05rem; color: var(--accent); }
.is-rtl .price-from span svg { transform: scaleX(-1); }
.plan-quote { margin: 16px 0 20px; padding: 20px; border-radius: 16px; background: var(--soft); display: grid; gap: 4px; border: 1px dashed #C9D6E8; }
.plan-rec .plan-quote { background: #EAF3FF; border-color: #9CC6F5; }
.plan-quote strong { font-size: 1.25rem; }
.plan-quote span { color: var(--muted); font-weight: 600; }
.plan-quote small { color: var(--brand); font-weight: 800; font-size: .95rem; margin-top: 4px; }
.plan-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
.plan-actions .btn { width: 100%; padding: 13px 18px; }
.plan-try { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; color: var(--brand); justify-content: center; }
.is-rtl .plan-try svg { transform: scaleX(-1); }

/* product logos */
.product-mark.has-logo, .ptab-mark.has-logo { background: #fff; border: 1px solid var(--line); padding: 5px; box-shadow: 0 8px 20px rgba(14,17,22,.08); }
.product-mark.has-logo { width: 64px; height: 64px; border-radius: 16px; }
.product-mark img, .ptab-mark img { width: 100%; height: 100%; object-fit: contain; }
.product-hero-title { display: flex; align-items: center; gap: 18px; }
.product-hero-logo { width: 96px; height: 96px; border-radius: 22px; background: #fff; padding: 10px; display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 0 50px color-mix(in srgb, var(--accent) 45%, transparent); }
.product-hero-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hero-in { animation: heroIn .8s cubic-bezier(.2,.8,.2,1) both; }
.hero-visual.hero-in { animation-delay: .15s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.reveal { transition-duration: .55s; }
.stats { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }

/* ===== Service photos ===== */
.service-card.has-media { padding: 0; overflow: hidden; }
.svc-media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #0B1B3A, #1E88E5); overflow: hidden; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .5s; filter: saturate(1.05); }
.svc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,7,13,0) 40%, rgba(5,7,13,.55) 100%); pointer-events: none; }
.service-card:hover .svc-media img { transform: scale(1.07); }
.svc-badge { position: absolute; bottom: 14px; inset-inline-start: 16px; z-index: 2; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: rgba(5,7,13,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.25); transition: .3s; }
.service-card:hover .svc-badge { background: var(--brand); border-color: transparent; box-shadow: 0 10px 25px rgba(30,136,229,.5); }
.svc-media.noimg { display: grid; place-items: center; }
.svc-media.noimg .svc-badge { position: static; width: 72px; height: 72px; }
.svc-body { padding: 24px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.svc-body h3 { margin-top: 0; font-size: 1.3rem; color: var(--brand); }
.svc-body p { color: var(--muted); flex: 1; }
.service-card.has-media:hover .icon-box { transform: none; }

.svc-media-row { width: 240px; aspect-ratio: 4 / 3; border-radius: 18px; flex-shrink: 0; }
.svc-media-side { aspect-ratio: 16 / 10; border-radius: 16px; margin: -8px -8px 6px; }
@media (max-width: 960px) { .svc-media-row { width: 100%; aspect-ratio: 16 / 9; } }

/* تون أزرق موحّد للصور */
.svc-media::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(135deg, rgba(11,99,206,.28) 0%, rgba(11,99,206,0) 55%); mix-blend-mode: multiply; transition: opacity .5s; }
.service-card:hover .svc-media::before { opacity: .4; }
.svc-media img { filter: saturate(1.1) contrast(1.05); }
.svc-media::after { z-index: 1; background: linear-gradient(180deg, rgba(5,7,13,0) 45%, rgba(5,7,13,.5) 100%); }

/* لوجوهات البرامج */
.product-mark.has-logo, .ptab-mark.has-logo { background: transparent; border: 0; padding: 0; overflow: hidden; }
.product-mark.has-logo { width: 56px; height: 56px; border-radius: 15px; box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 40%, transparent); }
.ptab-mark.has-logo { width: 38px; height: 38px; border-radius: 10px; }
.product-hero-logo { padding: 0; background: transparent; overflow: hidden; }

/* features with details */
.feature-tile { align-items: flex-start; }
.feature-tile svg { margin-top: 3px; }
.feature-tile b { display: block; font-weight: 800; }
.feature-tile small { display: block; margin-top: 6px; color: var(--muted); font-weight: 500; font-size: .93rem; line-height: 1.7; }
.feature-tile.has-detail { padding: 24px; }

/* =========================================================
   THEME v3 — اللوجو بألوانه الأصلية: هيدر أبيض + فوتر فاتح
   ========================================================= */
.site-header { background: rgba(255,255,255,.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 10px 30px rgba(14,17,22,.08); }
.header-inner { height: 96px; }
.brand img { height: 70px; width: auto; }
.main-nav a { color: var(--ink-2); }
.main-nav a:hover { color: var(--brand); }
.main-nav a.active { color: var(--brand); background: var(--brand-soft); box-shadow: none; }
.lang-switch { color: var(--muted); }
.lang-switch:hover { color: var(--brand); }
.burger { color: var(--ink); }

/* footer فاتح */
.site-footer { background: #F4F7FB; color: var(--ink-2); border-top: 1px solid var(--line); }
.footer-about img { height: 78px; width: auto; }
.footer-about p { color: var(--muted); }
.site-footer h4 { color: var(--ink); }
.site-footer a:hover { color: var(--brand); }
.footer-contact svg { color: var(--brand); }
.footer-bottom { border-top-color: var(--line); color: var(--muted); }
.footer-bottom strong { color: var(--ink); }
.site-footer .dev-badge { background: #fff; border-color: var(--line); color: var(--ink); }
.site-footer .dev-badge svg { color: var(--brand); }

@media (max-width: 960px) {
    .main-nav { top: 96px; background: #fff; border-bottom-color: var(--line); }
    .main-nav a { color: var(--ink-2); }
}
@media (max-width: 640px) {
    .header-inner { height: 80px; }
    .brand img { height: 56px; }
    .main-nav { top: 80px; }
}

/* ===== Hero dashboard (realistic) ===== */
.hero-visual { min-height: 0; }
.dash { position: relative; border-radius: 20px; overflow: hidden; background: linear-gradient(180deg, rgba(17,25,44,.96), rgba(10,15,28,.98)); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 50px 120px rgba(0,0,0,.6), 0 0 0 1px rgba(74,168,255,.08), 0 0 90px rgba(30,136,229,.22); font-size: 12px; color: #DCE6F4; animation: float 7s ease-in-out infinite; }
.dash-top { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.02); }
.dash-dots { display: flex; gap: 6px; }
.dash-dots i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.dash-dots i:nth-child(2) { background: #FEBC2E; } .dash-dots i:nth-child(3) { background: #28C840; }
.dash-search { flex: 1; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 8px; background: rgba(255,255,255,.05); color: #7F8FA8; }
.dash-user { display: flex; align-items: center; gap: 8px; }
.dash-bell { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: #9FB0C6; }
.dash-avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font: 700 10px 'Inter', sans-serif; }
.dash-body { display: grid; grid-template-columns: 132px 1fr; }
.dash-side { padding: 14px 10px; border-inline-end: 1px solid rgba(255,255,255,.06); background: rgba(0,0,0,.18); display: grid; gap: 4px; align-content: start; }
.dash-brand { padding: 2px 6px 12px; }
.dash-brand img { width: 28px; height: 28px; border-radius: 8px; }
.dash-nav { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; color: #8FA0B8; font-weight: 600; }
.dash-nav.on { background: rgba(74,168,255,.14); color: #fff; box-shadow: inset 3px 0 0 #4AA8FF; }
.is-rtl .dash-nav.on { box-shadow: inset -3px 0 0 #4AA8FF; }
.dash-main { padding: 14px 16px 16px; display: grid; gap: 12px; }
.dash-head { display: flex; justify-content: space-between; align-items: center; }
.dash-head b { display: block; font-size: 15px; color: #fff; }
.dash-head small { color: #7F8FA8; }
.dash-pill { padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.06); color: #AFC0D6; font-weight: 600; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { position: relative; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); overflow: hidden; }
.kpi small { color: #8FA0B8; display: block; }
.kpi strong { display: block; font: 800 18px 'Inter', sans-serif; color: #fff; margin-top: 2px; }
.kpi .up { color: #34D399; font: 700 10px 'Inter', sans-serif; }
.kpi svg { position: absolute; bottom: 8px; inset-inline-end: 8px; width: 56px; height: 18px; }
.kpi polyline { fill: none; stroke: #4AA8FF; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dash-chart { position: relative; height: 150px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); padding: 10px 10px 22px; }
.dash-chart svg { width: 100%; height: 100%; }
.dash-chart .line { stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 2s .3s ease forwards; filter: drop-shadow(0 0 6px rgba(74,168,255,.6)); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.dash-tip { position: absolute; top: 8px; right: 14%; padding: 4px 8px; border-radius: 6px; background: #fff; color: #0B1220; font: 700 10px 'Inter', sans-serif; box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.dash-months { position: absolute; bottom: 4px; left: 12px; right: 12px; display: flex; justify-content: space-between; color: #66778F; font: 600 9px 'Inter', sans-serif; }
.dash-table { display: grid; gap: 6px; }
.dash-table .row { display: grid; grid-template-columns: 26px 1fr auto auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,.03); }
.dash-table .av { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(74,168,255,.16); color: #9BCBFF; font-weight: 800; }
.dash-table .nm { font-weight: 700; color: #E6EEF8; line-height: 1.3; }
.dash-table .nm small { display: block; color: #6F819A; font: 600 9px 'Inter', sans-serif; }
.dash-table .amt { font: 700 12px 'Inter', sans-serif; color: #fff; }
.dash-table .st { padding: 3px 8px; border-radius: 999px; font-weight: 700; font-size: 10px; }
.dash-table .st.paid { background: rgba(52,211,153,.14); color: #34D399; }
.dash-table .st.pending { background: rgba(251,191,36,.14); color: #FBBF24; }
.dash-toast { position: absolute; top: -18px; inset-inline-end: -18px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 20px 50px rgba(0,0,0,.35); font-size: 12px; animation: float 6s ease-in-out infinite reverse; z-index: 2; }
.dash-toast .ok { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #DCFCE7; color: #16A34A; }
.dash-toast b { display: block; }
.dash-toast small { color: var(--muted); }
.dash-donut { position: absolute; bottom: -22px; inset-inline-start: -22px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(13,20,36,.92); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 20px 50px rgba(0,0,0,.45); backdrop-filter: blur(8px); color: #fff; font-size: 12px; z-index: 2; animation: float 8s ease-in-out infinite; }
.dash-donut svg { width: 40px; height: 40px; transform: rotate(-90deg); }
.dash-donut b { display: block; font: 800 15px 'Inter', sans-serif; }
.dash-donut small { color: #8FA0B8; }
@media (max-width: 960px) {
    .dash-body { grid-template-columns: 1fr; }
    .dash-side { display: none; }
    .dash-toast { inset-inline-end: -6px; }
    .dash-donut { inset-inline-start: -6px; }
}
@media (max-width: 640px) {
    .dash { font-size: 11px; }
    .dash-search span { display: none; }
    .dash-kpis { gap: 6px; }
    .kpi { padding: 8px; } .kpi strong { font-size: 15px; } .kpi svg { display: none; }
    .dash-chart { height: 120px; }
    .dash-toast { top: -26px; }
    .dash-donut { display: none; }
}

/* ===== services grid (8) ===== */
.services-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.services-grid .svc-body { padding: 20px 22px 24px; }
.services-grid .svc-body h3 { font-size: 1.15rem; }
@media (max-width: 1080px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

/* ===== AI band ===== */
.ai-band { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(900px 500px at 15% 10%, #13224A, var(--night) 65%); color: #fff; padding: 120px 0; }
.ai-band .container { position: relative; z-index: 1; }
.ai-band .g2 { background: #7C3AED; opacity: .25; }
.ai-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.ai-band h2 { font-size: clamp(2rem, 4vw, 3.1rem); background: linear-gradient(120deg, #fff 30%, #9CCBFF 70%, #C4B5FD); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ai-text { color: #A9B6C9; font-size: 1.1rem; }
.ai-points { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0 32px; }
.ai-point { display: flex; gap: 12px; padding: 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-line); transition: .3s; }
.ai-point:hover { border-color: rgba(124,58,237,.5); background: rgba(124,58,237,.08); }
.ai-point b { display: block; color: #fff; }
.ai-point small { color: #96A6BD; font-size: .88rem; line-height: 1.6; }
.ai-ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #1E88E5, #7C3AED); box-shadow: 0 8px 24px rgba(124,58,237,.35); }

.agent { border-radius: 22px; background: rgba(13,20,36,.85); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 40px 100px rgba(0,0,0,.55), 0 0 80px rgba(124,58,237,.2); overflow: hidden; backdrop-filter: blur(10px); }
.agent-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.agent-av { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #1E88E5, #7C3AED); }
.agent-head b { display: block; font-family: 'Inter', sans-serif; }
.agent-head small { color: #8FA0B8; display: inline-flex; align-items: center; gap: 6px; }
.agent-body { padding: 18px; display: grid; gap: 12px; font-size: .95rem; }
.msg { max-width: 88%; padding: 12px 14px; border-radius: 16px; line-height: 1.7; }
.msg.me { justify-self: start; background: var(--grad); color: #fff; border-start-start-radius: 4px; }
.msg.bot { justify-self: end; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: #DCE6F4; border-start-end-radius: 4px; }
.msg.ok { border-color: rgba(52,211,153,.35); background: rgba(52,211,153,.08); }
.agent-steps { margin-top: 8px; display: grid; gap: 6px; font-size: .86rem; color: #A9B6C9; }
.agent-steps li { display: flex; gap: 8px; align-items: center; }
.agent-steps svg { color: #34D399; }
.typing { justify-self: end; display: flex; gap: 5px; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.05); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #8FA0B8; animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
.agent-input { display: flex; align-items: center; justify-content: space-between; margin: 0 18px 18px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color: #6F819A; }
.agent-input b { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.is-rtl .agent-input b svg { transform: scaleX(-1); }
@media (max-width: 960px) { .ai-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .ai-points { grid-template-columns: 1fr; } .ai-band { padding: 80px 0; } }

/* ===== LinkIT Market Place ===== */
.market { padding: 90px 0; background: #fff; }
.market-inner { display: grid; grid-template-columns: 320px 1fr; gap: 50px; align-items: center; padding: 44px 50px; border-radius: 28px; background: linear-gradient(135deg, #F4F8FE, #fff 60%); border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(14,17,22,.06); }
.market-cart { display: block; }
.cart-svg { width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(30,136,229,.15)); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.market-cart:hover .cart-svg { transform: translateX(14px) rotate(-2deg); }
.is-rtl .market-cart:hover .cart-svg { transform: translateX(-14px) rotate(2deg); }
.market-text h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.market-text p { color: var(--muted); font-size: 1.08rem; max-width: 560px; }
.market-btn { padding: 15px 30px; font-size: 1.08rem; font-family: 'Inter', sans-serif; margin-top: 6px; }
.footer-market { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 16px; border-radius: 999px; background: var(--grad); color: #fff !important; font: 700 .9rem 'Inter', sans-serif; box-shadow: 0 8px 20px rgba(30,136,229,.3); }
@media (max-width: 860px) {
    .market-inner { grid-template-columns: 1fr; text-align: center; padding: 34px 24px; gap: 20px; }
    .market-cart { max-width: 260px; margin: 0 auto; }
    .market-text p { margin-inline: auto; }
}

/* products grid (any count, centered) */
.products-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.products-grid > .product-card { flex: 0 1 calc((100% - 44px) / 3); min-width: 270px; }
@media (max-width: 960px) { .products-grid > .product-card { flex-basis: calc((100% - 22px) / 2); } }
@media (max-width: 640px) { .products-grid > .product-card { flex-basis: 100%; min-width: 0; } }

/* fix: honeypot field must not create horizontal overflow (RTL) */
.hp { position: absolute !important; left: auto !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
html, body { overflow-x: hidden; }
.contact-form { position: relative; }

/* أزرق اللوجو الرسمي */
:root { --brand: #007DDC; --brand-dark: #0062AE; --brand-soft: #E5F2FC; --sky: #3FA2F0; --grad: linear-gradient(120deg, #007DDC 0%, #2E97EC 55%, #6BB8F5 100%); }

/* AR | EN toggle — ظاهر دايماً جنب المينيو */
.lang-toggle { display: inline-flex; align-items: center; padding: 4px; border-radius: 999px; background: #EEF2F7; border: 1px solid var(--line); }
.lang-toggle a { min-width: 42px; padding: 7px 12px; border-radius: 999px; text-align: center; font: 800 .88rem/1 'Inter', sans-serif; color: var(--muted); letter-spacing: .04em; transition: .2s; }
.lang-toggle a:hover { color: var(--brand); }
.lang-toggle a.on { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(0,125,220,.35); }
@media (max-width: 960px) {
    .header-actions { gap: 10px; }
    .lang-toggle { display: inline-flex !important; }
}
@media (max-width: 640px) {
    .lang-toggle a { min-width: 38px; padding: 7px 10px; font-size: .82rem; }
}

/* ===================== AI Agent chat widget ===================== */
.aiw { position: fixed; z-index: 70; bottom: 22px; inset-inline-start: 22px; font-size: 15px; }
.aiw-fab { display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border: 0; border-radius: 999px; cursor: pointer; background: var(--night, #05070D); color: #fff; box-shadow: 0 14px 34px rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.08); font: 700 .95rem inherit; font-family: inherit; transition: .25s; }
.is-rtl .aiw-fab { padding: 8px 8px 8px 18px; }
.aiw-fab:hover { transform: translateY(-2px); }
.aiw-fab-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #007DDC, #7C3AED); box-shadow: 0 0 0 0 rgba(124,58,237,.5); animation: aiPulse 2.6s infinite; }
@keyframes aiPulse { 0% { box-shadow: 0 0 0 0 rgba(124,58,237,.45); } 70% { box-shadow: 0 0 0 12px rgba(124,58,237,0); } 100% { box-shadow: 0 0 0 0 rgba(124,58,237,0); } }
.aiw.open .aiw-fab { display: none; }

.aiw-panel { position: absolute; bottom: 0; inset-inline-start: 0; width: 380px; height: min(600px, calc(100vh - 44px)); display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(5,7,13,.35), 0 0 0 1px rgba(14,17,22,.06); animation: aiwIn .25s ease; }
.aiw-panel[hidden] { display: none; }
@keyframes aiwIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.aiw-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(135deg, #0A1428, #12305E); color: #fff; }
.aiw-av { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #007DDC, #7C3AED); flex-shrink: 0; }
.aiw-who { flex: 1; line-height: 1.3; }
.aiw-who b { display: block; font-family: 'Inter', sans-serif; }
.aiw-who small { color: #A9B6C9; display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; }
.aiw-x { width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(255,255,255,.1); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.aiw-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #F5F7FA; }
.aiw-msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; font-size: .95rem; }
.aiw-msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-start-start-radius: 4px; color: var(--ink); }
.aiw-msg.me { align-self: flex-end; background: var(--brand); color: #fff; border-start-end-radius: 4px; }
.aiw-msg a { color: var(--brand); font-weight: 700; text-decoration: underline; word-break: break-all; }
.aiw-msg.me a { color: #fff; }
.aiw-typing { align-self: flex-start; display: flex; gap: 5px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.aiw-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9AA6B5; animation: typing 1.2s infinite; }
.aiw-typing i:nth-child(2) { animation-delay: .2s; } .aiw-typing i:nth-child(3) { animation-delay: .4s; }
.aiw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.aiw-chip { padding: 8px 12px; border-radius: 999px; border: 1px solid #C9DDF2; background: #fff; color: var(--brand); font: 700 .85rem inherit; font-family: inherit; cursor: pointer; transition: .2s; }
.aiw-chip:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.aiw-human { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 8px 12px 0; padding: 8px; border-radius: 10px; background: #E9FBEF; color: #128C4A; font-weight: 700; font-size: .88rem; }
.aiw-human.pulse { animation: aiPulse 1.4s 3; background: #25D366; color: #fff; }
.aiw-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; }
.aiw-form textarea { flex: 1; resize: none; max-height: 110px; padding: 11px 14px; border-radius: 14px; border: 1.5px solid var(--line); font: inherit; font-size: .95rem; line-height: 1.5; outline: none; }
.aiw-form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.aiw-form button { width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; }
.aiw-form button:disabled { opacity: .5; cursor: default; }
.is-rtl .aiw-form button svg { transform: scaleX(-1); }
.aiw-note { padding: 0 14px 10px; color: var(--muted); font-size: .72rem; text-align: center; }

/* واتساب يفضل في الناحية التانية */
.wa-float { inset-inline-end: 22px; }
@media (max-width: 640px) {
    .aiw { bottom: 16px; inset-inline-start: 14px; }
    .aiw-fab-label { display: none; }
    .aiw-fab, .is-rtl .aiw-fab { padding: 6px; }
    .aiw-panel { position: fixed; inset: auto 8px 8px 8px; width: auto; height: calc(100dvh - 16px); max-height: none; border-radius: 18px; }
}
