/* ============================================================
   زرگرام شاپ — صفحه اصلی (لندینگ صرافی) — همه سلکتورها زیر .zg-home
   ============================================================ */

.zg-home{overflow-x:clip}

/* ---------- هیرو ---------- */
.zg-home .hero{position:relative;padding:52px 0 64px;overflow:hidden}
.zg-home .circuit{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;opacity:.9}
.zg-home .circuit path{stroke:rgba(217,180,91,.10);fill:none;stroke-width:1.5}
.zg-home .circuit circle{fill:rgba(217,180,91,.22)}
.zg-home .circuit rect{stroke:rgba(217,180,91,.10);fill:none;stroke-width:1.2;stroke-dasharray:5 5}
.zg-home .hero-inner{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;text-align:center}

@keyframes zgrise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
.zg-home .rise{animation:zgrise .7s cubic-bezier(.2,.9,.3,1) both}
.zg-home .r1{animation-delay:.05s}.zg-home .r2{animation-delay:.15s}.zg-home .r3{animation-delay:.25s}
.zg-home .r4{animation-delay:.35s}.zg-home .r5{animation-delay:.45s}.zg-home .r6{animation-delay:.55s}

.zg-home .hero-logo{position:relative;width:100px;height:100px;margin-bottom:26px}
.zg-home .hero-logo .frame{position:absolute;inset:-16px;border:1.5px dashed var(--line2);border-radius:8px;animation:zgframe 30s linear infinite}
@keyframes zgframe{to{transform:rotate(360deg)}}
.zg-home .hero-logo .box{position:absolute;inset:0;border-radius:26px;background:var(--grad);
  display:grid;place-items:center;color:var(--deep);box-shadow:0 22px 55px -14px rgba(217,180,91,.55)}
.zg-home .hero-logo .box .icon{width:50px;height:50px;stroke-width:1.9}
.zg-home .hero-tag{font-size:14.5px;font-weight:700;color:var(--muted);margin-bottom:10px}
.zg-home .hero h1{font-size:clamp(1.7rem,4.4vw,3rem);font-weight:900;line-height:1.65;letter-spacing:-.5px;max-width:820px;color:var(--text)}
.zg-home .hero h1 .g{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.zg-home .hero .desc{color:var(--muted);font-size:15.5px;max-width:620px;margin:12px 0 28px}

/* ---------- پنل ثبت‌نام ---------- */
.zg-home .reg-panel{width:min(660px,100%);background:var(--surface);border:1px solid var(--line2);border-radius:24px;
  padding:26px 26px 22px;box-shadow:var(--shadow);position:relative;overflow:hidden}
.zg-home .reg-panel::before{content:'';position:absolute;top:-70px;left:50%;transform:translateX(-50%);width:420px;height:150px;
  background:radial-gradient(closest-side,rgba(217,180,91,.18),transparent);pointer-events:none}
.zg-home .rp-title{font-size:14px;font-weight:900;color:var(--gold2);display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:16px}
.zg-home .rp-title .icon{width:17px;height:17px}
.zg-home .reg-box{display:flex;gap:10px;background:var(--bg2);border:1px solid var(--line);border-radius:16px;
  padding:9px;align-items:center;transition:.25s}
.zg-home .reg-box:focus-within{border-color:var(--gold);box-shadow:0 0 0 3px rgba(217,180,91,.13)}
.zg-home .reg-ic{width:44px;height:44px;border-radius:12px;background:rgba(217,180,91,.09);border:1px solid var(--line);
  display:grid;place-items:center;color:var(--gold);flex-shrink:0}
.zg-home .reg-box input{flex:1;min-width:0;border:none;background:transparent;color:var(--text);font-size:15.5px;font-weight:700;
  padding:8px 6px;direction:ltr;text-align:left;border-radius:0}
.zg-home .reg-box input:focus{outline:none;box-shadow:none;border:none}
.zg-home .reg-box input::placeholder{color:var(--faint);font-weight:400;direction:rtl;text-align:right}
.zg-home .reg-box .btn{flex-shrink:0}
.zg-home .reg-err{font-size:12px;color:var(--red);margin-top:7px;min-height:20px;text-align:right;padding-inline:6px}
.zg-home .gift{display:flex;align-items:center;gap:10px;margin-top:10px;padding:11px 16px;border-radius:14px;
  background:linear-gradient(120deg,rgba(217,180,91,.14),rgba(217,180,91,.04));border:1px dashed var(--line2);
  font-size:13px;justify-content:center;flex-wrap:wrap}
.zg-home .gift .icon{width:18px;height:18px;color:var(--gold2)}
.zg-home .gift b{color:var(--gold2)}
.zg-home .shake{animation:zgshk2 .45s}
@keyframes zgshk2{20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}

.zg-home .rp-divider{display:flex;align-items:center;gap:12px;margin:18px 0 14px;color:var(--faint);font-size:11.5px;font-weight:700}
.zg-home .rp-divider::before,.zg-home .rp-divider::after{content:'';flex:1;height:1px;background:var(--line)}
.zg-home .apps{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.zg-home .app-btn{display:flex;align-items:center;gap:10px;padding:9px 18px;border-radius:14px;font-size:13px;
  border:1px solid var(--line2);background:var(--bg2);transition:.3s;min-width:146px}
.zg-home .app-btn:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:var(--gold)}
.zg-home .app-btn .ic{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex-shrink:0}
.zg-home .app-btn .ic .icon{width:18px;height:18px}
.zg-home .app-btn .t{text-align:right;line-height:1.6}
.zg-home .app-btn .t b{display:block;font-size:13px}
.zg-home .app-btn .t span{font-size:10px;color:var(--faint);direction:ltr;display:block;text-align:right}
.zg-home .app-web .ic{background:rgba(217,180,91,.14);color:var(--gold2)}
.zg-home .app-ios .ic{background:var(--surface3);color:var(--muted)}
.zg-home .app-and .ic{background:rgba(95,214,162,.13);color:var(--green)}

.zg-home .cert{display:flex;align-items:center;gap:12px;margin-top:26px;color:var(--faint);font-size:12.5px;justify-content:center;flex-wrap:wrap}
.zg-home .cert .medal{width:42px;height:42px;border-radius:50%;border:1px solid var(--line2);display:grid;place-items:center;color:var(--gold)}
.zg-home .cert .medal .icon{width:20px;height:20px}

/* ---------- کارت‌های شناور ---------- */
.zg-home .float-card{position:absolute;z-index:1;background:var(--surface);border:1px solid var(--line2);
  border-radius:18px;padding:16px 18px;box-shadow:var(--shadow);width:244px;backdrop-filter:blur(8px);
  animation:zgfloaty 6s ease-in-out infinite}
@keyframes zgfloaty{50%{transform:translateY(-12px)}}
.zg-home .fc-head{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.zg-home .fc-head .ic{width:34px;height:34px;border-radius:10px;background:rgba(217,180,91,.11);border:1px solid var(--line);
  display:grid;place-items:center;color:var(--gold);flex-shrink:0}
.zg-home .fc-head .ic .icon{width:17px;height:17px}
.zg-home .fc-head b{font-size:13.5px;display:block;line-height:1.7}
.zg-home .fc-head span{font-size:11px;color:var(--faint);display:block}
.zg-home .fc-chart{height:64px;width:100%;display:block}
.zg-home .fc-big{font-size:26px;font-weight:900;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent;line-height:1.5}
.zg-home .fc-foot{font-size:11px;color:var(--faint)}
.zg-home .fc-1{top:110px;right:calc(50% - 680px)}
.zg-home .fc-2{top:380px;right:calc(50% - 690px);width:220px;animation-delay:1.2s}
.zg-home .fc-3{bottom:80px;left:calc(50% - 690px);width:264px;animation-delay:.6s}
.zg-home .fc-4{bottom:190px;left:calc(50% - 660px);animation-delay:1.8s}

/* ---------- نوار نرخ‌ها ---------- */
.zg-home .rates-strip{border-block:1px solid var(--line);background:var(--bg2);padding:26px 0}
.zg-home .rs-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.zg-home .rate-card{border:1px solid var(--line);border-radius:16px;background:var(--surface);padding:14px 16px;transition:.3s;position:relative;overflow:hidden;display:block}
.zg-home .rate-card:hover{transform:translateY(-4px);border-color:var(--line2);box-shadow:var(--shadow)}
.zg-home .rate-card .n{font-size:12px;color:var(--muted);font-weight:700;display:flex;align-items:center;gap:7px}
.zg-home .rate-card .n .icon{width:15px;height:15px;color:var(--gold)}
.zg-home .rate-card .v{font-size:16.5px;font-weight:900;margin-top:3px;display:block;color:var(--text)}
.zg-home .rate-card .v small{font-size:10px;color:var(--faint);font-weight:500}
.zg-home .rate-card .c{font-size:11px;font-weight:800;min-height:20px;display:block}
.zg-home .rate-card canvas{position:absolute;bottom:0;left:0;width:100%;height:26px;opacity:.5;pointer-events:none}

/* ---------- بخش‌ها ---------- */
.zg-home .sec-head{text-align:center;max-width:640px;margin:0 auto 42px}
.zg-home .sec-tag{display:inline-block;font-size:12px;font-weight:800;color:var(--gold2);letter-spacing:1px;
  border:1px solid var(--line2);padding:4px 16px;border-radius:99px;margin-bottom:14px;background:rgba(217,180,91,.06)}
.zg-home .sec-head h2{font-size:clamp(1.5rem,3vw,2.15rem);font-weight:900;line-height:1.65;margin-bottom:8px}
.zg-home .sec-head p{color:var(--muted);font-size:15px}
.zg-home .feat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.zg-home .feat{border:1px solid var(--line);border-radius:20px;background:var(--surface);padding:26px;transition:.3s;position:relative;overflow:hidden}
.zg-home .feat::before{content:'';position:absolute;top:0;right:0;left:0;height:2.5px;background:var(--grad);opacity:0;transition:.3s}
.zg-home .feat:hover{transform:translateY(-5px);border-color:var(--line2);box-shadow:var(--shadow)}
.zg-home .feat:hover::before{opacity:1}
.zg-home .feat .ic{width:50px;height:50px;border-radius:14px;background:rgba(217,180,91,.1);border:1px solid var(--line2);
  display:grid;place-items:center;color:var(--gold2);margin-bottom:16px}
.zg-home .feat h3{font-size:16px;font-weight:900;margin-bottom:6px}
.zg-home .feat p{color:var(--muted);font-size:13.5px}

.zg-home .steps{background:var(--bg2);border-block:1px solid var(--line)}
.zg-home .steps-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.zg-home .step{border:1px solid var(--line);border-radius:20px;background:var(--surface);padding:28px;position:relative;transition:.3s}
.zg-home .step:hover{border-color:var(--line2);box-shadow:var(--shadow)}
.zg-home .step .n{position:absolute;top:18px;left:22px;font-size:52px;font-weight:900;line-height:1;color:transparent;
  -webkit-text-stroke:1.2px rgba(217,180,91,.3)}
.zg-home .step .ic{width:48px;height:48px;border-radius:13px;background:rgba(217,180,91,.1);border:1px solid var(--line2);
  display:grid;place-items:center;color:var(--gold2);margin-bottom:14px}
.zg-home .step h3{font-size:16px;font-weight:900;margin-bottom:6px}
.zg-home .step p{color:var(--muted);font-size:13.5px}

.zg-home .stats-band{padding:52px 0}
.zg-home .stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.zg-home .stat{text-align:center;border:1px solid var(--line);border-radius:20px;background:var(--surface);padding:26px 14px;transition:.3s}
.zg-home .stat:hover{border-color:var(--line2);box-shadow:var(--shadow)}
.zg-home .stat .v{font-size:clamp(1.5rem,3vw,2.1rem);font-weight:900;background:var(--grad);
  -webkit-background-clip:text;background-clip:text;color:transparent;line-height:1.6}
.zg-home .stat span{font-size:12.5px;color:var(--faint)}

.zg-home .final-cta{position:relative;border-radius:26px;padding:50px 34px;text-align:center;overflow:hidden;
  background:linear-gradient(140deg,rgba(217,180,91,.15),var(--surface) 60%);border:1px solid var(--line2)}
.zg-home .final-cta::before{content:'';position:absolute;top:-80px;left:50%;transform:translateX(-50%);width:560px;height:200px;
  background:radial-gradient(closest-side,rgba(217,180,91,.3),transparent);filter:blur(8px)}
.zg-home .final-cta h3{font-size:clamp(1.3rem,2.6vw,1.8rem);font-weight:900;margin-bottom:10px;position:relative}
.zg-home .final-cta p{color:var(--muted);max-width:560px;margin:0 auto 24px;position:relative;font-size:14.5px}
.zg-home .final-cta .acts{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;position:relative}

/* ---------- توست (صفحه اصلی) ---------- */
#toasts{position:fixed;bottom:22px;right:50%;transform:translateX(50%);z-index:300;display:grid;gap:9px;width:min(400px,92vw)}
.toast{display:flex;gap:10px;align-items:flex-start;background:var(--surface3);border:1px solid var(--line2);
  border-radius:14px;padding:13px 16px;font-size:13.5px;box-shadow:var(--shadow);animation:zgtin2 .4s cubic-bezier(.2,1.2,.4,1)}
.toast .icon{width:18px;height:18px;margin-top:5px}
.toast.ok .icon{color:var(--green)}.toast.warn .icon{color:var(--red)}.toast.info .icon{color:var(--gold2)}
@keyframes zgtin2{from{transform:translateY(16px);opacity:0}}
.toast.out{animation:zgtout2 .3s forwards}
@keyframes zgtout2{to{transform:translateY(10px);opacity:0}}

/* ---------- ریسپانسیو ---------- */
@media(max-width:1400px){
  .zg-home .fc-1{right:14px}.zg-home .fc-2{right:8px}.zg-home .fc-3{left:8px}.zg-home .fc-4{left:14px}
}
@media(max-width:1180px){
  .zg-home .float-card{display:none}
  .zg-home .rs-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:640px){
  .zg-home .rs-grid{grid-template-columns:1fr 1fr}
  .zg-home .feat-grid,.zg-home .steps-grid{grid-template-columns:1fr}
  .zg-home .stats-grid{grid-template-columns:1fr 1fr}
  .zg-home .reg-box{flex-direction:column;align-items:stretch}
  .zg-home .reg-ic{display:none}
  .zg-home .reg-box input{text-align:center;direction:rtl}
  .zg-home .reg-box .btn{width:100%}
  .zg-home .reg-panel{padding:20px 16px 18px}
  .zg-home .hero{padding:36px 0 52px}
}
@media(prefers-reduced-motion:reduce){
  .zg-home *{animation:none!important;transition:none!important}
}
