@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;600;700&display=swap');
/* How to Use guide */
.gd { --ink: #14213d; --mut: #5b6b82; max-width: 1040px; margin: 0 auto; color: var(--ink); position: relative; }
.gd-ur { font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Noto Naskh Arabic', 'Segoe UI', Tahoma, serif; }
.gd-ur .gd-list li, .gd-ur .gd-tip span, .gd-ur .gd-card span, .gd-ur .gd-hero p { line-height: 2.15; }
.gd-ur h2, .gd-ur h3 { line-height: 1.9; }
.gd-hero { position: relative; overflow: hidden; border-radius: 22px; padding: 30px 26px 24px; color: #fff;
  background: linear-gradient(120deg, #0b3a82 0%, #1e6fd9 50%, #7c3aed 100%); background-size: 200% 200%; animation: gdShift 14s ease infinite;
  box-shadow: 0 14px 34px rgba(11, 58, 130, .28); }
@keyframes gdShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.gd-orb { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .12); pointer-events: none; }
.gd-orb.o1 { width: 220px; height: 220px; top: -70px; right: -50px; animation: gdFloat 7s ease-in-out infinite; }
.gd-orb.o2 { width: 120px; height: 120px; bottom: -40px; left: 30%; animation: gdFloat 9s ease-in-out infinite reverse; }
@keyframes gdFloat { 50% { transform: translateY(14px) scale(1.06); } }
.gd-hero-in { position: relative; }
.gd-badge { display: inline-block; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35); padding: 5px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; backdrop-filter: blur(4px); }
.gd-hero h2 { margin: 10px 0 2px; font-size: 34px; letter-spacing: .3px; color: #fff; }
.gd-hero p { margin: 2px 0; opacity: .95; }
.gd-hero .gd-lead { margin-top: 8px; font-size: 14px; opacity: .85; }
.gd-ctrl { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 12px; }
.gd-seg { display: inline-flex; background: rgba(255, 255, 255, .16); border-radius: 999px; padding: 4px; gap: 2px; }
.gd-seg button { width: auto; background: transparent; color: #fff; border: 0; padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: none; min-height: 0; }
.gd-seg button.on { background: #fff; color: #0b3a82; box-shadow: 0 3px 10px rgba(0, 0, 0, .18); }
.gd-prog { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; font-weight: 600; }
.gd-bar2 { flex: 1 1 160px; max-width: 320px; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.gd-bar2 i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #fde047, #4ade80); transition: width .5s; }
.gd-reset { width: auto; background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .5); padding: 3px 12px; border-radius: 999px; font-size: 12px; cursor: pointer; min-height: 0; }

.gd-chips { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto; padding: 12px 4px; margin: 10px 0 0; background: linear-gradient(#f4f7fb 75%, rgba(244, 247, 251, 0)); scrollbar-width: thin; }
.gd-chips a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px 6px 6px; background: #fff; border: 1px solid #dbe4f0; border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: 0 2px 6px rgba(20, 33, 61, .06); transition: transform .15s; }
.gd-chips a:hover { transform: translateY(-2px); border-color: var(--c); }
.gd-chips a b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: #fff; font-size: 12px; }
.gd-hint { text-align: center; color: var(--mut); font-size: 13px; margin: 2px 0 10px; }

.gd-steps { display: flex; flex-direction: column; gap: 22px; }
.gd-step { position: relative; background: #fff; border-radius: 20px; padding: 20px 22px 18px; border: 1px solid #e3eaf4; border-top: 5px solid var(--c);
  box-shadow: 0 8px 22px rgba(20, 33, 61, .07); opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .5s, box-shadow .2s; scroll-margin-top: 70px; }
.gd-step.in { opacity: 1; transform: none; }
.gd-step:hover { box-shadow: 0 12px 28px rgba(20, 33, 61, .12); }
.gd-step.is-done { background: linear-gradient(#f3fff8, #fff 40%); }
.gd-head { display: flex; align-items: center; gap: 14px; }
.gd-num { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font-size: 22px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #000)); box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 45%, transparent); }
.gd-ttl small { color: var(--mut); font-weight: 700; text-transform: uppercase; letter-spacing: .6px; font-size: 11px; }
.gd-ur .gd-ttl small { letter-spacing: 0; }
.gd-ttl h3 { margin: 2px 0 0; font-size: 21px; color: var(--ink); }
.gd-ico { display: inline-block; animation: gdBob 3s ease-in-out infinite; }
@keyframes gdBob { 50% { transform: translateY(-3px) rotate(-6deg); } }
.gd-list { list-style: none; margin: 14px 0 6px; padding: 0; display: grid; gap: 8px; }
.gd-list li { position: relative; padding: 9px 14px 9px 40px; background: #f6f9fe; border-radius: 12px; font-size: 15px; line-height: 1.5; }
.gd-list li::before { content: '✓'; position: absolute; left: 11px; top: 9px; width: 20px; height: 20px; border-radius: 50%; background: var(--c); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.gd[dir=rtl] .gd-list li { padding: 9px 40px 9px 14px; }
.gd[dir=rtl] .gd-list li::before { left: auto; right: 11px; }
.gd-tip { display: flex; flex-direction: column; gap: 2px; margin: 10px 0; padding: 11px 15px; border-radius: 14px; background: #fff8e1; border: 1px dashed #f5b942; color: #7a5200; font-size: 14px; }
.gd-shots { display: grid; gap: 14px; margin-top: 14px; }
.gd-shots.multi { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.gd-shot { margin: 0; }
.gd-frame { border-radius: 12px; overflow: hidden; border: 1px solid #cfd9e8; box-shadow: 0 10px 24px rgba(20, 33, 61, .14); background: #fff; }
.gd-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #e9eef6; border-bottom: 1px solid #d6deea; }
.gd-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff6159; }
.gd-bar i:nth-child(2) { background: #ffbd2e; } .gd-bar i:nth-child(3) { background: #28c940; }
.gd-bar span { margin-left: 10px; font: 11px/1 monospace; color: #6b7a90; background: #fff; padding: 4px 12px; border-radius: 99px; direction: ltr; }
.gd-frame img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.gd-act { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.gd-open { width: auto; background: var(--c); color: #fff; border: 0; border-radius: 999px; padding: 9px 18px; font-weight: 700; cursor: pointer; box-shadow: 0 5px 12px color-mix(in srgb, var(--c) 40%, transparent); }
.gd-chk { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--mut); cursor: pointer; }
.gd-chk input { width: 20px; height: 20px; accent-color: var(--c); }
.gd-good { margin: 28px 0 10px; }
.gd-good h3 { font-size: 22px; margin: 0 0 12px; }
.gd-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.gd-card { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid #e3eaf4; border-radius: 18px; padding: 16px; box-shadow: 0 6px 16px rgba(20, 33, 61, .06); opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s; }
.gd-card.in { opacity: 1; transform: none; }
.gd-card span { color: var(--mut); font-size: 14px; line-height: 1.5; }
.gd-gi { font-size: 30px; }
.gd-up { position: fixed; right: 16px; bottom: 90px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #0b3a82; color: #fff; font-size: 20px; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); cursor: pointer; z-index: 20; padding: 0; min-height: 0; }
.gd-zoom { position: fixed; inset: 0; z-index: 9999; background: rgba(8, 15, 30, .88); display: grid; place-items: center; padding: 14px; cursor: zoom-out; overflow: auto; }
.gd-zoom img { max-width: 100%; max-height: 100%; border-radius: 10px; background: #fff; }
.gd-zoom button { position: fixed; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: #111; font-size: 18px; padding: 0; min-height: 0; }
@media (max-width: 760px) {
  .gd-hero { padding: 22px 16px 18px; border-radius: 18px; }
  .gd-hero h2 { font-size: 27px; }
  .gd-step { padding: 16px 14px 14px; border-radius: 16px; }
  .gd-ttl h3 { font-size: 18px; }
  .gd-num { width: 42px; height: 42px; font-size: 19px; border-radius: 13px; }
  .gd-list li { font-size: 14.5px; }
  .gd-shots { justify-items: center; }
  .gd-shot { width: min(100%, 300px); }
  .gd-frame { border-radius: 26px; border: 7px solid #111c33; box-shadow: 0 12px 26px rgba(20, 33, 61, .3); }
  .gd-bar { display: none; }
  .gd-frame img { border-radius: 16px; }
  .gd-shots.multi { grid-template-columns: 1fr; }
  .gd-open { flex: 1 1 100%; padding: 12px; }
  .gd-up { bottom: 100px; }
}
@media (prefers-reduced-motion: reduce) { .gd-hero, .gd-orb, .gd-ico { animation: none; } .gd-step, .gd-card { opacity: 1; transform: none; } }

/* numbers inside circles / boxes: always dead-centre (Urdu font has tall line-height) */
.gd-num, .gd-chips a b { font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif; line-height: 1 !important; display: grid; place-items: center; text-align: center; padding: 0; }
.gd-chips a b { width: 24px; height: 24px; }
.gd-chips a { line-height: 1.2; }

.gd-shot[data-id^=pp_]{max-width:300px;margin:0 auto}.gd-shot[data-id^=pp_] .gd-bar span{font-size:10px}
