:root {
  --bg: #07130f;
  --bg2: #0a1c15;
  --panel: rgba(15, 40, 30, .78);
  --panel-solid: #0f281e;
  --line: rgba(179, 232, 208, .14);
  --muted: #a5b8ae;
  --text: #f4fbf7;
  --emerald: #55e6a5;
  --emerald-2: #95f5c6;
  --yellow: #ffd477;
  --red: #ff8d8d;
  --blue: #84c7ff;
  --shadow: 0 30px 80px rgba(0,0,0,.38);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(850px 500px at 80% 5%, rgba(71, 209, 147, .12), transparent 60%),
    radial-gradient(620px 420px at 3% 18%, rgba(79, 151, 122, .09), transparent 60%),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .03; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E"); z-index: 99; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 10; }
.brand { display: inline-flex; gap: 12px; align-items: center; font-size: 25px; font-weight: 700; letter-spacing: -.4px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; position: relative; }
.brand-mark::before, .brand-mark::after, .brand-mark span { content: ""; position: absolute; border-radius: 10px; }
.brand-mark::before { width: 25px; height: 28px; border: 2px solid var(--emerald); transform: translate(3px, -2px); }
.brand-mark::after { width: 25px; height: 28px; border: 2px solid rgba(149,245,198,.42); transform: translate(-4px, 4px); }
.brand-mark span:first-child { width: 14px; height: 2px; background: var(--emerald); transform: translate(4px,-5px); }
.brand-mark span:last-child { width: 9px; height: 2px; background: var(--emerald); transform: translate(2px,2px); }
.top-cta { border: 1px solid var(--line); background: rgba(255,255,255,.03); padding: 10px 18px; border-radius: 999px; font-weight: 600; }
.hero { min-height: 670px; padding: 90px 0 85px; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 65px; }
.eyebrow, .section-kicker, .tiny-label { color: var(--emerald-2); font-size: 14px; font-weight: 600; letter-spacing: .2px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid rgba(85,230,165,.18); border-radius: 999px; background: rgba(85,230,165,.06); }
.live-dot { width: 7px; height: 7px; background: var(--emerald); border-radius: 50%; box-shadow: 0 0 0 6px rgba(85,230,165,.1); }
h1 { font-size: clamp(48px, 6.5vw, 82px); line-height: 1.03; letter-spacing: -2.8px; margin: 25px 0 22px; max-width: 780px; }
h1 span { color: var(--emerald); }
.hero-sub { font-size: 20px; line-height: 1.9; color: var(--muted); max-width: 670px; margin: 0; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.btn { border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 14px; font-weight: 700; transition: .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { color: #04160e; background: linear-gradient(135deg, var(--emerald-2), var(--emerald)); box-shadow: 0 12px 35px rgba(85,230,165,.16); }
.btn.ghost { background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--text); }
.btn.wide { width: 100%; margin-top: 18px; }
.trust-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 28px; color: #b9c9c1; font-size: 14px; }
.hero-card { position: relative; padding: 25px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(180deg, rgba(19,52,39,.94), rgba(10,29,22,.91)); box-shadow: var(--shadow); overflow: hidden; }
.hero-card::after { content: ""; position: absolute; width: 230px; height: 230px; border-radius: 50%; background: rgba(85,230,165,.08); filter: blur(20px); left: -100px; top: -100px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.card-head div { display: flex; flex-direction: column; gap: 4px; }
.card-head strong { font-size: 16px; direction: ltr; }
.status-pill, .auto-badge { color: var(--emerald-2); background: rgba(85,230,165,.09); border: 1px solid rgba(85,230,165,.18); padding: 7px 10px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.mini-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 18px 0; }
.mini-stats div { background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 16px; padding: 15px; }
.mini-stats b { display: block; font-size: 26px; }
.mini-stats span { font-size: 12px; color: var(--muted); }
.diff-list { display: flex; flex-direction: column; gap: 8px; }
.diff-row { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.025); }
.diff-row div { min-width: 0; }
.diff-row b, .diff-row small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.diff-row small { color: var(--muted); margin-top: 2px; direction: rtl; }
.icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; font-weight: 800; }
.icon.price { color: var(--yellow); background: rgba(255,212,119,.1); }
.icon.stock { color: var(--red); background: rgba(255,141,141,.1); }
.icon.new { color: var(--emerald); background: rgba(85,230,165,.1); }
.tag { font-size: 11px; padding: 5px 8px; border-radius: 999px; }
.tag.warning { color: var(--yellow); background: rgba(255,212,119,.09); }
.tag.danger { color: var(--red); background: rgba(255,141,141,.09); }
.tag.success { color: var(--emerald-2); background: rgba(85,230,165,.09); }
.problem-band { border-block: 1px solid var(--line); background: rgba(255,255,255,.018); }
.problem-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; padding-block: 55px; align-items: center; }
h2 { font-size: clamp(34px,4vw,54px); line-height: 1.22; letter-spacing: -1.5px; margin: 10px 0 0; }
.problem-grid p { color: var(--muted); line-height: 2; font-size: 18px; margin: 0; }
.try-section { padding: 110px 0; }
.section-title { max-width: 770px; margin: 0 auto 42px; text-align: center; }
.section-title p { color: var(--muted); line-height: 1.9; }
.section-title.compact { text-align: right; margin: 0 0 35px; max-width: 760px; }
.checker-card { border: 1px solid var(--line); background: rgba(10,29,22,.72); border-radius: 30px; box-shadow: var(--shadow); padding: 24px; }
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); padding: 5px 8px 24px; border-bottom: 1px solid var(--line); }
.step { display: flex; gap: 10px; align-items: center; justify-content: center; color: #758c81; }
.step span { width: 29px; height: 29px; border: 1px solid rgba(255,255,255,.12); display: grid; place-items: center; border-radius: 50%; font-size: 12px; }
.step.active { color: var(--text); }
.step.active span { background: var(--emerald); color: #04160e; border-color: transparent; }
.panel { display: none; padding: 28px 8px 6px; }
.panel.active { display: block; }
.upload-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.dropzone { position: relative; min-height: 210px; border: 1.5px dashed rgba(149,245,198,.25); background: rgba(85,230,165,.025); border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; cursor: pointer; padding: 24px; transition: .2s; }
.dropzone:hover, .dropzone.drag { border-color: var(--emerald); background: rgba(85,230,165,.05); }
.upload-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: rgba(85,230,165,.09); color: var(--emerald-2); font-size: 25px; margin-bottom: 14px; }
.dropzone strong { font-size: 19px; }
.dropzone small { color: var(--muted); margin: 5px 0 14px; }
.file-name { max-width: 92%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; font-size: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); padding: 7px 10px; border-radius: 999px; }
.email-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; align-items: end; }
.email-row label:not(.consent) { display: flex; flex-direction: column; gap: 8px; font-weight: 600; }
.email-row input[type=email] { width: 100%; height: 52px; color: var(--text); background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 14px; padding: 0 15px; outline: none; direction: ltr; text-align: left; }
.email-row input[type=email]:focus { border-color: rgba(85,230,165,.55); box-shadow: 0 0 0 4px rgba(85,230,165,.05); }
.consent { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 13px; line-height: 1.65; }
.consent input { margin-top: 5px; accent-color: var(--emerald); }
.privacy-note { display: flex; gap: 12px; align-items: center; padding: 14px 16px; margin-top: 18px; background: rgba(255,255,255,.026); border: 1px solid var(--line); border-radius: 15px; }
.privacy-note b, .privacy-note small { display: block; }
.privacy-note small { color: var(--muted); margin-top: 2px; line-height: 1.6; }
.form-message { min-height: 22px; color: var(--red); font-size: 13px; padding-top: 9px; text-align: center; }
.mapping-intro, .result-hero { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.mapping-intro h3, .result-hero h3, .full-cta h3 { font-size: 29px; margin: 6px 0 4px; }
.mapping-intro p, .result-hero p, .full-cta p { color: var(--muted); margin: 0; line-height: 1.7; }
.mapping-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 24px; }
.map-card { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.025); }
.map-card h4 { margin: 0 0 14px; font-size: 18px; }
.map-fields { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.map-field { display: flex; flex-direction: column; gap: 6px; }
.map-field span { font-size: 12px; color: var(--muted); }
.map-field select { width: 100%; height: 43px; color: var(--text); background: #0b2018; border: 1px solid var(--line); border-radius: 11px; padding: 0 9px; outline: none; }
.mapping-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.result-grade { width: 82px; height: 82px; border-radius: 22px; background: rgba(85,230,165,.08); border: 1px solid rgba(85,230,165,.17); display: grid; place-items: center; align-content: center; flex: 0 0 auto; }
.result-grade b { font-size: 28px; line-height: 1; }
.result-grade span { font-size: 11px; color: var(--muted); margin-top: 3px; }
.summary-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin: 25px 0 18px; }
.summary-card { padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.026); }
.summary-card b { font-size: 25px; display: block; }
.summary-card span { color: var(--muted); font-size: 12px; }
.result-table-wrap { border: 1px solid var(--line); border-radius: 18px; overflow: auto; }
.result-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.result-table th, .result-table td { padding: 14px 15px; text-align: right; border-bottom: 1px solid var(--line); font-size: 13px; }
.result-table th { color: var(--muted); font-weight: 500; background: rgba(255,255,255,.02); }
.result-table tr:last-child td { border-bottom: 0; }
.result-table .sku { display: block; color: var(--muted); font-size: 11px; direction: ltr; text-align: right; }
.state { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: 11px; white-space: nowrap; }
.state.change { color: var(--yellow); background: rgba(255,212,119,.09); }
.state.new { color: var(--emerald-2); background: rgba(85,230,165,.09); }
.state.review { color: var(--blue); background: rgba(132,199,255,.09); }
.state.ok { color: var(--muted); background: rgba(255,255,255,.05); }
.full-cta { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 24px; margin-top: 18px; border-radius: 20px; background: linear-gradient(135deg, rgba(85,230,165,.08), rgba(255,255,255,.025)); border: 1px solid rgba(85,230,165,.16); }
.how { padding: 15px 0 110px; }
.how-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.how-grid article { position: relative; min-height: 210px; border: 1px solid var(--line); border-radius: 22px; padding: 25px; background: rgba(255,255,255,.02); }
.how-grid article > span { color: var(--emerald); font-size: 12px; font-weight: 700; }
.how-grid h3 { font-size: 22px; margin: 34px 0 7px; }
.how-grid p { color: var(--muted); line-height: 1.7; margin: 0; }
.faq { padding-bottom: 110px; }
.faq-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
details { border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.02); padding: 18px 20px; }
summary { cursor: pointer; font-weight: 700; }
details p { color: var(--muted); line-height: 1.8; margin-bottom: 0; }
footer { border-top: 1px solid var(--line); background: rgba(0,0,0,.12); }
.footer-inner { min-height: 140px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); }
.footer-inner .brand { color: var(--text); }
.footer-inner a { color: var(--emerald-2); direction: ltr; }
.demo-dialog { width: min(790px, calc(100% - 32px)); border: 1px solid var(--line); color: var(--text); border-radius: 24px; background: #0a1c15; box-shadow: var(--shadow); padding: 28px; }
.demo-dialog::backdrop { background: rgba(0,0,0,.68); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; left: 18px; top: 15px; border: 0; background: rgba(255,255,255,.05); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 25px; }
.demo-dialog h3 { font-size: 28px; margin: 8px 0 20px; }
.demo-table { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.demo-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); align-items: center; }
.demo-row:last-child { border-bottom: 0; }
.demo-row.head { color: var(--muted); background: rgba(255,255,255,.025); font-size: 12px; }
.demo-row em { color: var(--emerald-2); font-style: normal; font-size: 12px; }
.demo-note { color: var(--muted); line-height: 1.8; margin-bottom: 0; }
.turnstile-wrap { margin-top: 16px; display: flex; justify-content: center; }
.turnstile-wrap[hidden] { display: none; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 55px; gap: 38px; }
  .hero-card { max-width: 650px; }
  .problem-grid, .email-row { grid-template-columns: 1fr; gap: 20px; }
  .summary-grid { grid-template-columns: repeat(2,1fr); }
  .footer-inner { flex-wrap: wrap; padding-block: 30px; }
}
@media (max-width: 680px) {
  .shell { width: min(100% - 26px, 1160px); }
  .topbar { height: 70px; }
  .brand { font-size: 21px; }
  .top-cta { padding: 8px 14px; font-size: 13px; }
  .hero { min-height: auto; padding: 52px 0 68px; }
  h1 { font-size: 47px; letter-spacing: -1.8px; }
  .hero-sub { font-size: 17px; }
  .hero-actions .btn { width: 100%; }
  .trust-row { gap: 8px 14px; font-size: 12px; }
  .hero-card { padding: 18px; border-radius: 22px; }
  .mini-stats { gap: 6px; }
  .mini-stats div { padding: 11px; }
  .diff-row { grid-template-columns: 36px 1fr auto; padding: 9px; gap: 8px; }
  .icon { width: 34px; height: 34px; }
  .try-section { padding: 75px 0; }
  .checker-card { padding: 14px; border-radius: 22px; }
  .step { font-size: 11px; gap: 6px; }
  .step span { width: 25px; height: 25px; }
  .upload-grid, .mapping-grid, .how-grid, .faq-grid { grid-template-columns: 1fr; }
  .dropzone { min-height: 160px; }
  .map-fields { grid-template-columns: 1fr; }
  .mapping-intro, .result-hero, .full-cta { flex-direction: column; }
  .full-cta .btn { width: 100%; }
  .how { padding-bottom: 75px; }
  .faq { padding-bottom: 75px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .demo-row { grid-template-columns: 1.4fr 1fr 1fr; font-size: 12px; }
  .demo-row > :last-child { grid-column: 1 / -1; }
}

/* ===== Fihris v2 smart schema ===== */
.smart-note{margin:18px 0 0;padding:14px 16px;border:1px solid rgba(101,240,184,.18);background:rgba(101,240,184,.055);border-radius:16px;color:var(--muted);font-size:.93rem;line-height:1.7}
.smart-note b{color:var(--text)}
.smart-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0 20px}
.smart-summary>div{border:1px solid var(--line);background:rgba(255,255,255,.02);border-radius:14px;padding:12px 14px;display:flex;gap:8px;flex-direction:column}
.smart-summary b{color:var(--emerald-2)}
.smart-summary span{color:var(--muted);font-size:.88rem;line-height:1.6}
.smart-map-card{position:relative;overflow:hidden}
.map-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.map-card-head h4{margin:0 0 4px}.map-card-head small{color:var(--muted);font-size:.78rem;line-height:1.55}
.smart-chip{white-space:nowrap;border:1px solid rgba(101,240,184,.28);color:var(--emerald-2);background:rgba(101,240,184,.07);padding:5px 9px;border-radius:999px;font-size:.72rem}
.sheet-pick{display:flex;flex-direction:column;gap:7px;margin:0 0 14px}.sheet-pick span{font-size:.78rem;color:var(--muted)}
.sheet-pick select,.smart-field select{width:100%;color:var(--text);background:#0b1b15;border:1px solid var(--line);border-radius:12px;padding:12px 13px;font:inherit}
.schema-health{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:16px}
.schema-health span{background:rgba(255,255,255,.025);border:1px solid var(--line);border-radius:12px;padding:9px 10px;color:var(--muted);font-size:.74rem;line-height:1.5}.schema-health b{color:var(--text)}
.smart-field{position:relative}.field-label{display:block;margin-bottom:6px}.confidence{display:block;margin-top:6px;font-size:.69rem;line-height:1.35}
.confidence.high,.confidence.good{color:#7cf0bd}.confidence.medium{color:#e9c56f}.confidence.low{color:#ff9797}
.advanced-map{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}.advanced-map summary{cursor:pointer;color:var(--muted);font-size:.83rem}.advanced-fields{display:grid;gap:12px;margin-top:14px}
.card-warnings{display:grid;gap:7px;margin-top:14px}.soft-warning,.soft-success{padding:9px 11px;border-radius:10px;font-size:.76rem;line-height:1.5}.soft-warning{background:rgba(255,190,92,.07);border:1px solid rgba(255,190,92,.18);color:#f1cd91}.soft-success{background:rgba(101,240,184,.055);border:1px solid rgba(101,240,184,.16);color:#a4eacb}
.result-warnings{margin:16px 0;display:grid;gap:7px;background:rgba(255,190,92,.045);border:1px solid rgba(255,190,92,.16);border-radius:15px;padding:13px 15px;color:#dfc79d;font-size:.8rem;line-height:1.55}.result-warning-title{font-weight:700;color:#f2d39f;margin-bottom:3px}
.missing-preview{margin:14px 0 18px;padding:13px 15px;border-radius:14px;border:1px solid var(--line);background:rgba(255,255,255,.02);color:var(--muted);font-size:.82rem;line-height:1.65}.missing-preview b{color:var(--text)}
.match-note{display:block;color:var(--muted);font-size:.68rem;line-height:1.45;margin-top:5px;max-width:260px}
.summary-card.review{border-color:rgba(255,190,92,.2)}.summary-card.new{border-color:rgba(140,176,255,.16)}
.engine-badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.engine-badges span{border:1px solid var(--line);background:rgba(255,255,255,.02);border-radius:999px;padding:7px 10px;color:var(--muted);font-size:.75rem}
.smart-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:24px}.smart-list article{border:1px solid var(--line);background:rgba(255,255,255,.02);border-radius:18px;padding:18px}.smart-list b{display:block;color:var(--emerald-2);font-size:.82rem;margin-bottom:8px}.smart-list h3{margin:0 0 7px;font-size:1rem}.smart-list p{margin:0;color:var(--muted);line-height:1.65;font-size:.84rem}
.version-pill{font-size:.56em;opacity:.5;font-weight:600;vertical-align:middle}
@media(max-width:760px){.smart-summary,.smart-list{grid-template-columns:1fr}.schema-health{grid-template-columns:1fr}.map-card-head{align-items:center}.match-note{max-width:none}}
.reverse-preview{margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}.reverse-preview>b{display:block;font-size:.77rem;margin-bottom:5px}.reverse-preview ul{margin:0;padding:0 18px 0 0;display:grid;gap:4px}.reverse-preview li{color:var(--muted);font-size:.76rem}.reverse-preview small{opacity:.7;margin-inline-start:5px}
