/* Ahmed Sayed · digital card */

:root{
  --bg:#08080A;
  --panel:#101013;
  --panel-2:#15151A;
  --line:rgba(255,255,255,.085);
  --line-strong:rgba(255,255,255,.16);
  --ink:#F3F0E9;
  --muted:#928D84;
  --gold:#C9A24C;
  --gold-2:#E3C687;
  --gold-tint:rgba(201,162,76,.13);
  --r:16px;
  --font:"IBM Plex Sans Arabic",system-ui,-apple-system,"Segoe UI",sans-serif;
  --display:"Amiri",Georgia,serif;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  min-height:100dvh;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none;-webkit-tap-highlight-color:transparent}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

.glow{
  position:fixed;inset:-20% -20% auto;height:60vh;z-index:0;pointer-events:none;
  background:
    radial-gradient(60% 60% at 50% 0%,rgba(201,162,76,.20),rgba(201,162,76,0) 70%),
    radial-gradient(40% 40% at 85% 10%,rgba(201,162,76,.10),rgba(201,162,76,0) 70%);
  filter:blur(6px);
}

.page{
  position:relative;z-index:1;
  width:100%;max-width:430px;
  margin:0 auto;
  padding:0 0 34px;
}

/* ---------- hero ---------- */
.hero{position:relative}
.photo{position:relative;height:clamp(330px,86vw,410px);overflow:hidden;background:#141416}
.photo img{width:100%;height:100%;object-fit:cover;object-position:50% 28%;transform:scale(1.02)}
.shade{
  position:absolute;inset:0;
  background:
    linear-gradient(to top,var(--bg) 2%,rgba(8,8,10,.72) 26%,rgba(8,8,10,.12) 58%,rgba(8,8,10,.28) 100%);
}
.frame{
  position:absolute;inset:12px 12px 0;
  border:1px solid rgba(201,162,76,.34);
  border-bottom:0;
  border-radius:14px 14px 0 0;
  pointer-events:none;
}
.id{
  position:absolute;inset:auto 0 0;
  padding:0 22px 18px;
  text-align:center;
}
.eyebrow{
  margin:0 0 6px;
  font-size:11.5px;font-weight:600;letter-spacing:.14em;
  color:var(--gold-2);text-transform:none;
}
.id h1{
  margin:0;
  font-family:var(--display);
  font-weight:700;
  font-size:42px;
  line-height:1.15;
  letter-spacing:0;
}
.tagline{
  margin:8px 0 0;font-size:13px;color:var(--muted);letter-spacing:.06em;
}

/* ---------- intro ---------- */
.intro{padding:16px 24px 4px;text-align:center}
.intro p{margin:0;font-size:14.5px;line-height:1.85;color:#C8C3B9}

/* ---------- actions ---------- */
.actions{
  display:grid;grid-template-columns:1fr 1fr;gap:10px;
  padding:18px 20px 8px;
}
.btn{
  display:flex;align-items:center;justify-content:center;gap:8px;
  height:52px;border-radius:14px;
  font-size:14.5px;font-weight:600;
  border:1px solid transparent;
  transition:transform .16s ease,background .16s ease,border-color .16s ease;
}
.btn svg{width:19px;height:19px}
.btn:active{transform:scale(.975)}
.btn-primary{
  background:linear-gradient(180deg,var(--gold-2),var(--gold));
  color:#1A1408;
  box-shadow:0 6px 18px -8px rgba(201,162,76,.75);
}
.btn-ghost{
  background:var(--panel);
  border-color:var(--line);
  color:#E7E2D8;
}
.btn-ghost:hover{border-color:var(--line-strong);background:var(--panel-2)}

/* ---------- details ---------- */
.details{padding:14px 20px 4px}
.row{
  display:flex;align-items:center;gap:12px;
  padding:13px 2px;
  border-bottom:1px solid var(--line);
}
.row:last-child{border-bottom:0}
.ico{
  flex:0 0 38px;height:38px;border-radius:12px;
  display:grid;place-items:center;
  background:var(--gold-tint);
  border:1px solid rgba(201,162,76,.18);
  color:var(--gold-2);
}
.ico svg{width:18px;height:18px}
.txt{display:flex;flex-direction:column;align-items:flex-start;min-width:0;flex:1}
.k{font-size:11.5px;color:var(--muted);letter-spacing:.04em}
.v{font-size:14.5px;color:#EDE9E0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.num{direction:ltr;unicode-bidi:isolate;text-align:right}
.chev{color:#5C5850;font-size:20px;line-height:1;transform:translateY(-1px)}
.row:not(.row-static):active .v{color:var(--gold-2)}

/* ---------- social ---------- */
.social{
  display:flex;justify-content:center;gap:10px;
  padding:22px 20px 6px;
}
.social a{
  width:46px;height:46px;border-radius:14px;
  display:grid;place-items:center;
  border:1px solid var(--line);
  background:var(--panel);
  color:#CFCAC0;
  transition:border-color .16s ease,color .16s ease,transform .16s ease;
}
.social a:active{transform:scale(.95)}
.social a:hover{border-color:rgba(201,162,76,.4);color:var(--gold-2)}

/* ---------- qr ---------- */
.qr{
  display:flex;align-items:center;gap:14px;
  margin:20px 20px 0;padding:14px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--r);
}
.qr img{
  width:74px;height:74px;border-radius:8px;background:#fff;padding:4px;
}
.qr p{margin:0;font-size:12.5px;line-height:1.7;color:var(--muted)}

/* ---------- footer ---------- */
.foot{
  margin-top:26px;
  display:flex;flex-direction:column;align-items:center;gap:10px;
  text-align:center;
}
.mono{
  width:34px;height:34px;border-radius:50%;
  display:grid;place-items:center;
  font-family:var(--display);font-size:13px;color:var(--gold-2);
  border:1px solid rgba(201,162,76,.3);
}
.foot p{margin:0;font-size:11.5px;color:#6E6A63}

/* ---------- toast ---------- */
.toast{
  position:fixed;left:50%;bottom:26px;z-index:20;
  transform:translate(-50%,20px);
  padding:11px 18px;border-radius:999px;
  background:#1D1B16;border:1px solid rgba(201,162,76,.35);
  color:var(--gold-2);font-size:13px;font-weight:500;
  opacity:0;pointer-events:none;
  transition:opacity .22s ease,transform .22s ease;
  box-shadow:0 12px 30px -12px rgba(0,0,0,.9);
}
.toast.on{opacity:1;transform:translate(-50%,0)}

/* ---------- motion ---------- */
@media (prefers-reduced-motion:no-preference){
  .photo img,.id,.intro,.actions,.details,.social,.qr,.foot{
    animation:rise .7s cubic-bezier(.2,.7,.2,1) backwards;
  }
  .id{animation-delay:.05s}
  .intro{animation-delay:.12s}
  .actions{animation-delay:.18s}
  .details{animation-delay:.24s}
  .social{animation-delay:.3s}
  .qr{animation-delay:.36s}
  .foot{animation-delay:.42s}
  @keyframes rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
}

/* ---------- desktop: card on a surface ---------- */
@media (min-width:600px){
  body{
    background:
      radial-gradient(70% 50% at 50% 0%,#17140F 0%,#08080A 60%);
    padding:44px 20px;
  }
  .page{
    background:var(--bg);
    border:1px solid var(--line);
    border-radius:26px;
    overflow:hidden;
    box-shadow:0 40px 80px -40px rgba(0,0,0,.9),0 0 0 1px rgba(255,255,255,.02);
  }
  .photo{border-radius:0}
  .frame{inset:14px 14px 0;border-radius:16px 16px 0 0}
}
