@import"https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;600;700&family=Cairo:wght@500;700&display=swap";*,*:before,*:after{box-sizing:border-box}body{margin:0;min-height:100vh;background:#f3f4f6;color:#0f172a;font-family:Tajawal,Cairo,Inter,sans-serif;direction:ltr}a{color:inherit;text-decoration:none}img{display:block;max-width:100%}button,input{font-family:inherit}:root{color:#1f2937;background-color:#fef4ef;font-family:Tajawal,Cairo,Inter,sans-serif;line-height:1.6}.app{min-height:100vh;background:linear-gradient(180deg,#0f172a,#fef4ef 45%);padding-bottom:3rem}.layout{max-width:980px;margin:1rem auto 0;padding:0 clamp(1rem,4vw,1.5rem);display:grid;gap:1.5rem}.topbar{position:sticky;top:0;z-index:20;background:#0f172afa;display:flex;align-items:center;justify-content:space-between;padding:.85rem clamp(1.5rem,4vw,2.5rem);color:#f8fafc;box-shadow:0 12px 24px #0f172a59;border-bottom:1px solid rgba(255,255,255,.08);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.topbar__brand{display:flex;align-items:center;gap:.75rem;font-weight:700;flex-wrap:wrap}.topbar__logo{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:linear-gradient(135deg,#f97316,#facc15);color:#101828;font-weight:800}.topbar__name{font-size:1.1rem;letter-spacing:.04em}.topbar__actions{display:flex;gap:.75rem;flex-wrap:wrap;align-items:center}.topbar__actions button{border:none;border-radius:12px;padding:.55rem 1.2rem;font-weight:600;cursor:pointer;background:#f8fafc1f;color:inherit;transition:opacity .2s ease}.language-switcher{border-radius:10px;border:1px solid rgba(15,23,42,.15);background:#fff;color:#0f172a;padding:.4rem .75rem;font-weight:600;cursor:pointer}.topbar__actions button.primary{background:linear-gradient(135deg,#f97316,#facc15);color:#111827}.topbar__actions button:disabled{opacity:.6;cursor:not-allowed}.topbar__actions button:hover{opacity:.88}.topbar__user{color:#fde68a;font-weight:600;font-size:.9rem}.topbar__alert{display:block;font-size:.75rem;color:#f87171;margin-top:.25rem}.hero{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.25rem;background:linear-gradient(145deg,#ff8a4c,#f87171);color:#fff;border-radius:22px;padding:clamp(1.75rem,5vw,2.75rem);box-shadow:0 20px 45px #0f172a40}.hero__text{display:grid;gap:.85rem}.hero__text h1{margin:0;font-size:clamp(1.8rem,4vw,2.4rem);line-height:1.2}.hero__text h1 span{color:#fde68a}.hero__text p{margin:0;font-size:1rem;color:#ffffffd9}.hero__text button{justify-self:start;border:none;border-radius:999px;padding:clamp(.55rem,2vw,.65rem) clamp(1.2rem,4vw,1.6rem);background:#111827;color:#fdf2f8;font-weight:700;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}.hero__text button:hover{transform:translateY(-1px);box-shadow:0 12px 24px #11182759}.hero__art{position:relative;display:grid;place-items:center}.hero__illustration{width:160px;height:160px;border-radius:28px;background:radial-gradient(circle at top,rgba(255,237,213,.85),transparent),linear-gradient(135deg,#ffffff59,#fff0)}.categories{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.75rem;background:#fff;padding:.85rem;border-radius:18px;box-shadow:0 12px 32px #0f172a1f}.categories__item{border:none;border-radius:14px;padding:.9rem .85rem;display:grid;gap:.3rem;text-align:center;background:#f8fafc;color:#475569;min-height:110px;cursor:pointer;font-weight:600;transition:transform .2s ease,box-shadow .2s ease,background .2s ease}.categories__item.is-active{background:linear-gradient(135deg,#f97316,#fb923c);color:#fff;transform:translateY(-4px);box-shadow:0 16px 28px #f9731640}.categories__icon{font-size:1.5rem}.categories__label{font-size:1rem}.categories__helper{font-size:.75rem;font-weight:500;opacity:.8}.products{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}.product-card{background:#fff;border-radius:18px;padding:1.15rem 1.2rem;display:flex;flex-direction:column;gap:.85rem;box-shadow:0 10px 30px #0f172a14;border:1px solid rgba(248,113,113,.08)}.product-card__header{display:flex;align-items:center;gap:.9rem}.product-card__avatar{width:52px;height:52px;border-radius:16px;background:linear-gradient(145deg,#fff7ed,#fde68a);display:grid;place-items:center;overflow:hidden}.product-card__avatar img{width:40px;height:40px;object-fit:contain}.product-card__headline h3{margin:0;font-size:1.05rem;color:#111827}.product-card__headline p{margin:.25rem 0 0;font-size:.9rem;color:#4b5563;line-height:1.4}.product-card__activity{display:flex;justify-content:space-between;font-size:.8rem;color:#9ca3af;margin-top:.35rem}.product-card__footer{display:flex;align-items:center;justify-content:space-between;margin-top:.75rem}.product-card__price{display:flex;align-items:baseline;gap:.25rem}.product-card__price-value{font-size:1.4rem;font-weight:700;color:#f97316}.product-card__price-caption{font-size:.75rem;color:#6b7280}.product-card__cta{border:none;border-radius:999px;padding:.5rem 1.3rem;background:#0f172a;color:#fff;font-weight:600;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}.product-card__cta:hover{transform:translateY(-1px);box-shadow:0 10px 22px #0f172a40}.auth-modal{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:50}.auth-modal__overlay{position:absolute;inset:0;background:#0f172a8c;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.auth-modal__panel{position:relative;width:min(420px,92vw);background:#fff;border-radius:18px;padding:2rem 1.75rem 1.5rem;box-shadow:0 25px 60px #0f172a47;display:grid;gap:1rem;z-index:1}.auth-modal__close{position:absolute;top:.75rem;left:.75rem;border:none;background:none;font-size:1.5rem;line-height:1;cursor:pointer;color:#475569}.auth-modal__panel h2{margin:0;text-align:center;font-size:1.35rem;color:#111827}.auth-modal__form{display:grid;gap:.85rem}.auth-modal__form label{display:grid;gap:.4rem;font-size:.85rem;color:#334155}.auth-modal__form input{border:1px solid #d0d7e6;border-radius:10px;padding:.6rem .75rem;font-size:.95rem}.auth-modal__form button[type=submit]{margin-top:.5rem;border:none;border-radius:999px;padding:.65rem 1.3rem;background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;font-weight:600;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}.auth-modal__form button[type=submit]:disabled{opacity:.65;cursor:not-allowed}.auth-modal__form button[type=submit]:not(:disabled):hover{transform:translateY(-1px);box-shadow:0 12px 24px #2563eb47}.auth-modal__link{background:none;border:none;color:#2563eb;font-size:.85rem;text-decoration:underline;cursor:pointer;justify-self:center}.auth-modal__error{margin:0;font-size:.85rem;color:#ef4444}.auth-modal__success{margin:0;font-size:.85rem;color:#16a34a}.auth-modal__info{margin:0;font-size:.9rem;color:#334155}@media(max-width:720px){.topbar{flex-wrap:wrap;gap:.75rem 1rem}.topbar__actions{justify-content:flex-start}.topbar__actions button{padding:.45rem .85rem}.categories{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}}@media(max-width:520px){.layout{padding:0 1rem}.topbar{padding:.75rem 1rem}.hero{grid-template-columns:1fr}.hero__text h1{font-size:1.8rem}.hero__text button{width:100%;text-align:center}.categories{display:flex;overflow-x:auto;padding-bottom:.5rem;padding-left:0;padding-right:0;gap:.65rem}.categories__item{min-width:130px;flex:0 0 auto}.product-card__meta{flex-direction:column;gap:.3rem}.product-card__footer{flex-direction:column;align-items:flex-start;gap:.75rem}.product-card__cta{width:100%;text-align:center}}.lessons-page{display:flex;flex-direction:column;gap:1.5rem;padding:3rem 0}.lessons-page__header h1{margin:0;font-size:2rem}.lessons-page__header p{margin:.25rem 0 0;color:#6b7280}.lessons-page__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.25rem}.lesson-card{background:#fff;border-radius:1rem;padding:1.5rem;box-shadow:0 12px 35px #0f172a14;display:flex;flex-direction:column;gap:.75rem}.lesson-card__meta{display:flex;justify-content:flex-end}.lesson-card__badge{font-size:.85rem;font-weight:600;color:#2563eb;background:#2563eb1a;padding:.2rem .75rem;border-radius:999px}.lesson-card__link{margin-top:auto;color:#2563eb;font-weight:600;text-decoration:none}.lesson-card__link:hover{text-decoration:underline}.app{position:relative;overflow:hidden}.app:before,.app:after{content:"";position:fixed;width:520px;height:520px;border-radius:50%;background:radial-gradient(circle,rgba(248,113,113,.18),transparent 65%);filter:blur(4px);z-index:0;animation:float 18s ease-in-out infinite}.app:before{top:-120px;left:-80px}.app:after{bottom:60px;right:-140px;animation-delay:6s}.layout{position:relative;z-index:1}.layout--lessons{max-width:1100px}.topbar__actions button{position:relative;overflow:hidden}.topbar__actions button.is-active{background:#f8fafc33;color:#fde68a}.hero{position:relative;overflow:hidden}.hero:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 20% 30%,rgba(255,255,255,.25),transparent 65%);opacity:.4;pointer-events:none}.hero__text button{position:relative;box-shadow:0 15px 30px #11182759;overflow:hidden}.hero__text button:after{content:"";position:absolute;inset:0;background:#fff3;opacity:0;transition:opacity .3s ease}.hero__text button:hover:after{opacity:1}.hero__art{min-height:220px}.hero__art:before,.hero__art:after{content:"";position:absolute;width:160px;height:160px;border-radius:50%;background:#ffffff26;animation:orbit 18s linear infinite}.hero__art:after{width:120px;height:120px;animation-duration:14s;animation-direction:reverse}.lessons-page__header{background:linear-gradient(120deg,#2563eb26,#3b82f60d);border-radius:22px;padding:2rem;box-shadow:inset 0 0 0 1px #3b82f626}.lesson-card{background:#0f172a;color:#e2e8f0;box-shadow:0 20px 45px #0f172a66;overflow:hidden;position:relative}.lesson-card:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at top right,rgba(248,150,30,.28),transparent 55%);opacity:.9}.lesson-card>*{position:relative;z-index:1}.lesson-card__link{color:#f97316;border-bottom:2px solid transparent;transition:border-color .2s ease}.lesson-card__link:hover{border-color:currentColor}@keyframes float{0%{transform:translateY(0)}50%{transform:translateY(-25px)}to{transform:translateY(0)}}@keyframes orbit{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
