/* =====================================================================
   الصفحة الرئيسية — fx-home.css
   ===================================================================== */
.fx-hero{position:relative;overflow:hidden;color:#fff;padding:4.5rem 0 5.5rem;
  background:radial-gradient(900px 500px at 85% 0%,rgba(250,204,21,.22),transparent 60%),
             radial-gradient(700px 500px at 0% 100%,rgba(74,222,128,.35),transparent 60%),
             linear-gradient(135deg,#052e16 0%,#14532d 45%,#16a34a 100%)}
.fx-hero-bg span{position:absolute;left:var(--x);top:var(--y);font-size:3.2rem;opacity:.2;animation:fx-float 6s ease-in-out var(--d) infinite;filter:blur(.3px)}
@keyframes fx-float{50%{transform:translateY(-22px) rotate(8deg)}}
.fx-hero-in{position:relative;display:grid;grid-template-columns:1.15fr .85fr;gap:3rem;align-items:center}
.fx-pill{display:inline-flex;align-items:center;gap:.5rem;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.25);padding:.4rem 1rem;border-radius:999px;font-weight:700;font-size:.88rem;backdrop-filter:blur(6px)}
.fx-pill i{color:#facc15}
.fx-hero h1{font-size:clamp(2.2rem,5vw,3.7rem);font-weight:900;line-height:1.2;margin:1.1rem 0 1rem;letter-spacing:-.5px}
.fx-hero h1 em{font-style:normal;background:linear-gradient(90deg,#fde047,#fb923c);-webkit-background-clip:text;background-clip:text;color:transparent}
.fx-hero p{font-size:1.12rem;opacity:.92;max-width:560px;margin-bottom:1.6rem}
.fx-hero-search{display:flex;align-items:center;background:#fff;border-radius:18px;padding:.4rem .4rem .4rem .5rem;max-width:560px;box-shadow:0 20px 40px -16px rgba(0,0,0,.45);position:relative}
.fx-hero-search i{position:absolute;inset-inline-start:1.2rem;color:#6b7a6b}
.fx-hero-search input{flex:1;border:0;outline:0;padding:.85rem 3rem .85rem .5rem;font:inherit;font-weight:600;background:transparent;color:#1d2a1d;min-width:0}
.fx-hero-actions{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:1.1rem}
.fx-btn-ghost-light{background:rgba(255,255,255,.12);color:#fff;border-color:rgba(255,255,255,.3);backdrop-filter:blur(6px)}
.fx-btn-ghost-light:hover{background:rgba(255,255,255,.22);color:#fff}
.fx-btn-light{background:#fff;color:var(--brand-700)}.fx-btn-light:hover{background:#f0fdf4;color:var(--brand-700);transform:translateY(-1px)}
.fx-btn-lime{background:#a3e635;color:#1a2e05}.fx-btn-lime:hover{background:#bef264;color:#1a2e05;transform:translateY(-1px)}
.fx-hero-note{margin-top:.9rem;font-weight:700;font-size:.9rem;color:#bbf7d0}

/* بطاقة التتبع التوضيحية */
.fx-hero-card{background:rgba(255,255,255,.96);color:#1d2a1d;border-radius:28px;padding:1.5rem;box-shadow:0 40px 70px -24px rgba(0,0,0,.55);transform:rotate(-2deg);max-width:380px;margin-inline:auto;animation:fx-fade .8s ease both}
.fx-hc-top{display:flex;align-items:center;gap:.8rem;margin-bottom:1.1rem}
.fx-hc-top small{display:block;color:#6b7a6b;font-size:.78rem}
.fx-hc-ic{width:50px;height:50px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(135deg,#16a34a,#4ade80);color:#fff;font-size:1.3rem}
.fx-hc-steps{list-style:none;padding:0;margin:0 0 1rem;display:flex;flex-direction:column;gap:.7rem}
.fx-hc-steps li{display:flex;align-items:center;gap:.7rem;font-weight:700;color:#8a978a}
.fx-hc-steps li i{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#eef2ea;font-size:.8rem}
.fx-hc-steps li.done{color:#1d2a1d}.fx-hc-steps li.done i{background:#16a34a;color:#fff}
.fx-hc-steps li.now{color:#15803d}.fx-hc-steps li.now i{background:#fff;border:2px solid #16a34a;color:#16a34a;animation:fx-pulse 1.8s infinite}
.fx-hc-bar{height:8px;background:#e8efe4;border-radius:8px;overflow:hidden}
.fx-hc-bar span{display:block;height:100%;width:66%;background:linear-gradient(90deg,#16a34a,#a3e635);border-radius:8px;animation:fx-grow 2.4s ease-in-out infinite alternate}
@keyframes fx-grow{from{width:55%}to{width:78%}}

/* شريط الأرقام */
.fx-statsbar{display:grid;grid-template-columns:repeat(4,1fr);gap:0;background:var(--surface);border-radius:22px;box-shadow:var(--shadow);margin-top:-2.6rem;position:relative;z-index:2;border:1px solid var(--line)}
.fx-statsbar div{padding:1.2rem 1rem;text-align:center;border-inline-start:1px solid var(--line)}
.fx-statsbar div:first-child{border:0}
.fx-statsbar b{display:block;font-size:1.8rem;font-weight:900;color:var(--brand-700);line-height:1.2}
.fx-statsbar span{color:var(--muted);font-weight:700;font-size:.9rem}

.fx-home{padding-bottom:1rem}
.fx-sec{margin-top:2.5rem}
.fx-fire{display:inline-block;animation:fx-fire 1.2s ease-in-out infinite}
@keyframes fx-fire{50%{transform:scale(1.18) rotate(-6deg)}}

/* التصنيفات */
.fx-cats{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:.8rem}
.fx-cat{display:flex;flex-direction:column;align-items:center;gap:.15rem;padding:1rem .5rem;background:var(--surface);border:1px solid var(--line);border-radius:20px;text-align:center;color:var(--text);transition:.2s}
.fx-cat:hover,.fx-cat.active{transform:translateY(-4px);border-color:var(--brand);box-shadow:0 14px 26px -14px var(--brand);color:var(--text);background:var(--brand-50)}
.fx-cat-emo{font-size:2.3rem;line-height:1.2}
.fx-cat b{font-size:.95rem}.fx-cat small{color:var(--muted);font-size:.74rem;font-weight:700}

/* المتاجر */
.fx-stores{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:1rem}
.fx-store{display:flex;flex-direction:column;gap:.35rem;padding:1.15rem;background:var(--surface);border:1px solid var(--line);border-radius:22px;color:var(--text)}
.fx-store:hover{color:var(--text)}
.fx-store.is-closed{opacity:.72;filter:grayscale(.4)}
.fx-store-top{display:flex;justify-content:space-between;align-items:flex-start}
.fx-store-av{width:60px;height:60px;border-radius:18px;display:grid;place-items:center;font-size:1.9rem;background:linear-gradient(135deg,var(--brand-50),var(--accent-50));overflow:hidden}
.fx-store-av img{width:100%;height:100%;object-fit:cover}
.fx-store h3{font-size:1.1rem;margin:.35rem 0 0}
.fx-store p{color:var(--muted);font-size:.85rem;margin:0}
.fx-store-foot{display:flex;flex-wrap:wrap;gap:.3rem .9rem;margin-top:.5rem;padding-top:.7rem;border-top:1px dashed var(--line);color:var(--muted);font-size:.82rem;font-weight:700}
.fx-store-foot i{color:var(--brand);margin-inline-end:.25rem}

/* بتطلب إزاي */
.fx-howto{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}
.fx-howto>div{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:1.5rem 1.2rem;text-align:center}
.fx-howto .n{position:absolute;top:.8rem;inset-inline-start:.9rem;width:28px;height:28px;border-radius:50%;background:var(--brand);color:#fff;font-weight:900;display:grid;place-items:center;font-size:.85rem}
.fx-howto i{font-size:1.8rem;color:var(--brand);background:var(--brand-50);width:66px;height:66px;display:grid;place-items:center;border-radius:20px;margin:0 auto .8rem}
.fx-howto h4{font-size:1.05rem;margin-bottom:.3rem}.fx-howto p{margin:0;color:var(--muted);font-size:.88rem}

/* ليه Freshly */
.fx-why{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}
.fx-why-card{padding:1.4rem;border-radius:22px;background:linear-gradient(160deg,var(--brand-50),#fff);border:1px solid var(--line)}
.fx-why-card i{font-size:1.5rem;color:var(--brand);margin-bottom:.6rem}
.fx-why-card h4{font-size:1.05rem;margin-bottom:.25rem}.fx-why-card p{margin:0;color:var(--muted);font-size:.88rem}

/* انضم */
.fx-join{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.fx-join-card{display:flex;align-items:center;justify-content:space-between;gap:1.2rem;padding:1.8rem;border-radius:26px;color:#fff;position:relative;overflow:hidden}
.fx-join-card h3{font-size:1.3rem;margin-bottom:.4rem}.fx-join-card p{margin:0;opacity:.9;font-size:.92rem;max-width:380px}
.fx-join-vendor{background:linear-gradient(135deg,#0f766e,#14b8a6)}
.fx-join-rider{background:linear-gradient(135deg,#0a0f1c,#1e293b)}

/* أسئلة شائعة */
.fx-faq .accordion-item{border:1px solid var(--line);border-radius:16px!important;margin-bottom:.6rem;overflow:hidden;background:var(--surface)}
.fx-faq .accordion-button{font-weight:800;background:var(--surface);color:var(--text);box-shadow:none;font-family:var(--font)}
.fx-faq .accordion-button:not(.collapsed){background:var(--brand-50);color:var(--brand-700)}

@media(max-width:991px){
  .fx-hero{padding:2.5rem 0 4.5rem}.fx-hero-in{grid-template-columns:1fr;gap:2rem}.fx-hero-card{transform:none}
  .fx-statsbar{grid-template-columns:repeat(2,1fr)}.fx-statsbar div:nth-child(3){border-inline-start:0}
  .fx-howto,.fx-why{grid-template-columns:repeat(2,1fr)}.fx-join{grid-template-columns:1fr}
}
@media(max-width:575px){
  .fx-hero-card{display:none}.fx-howto,.fx-why{grid-template-columns:1fr}
  .fx-join-card{flex-direction:column;align-items:flex-start}
}
