@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  --bg:#071521;
  --surface:#0b2030;
  --surface2:#102b3d;
  --text:#f2f7f8;
  --muted:#9fb3bd;
  --line:rgba(255,255,255,.10);
  --gold:#e5bd67;
  --gold2:#b98b39;
  --teal:#54d4bd;
  --shadow:0 22px 60px rgba(0,0,0,.32);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background:
  radial-gradient(circle at 12% 0%,rgba(84,212,189,.13),transparent 30rem),
  radial-gradient(circle at 92% 10%,rgba(229,189,103,.12),transparent 26rem),
  var(--bg);
  color:var(--text);font-family:Inter,system-ui,sans-serif;
  min-height:100vh;
}
button,input{font:inherit}
button{cursor:pointer}
.app-shell{width:min(100%,980px);margin:auto;padding:16px 14px 28px}
.topbar{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:8px 2px 16px
}
.brand{display:flex;align-items:center;gap:12px}
.brand-mark{
  width:50px;height:50px;border-radius:16px;display:grid;place-items:center;
  font-family:Amiri,serif;font-size:28px;color:#081923;
  background:linear-gradient(145deg,#f5d98f,#b98638);
  box-shadow:0 12px 30px rgba(229,189,103,.18)
}
.eyebrow{font-size:9px;letter-spacing:1.5px;color:var(--teal);font-weight:800}
h1{font-size:21px;margin:2px 0 0;letter-spacing:-.5px}
.brand p{margin:1px 0 0;color:var(--muted);font-size:11px}
.icon-btn{
  width:42px;height:42px;border:1px solid var(--line);border-radius:14px;
  background:rgba(255,255,255,.05);color:var(--text)
}
.hero{
  position:relative;overflow:hidden;min-height:250px;border:1px solid var(--line);
  border-radius:30px;padding:30px;display:flex;align-items:center;
  background:linear-gradient(135deg,rgba(17,51,69,.92),rgba(7,25,37,.92));
  box-shadow:var(--shadow)
}
.hero-glow{position:absolute;width:260px;height:260px;border-radius:50%;right:-80px;top:-100px;background:rgba(229,189,103,.12);filter:blur(8px)}
.hero-copy{position:relative;z-index:1;max-width:650px}
.pill{
  display:inline-flex;padding:7px 11px;border-radius:999px;background:rgba(84,212,189,.09);
  border:1px solid rgba(84,212,189,.22);color:var(--teal);font-size:10px;font-weight:800;letter-spacing:1px
}
.hero h2{font-size:clamp(28px,5vw,48px);line-height:1.05;margin:14px 0 10px;letter-spacing:-1.8px}
.hero p{max-width:620px;color:#b8c9cf;line-height:1.65;font-size:13px}
.hero-symbol{
  position:absolute;right:28px;bottom:-18px;font:170px/1 Amiri,serif;color:rgba(229,189,103,.08);
  user-select:none
}
.hero-actions{display:flex;gap:9px;margin-top:18px;flex-wrap:wrap}
.primary-btn,.ghost-btn{
  border:0;border-radius:13px;padding:11px 16px;font-weight:800;font-size:12px
}
.primary-btn{background:linear-gradient(135deg,#e8c978,#b98b39);color:#081923}
.ghost-btn{background:rgba(255,255,255,.06);color:var(--text);border:1px solid var(--line)}
.toolbar{display:flex;gap:10px;align-items:center;margin:16px 0}
.search-box{
  flex:1;display:flex;align-items:center;gap:8px;padding:0 12px;
  height:48px;background:rgba(255,255,255,.055);border:1px solid var(--line);
  border-radius:16px;box-shadow:0 10px 30px rgba(0,0,0,.13)
}
.search-box span{font-size:23px;color:var(--gold)}
.search-box input{width:100%;border:0;outline:0;background:transparent;color:var(--text);font-size:13px}
.search-box input::placeholder{color:#718994}
.search-box button{border:0;background:none;color:#718994;font-size:22px}
.stats{min-width:70px;text-align:center;color:var(--muted)}
.stats span{display:block;color:var(--gold);font-size:18px;font-weight:800;line-height:1}
.stats small{font-size:9px;text-transform:uppercase;letter-spacing:1px}
.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.card{
  position:relative;padding:15px;border:1px solid var(--line);border-radius:21px;
  background:linear-gradient(145deg,rgba(20,52,68,.82),rgba(8,27,40,.9));
  transition:.2s transform,.2s border-color,.2s box-shadow;overflow:hidden
}
.card:hover{transform:translateY(-3px);border-color:rgba(229,189,103,.35);box-shadow:0 18px 35px rgba(0,0,0,.18)}
.card:before{content:"";position:absolute;left:0;top:0;width:42px;height:2px;background:linear-gradient(90deg,var(--gold),transparent)}
.card-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.num{font-size:10px;color:var(--teal);font-weight:800}
.card-actions{display:flex;gap:5px}
.mini-btn{border:1px solid var(--line);background:rgba(255,255,255,.04);color:#b9cbd1;border-radius:9px;padding:5px 7px;font-size:10px}
.arabic{font:700 30px/1.35 Amiri,serif;color:#f5d991;text-align:right;margin:9px 0 5px}
.translit{font-size:12px;font-weight:800;color:#e7f1f2}
.en{font-size:11px;color:#a9bdc5;margin-top:3px}
.ur{font-family:Amiri,serif;font-size:18px;color:#68d9c1;margin-top:8px}
.note{margin-top:8px;color:#6f8791;font-size:9px;line-height:1.45}
.empty{text-align:center;padding:60px 20px;color:var(--muted)}
.empty div{font-size:40px;color:var(--gold)}
.empty h3{color:var(--text);margin:8px 0}
footer{
  margin-top:18px;padding:16px 5px;border-top:1px solid var(--line);display:flex;
  justify-content:space-between;gap:10px;flex-wrap:wrap;color:#718994;font-size:9px
}
.footer-brand{color:#d7e4e7}.offline-status span{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--teal);margin-right:5px}
.toast{
  position:fixed;left:50%;bottom:22px;transform:translate(-50%,20px);opacity:0;
  background:#102d3e;border:1px solid rgba(229,189,103,.3);color:#fff;padding:10px 14px;
  border-radius:12px;font-size:11px;pointer-events:none;transition:.25s;z-index:20
}
.toast.show{opacity:1;transform:translate(-50%,0)}
body.light{
  --bg:#eef4f3;--surface:#fff;--surface2:#f4f8f7;--text:#102b35;--muted:#64777d;
  --line:rgba(16,43,53,.11);--shadow:0 20px 50px rgba(22,54,63,.13)
}
body.light .hero{background:linear-gradient(135deg,#fff,#e7f1ef)}
body.light .card{background:linear-gradient(145deg,#fff,#f0f7f5)}
@media(max-width:650px){
  .app-shell{padding:10px 10px 22px}.hero{padding:23px;min-height:310px;border-radius:25px}
  .hero h2{font-size:31px}.hero-symbol{font-size:120px;right:5px;bottom:-8px}
  .cards{grid-template-columns:1fr 1fr;gap:8px}.card{padding:11px;border-radius:17px}
  .arabic{font-size:25px}.ur{font-size:16px}.translit{font-size:10px}.en{font-size:9px}
  .mini-btn{padding:4px 6px}.brand-mark{width:44px;height:44px}.eyebrow{font-size:8px}
}
@media(max-width:390px){.cards{grid-template-columns:1fr}.hero-actions button{width:100%}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
