/* =====================================================================
   Suvreno Website — صفحه‌های داخلی + اجزای مشترک (بنر اپ، تعرفه‌ها، دانلود)
   بعد از style.css لود می‌شود. تیره و روشن (data-theme).
   ===================================================================== */

/* ---------- بنرِ دانلودِ اپ ---------- */
.app-banner{
  position:relative; z-index:70; display:flex; align-items:center; justify-content:center; gap:12px;
  padding:9px 16px; min-height:44px; text-align:center; font-size:13.5px; line-height:1.6;
  color:var(--text);
  background:linear-gradient(90deg,rgba(20,184,166,.30),rgba(109,124,255,.24) 55%,rgba(255,200,87,.22));
  border-bottom:1px solid var(--line-2);
  transition:filter .2s ease;
}
.app-banner:hover{ filter:brightness(1.12); }
.app-banner-icon{ font-size:17px; }
.app-banner-text strong{ color:var(--accent-text); }
.app-banner-btn{
  flex-shrink:0; padding:4px 14px; border-radius:999px; font-size:12.5px; font-weight:800;
  background:var(--grad); color:var(--on-accent);
}

/* ---------- هدرِ صفحه‌های داخلی ---------- */
.page-header{
  position:sticky; top:0; z-index:60;
  background:var(--nav-bg);
  backdrop-filter:blur(20px) saturate(1.4); -webkit-backdrop-filter:blur(20px) saturate(1.4);
  border-bottom:1px solid var(--line);
}
.page-header-inner{
  width:min(1180px,calc(100% - 40px)); margin-inline:auto; min-height:var(--nav-h);
  display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; padding:6px 0;
}
.page-header-links{ display:flex; align-items:center; gap:4px; flex-wrap:wrap; }
.page-header-links a:not(.page-header-cta){
  padding:8px 14px; border-radius:999px; font-size:14px; font-weight:500; color:var(--text-soft);
  transition:color .2s ease,background .2s ease;
}
.page-header-links a:not(.page-header-cta):hover{ color:var(--text); background:var(--surface-3); }
.page-header-links .page-header-cta{ margin-inline-start:6px; }
.page-header-links .theme-toggle{ margin-inline-start:6px; }

/* ---------- صفحه‌ی متنی (قوانین/حریم خصوصی/تماس/بازگشت وجه) ---------- */
.page-main{ padding:56px 0 96px; min-height:60vh; }
.doc-narrow{ max-width:840px; margin-inline:auto; }
.page-title{
  margin:0 0 12px; font-size:clamp(30px,5vw,48px); line-height:1.5; font-weight:900;
  background:var(--grad-text); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.page-lead{ margin:0 0 30px; font-size:17px; color:var(--text-soft); }
.doc-card{
  padding:clamp(22px,4vw,40px); border-radius:var(--radius-lg);
  background:var(--surface); border:1px solid var(--line-2);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); box-shadow:var(--shadow-sm);
}
.doc-card h2{
  position:relative; margin:30px 0 10px; padding-inline-start:16px; font-size:20px; line-height:1.7;
}
.doc-card h2:first-child{ margin-top:0; }
.doc-card h2::before{
  content:""; position:absolute; inset-inline-start:0; top:.55em; width:5px; height:1.1em; border-radius:4px; background:var(--grad);
}
.doc-card p{ margin:0 0 14px; color:var(--text-soft); font-size:15.5px; }
.doc-card ul,.doc-card ol{ margin:0 0 16px; padding-inline-start:0; list-style:none; display:grid; gap:8px; }
.doc-card li{ position:relative; padding-inline-start:26px; color:var(--text-soft); font-size:15.5px; }
.doc-card ul li::before{
  content:""; position:absolute; inset-inline-start:4px; top:.8em; width:8px; height:8px; border-radius:50%; background:var(--turq); box-shadow:0 0 10px rgba(45,226,200,.6);
}
.doc-card strong{ color:var(--text); }
.doc-card a{ color:var(--accent-text); text-decoration:underline; text-underline-offset:3px; }
.doc-card a:hover{ color:var(--gold-text); }
.doc-updated{ margin-top:24px !important; padding-top:16px; border-top:1px solid var(--line); font-size:13px !important; color:var(--muted) !important; }
.contact-email{
  display:inline-block; direction:ltr; unicode-bidi:embed; padding:12px 22px; border-radius:16px;
  font-size:clamp(16px,3vw,22px); font-weight:800; text-decoration:none !important; color:var(--on-accent) !important;
  background:var(--grad); box-shadow:0 10px 30px rgba(45,226,200,.25);
}

/* ---------- تعرفه‌ها ---------- */
.pricing-section{ position:relative; }
.pricing-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; align-items:stretch; }
.pricing-card{
  position:relative; display:flex; flex-direction:column; padding:30px 24px 26px; border-radius:var(--radius-lg);
  background:var(--surface); border:1px solid var(--line-2);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease;
}
.pricing-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-sm),var(--glow); border-color:rgba(45,226,200,.45); }
.pricing-card-featured{
  border:1.5px solid transparent;
  background:linear-gradient(var(--card-solid),var(--card-solid)) padding-box,var(--grad) border-box;
  box-shadow:var(--shadow),0 0 50px rgba(45,226,200,.18);
}
.pricing-badge{
  position:absolute; top:-14px; inset-inline-start:50%; transform:translateX(50%);
  padding:4px 18px; border-radius:999px; font-size:12.5px; font-weight:800; white-space:nowrap;
  background:var(--grad); color:var(--on-accent); box-shadow:0 6px 20px rgba(45,226,200,.35);
}
html[dir="rtl"] .pricing-badge{ inset-inline-start:auto; right:50%; transform:translateX(50%); }
.pricing-card h3{ margin:0 0 4px; font-size:24px; font-weight:900; }
.pricing-desc{ margin:0 0 16px; font-size:13.5px; color:var(--muted); }
.pricing-price{ display:flex; align-items:baseline; gap:8px; }
.pricing-price strong{ font-size:clamp(34px,4.4vw,44px); line-height:1.3; font-weight:900; background:var(--grad-text); -webkit-background-clip:text; background-clip:text; color:transparent; }
.pricing-price span{ font-size:14px; color:var(--muted); }
.pricing-period{ margin:2px 0 18px; padding-bottom:18px; border-bottom:1px solid var(--line); font-size:13.5px; color:var(--accent-text); font-weight:600; }
.pricing-list{ list-style:none; margin:0 0 24px; padding:0; display:grid; gap:10px; flex:1; }
.pricing-list li{ position:relative; padding-inline-start:28px; font-size:14.5px; color:var(--text-soft); line-height:1.8; }
.pricing-list li::before{
  content:"✓"; position:absolute; inset-inline-start:0; top:2px; width:20px; height:20px; border-radius:50%;
  display:grid; place-items:center; font-size:11px; font-weight:900; color:var(--on-accent); background:var(--grad);
}
.pricing-card .primary-button,.pricing-card .secondary-button{ width:100%; margin-top:auto; }
.pricing-note{
  margin:28px auto 0; max-width:900px; padding:18px 22px; border-radius:var(--radius);
  font-size:13.5px; line-height:2; color:var(--muted); background:var(--surface-2); border:1px dashed var(--line-2);
}
.pricing-note a{ color:var(--accent-text); text-decoration:underline; text-underline-offset:3px; }

/* ---------- دانلودِ اپ اندروید ---------- */
.app-dl-card{
  position:relative; overflow:hidden; display:grid; grid-template-columns:1.15fr .85fr; gap:30px; align-items:center;
  padding:clamp(26px,5vw,56px); border-radius:var(--radius-lg); border:1px solid rgba(45,226,200,.35);
  background:linear-gradient(135deg,rgba(20,184,166,.18),rgba(109,124,255,.12) 60%,rgba(255,200,87,.10)),var(--surface);
  box-shadow:var(--shadow);
}
.app-dl-lead{ margin:0 0 18px; color:var(--text-soft); font-size:16.5px; }
.app-dl-features{ list-style:none; margin:0 0 24px; padding:0; display:grid; gap:10px; }
.app-dl-features li{ position:relative; padding-inline-start:28px; font-size:15px; color:var(--text-soft); }
.app-dl-features li::before{
  content:"✓"; position:absolute; inset-inline-start:0; top:3px; width:20px; height:20px; border-radius:50%;
  display:grid; place-items:center; font-size:11px; font-weight:900; color:var(--on-accent); background:var(--grad);
}
.app-dl-button{ padding:15px 30px; font-size:16px; }
.app-dl-meta{ margin:12px 0 0; font-size:13px; color:var(--muted); }
.app-dl-steps{ margin:22px 0 0; padding:0; list-style:none; counter-reset:dl; display:grid; gap:8px; }
.app-dl-steps li{ counter-increment:dl; position:relative; padding-inline-start:36px; font-size:14px; color:var(--muted); }
.app-dl-steps li::before{
  content:counter(dl); position:absolute; inset-inline-start:0; top:1px; width:24px; height:24px; border-radius:50%;
  display:grid; place-items:center; font-size:12px; font-weight:800; color:var(--accent-text); border:1px solid rgba(45,226,200,.45); background:rgba(45,226,200,.10);
}
.app-dl-visual{ position:relative; display:grid; place-items:center; min-height:300px; }
.app-dl-glow{ position:absolute; width:78%; aspect-ratio:1; border-radius:50%; background:radial-gradient(circle,rgba(45,226,200,.40),transparent 68%); filter:blur(20px); }
.app-dl-phone{
  position:relative; width:min(220px,70%); padding:26px 18px 22px; text-align:center; border-radius:38px;
  background:var(--card-solid); border:2px solid var(--line-2);
  box-shadow:var(--shadow),0 0 0 6px rgba(255,255,255,.03),0 0 60px rgba(45,226,200,.22);
  animation:floatY 6s ease-in-out infinite;
}
.app-dl-phone::before{ content:""; display:block; width:54px; height:6px; margin:-10px auto 16px; border-radius:6px; background:var(--line-2); }
.app-dl-phone img{ width:78%; height:auto; border-radius:26%; display:block; margin:0 auto 12px; }
.app-dl-phone strong{ display:block; font-size:19px; line-height:1.5; }
.app-dl-phone span{ font-size:12.5px; color:var(--muted); }
.app-hero-button{ }

@media (max-width:1000px){
  .pricing-grid{ grid-template-columns:1fr; max-width:520px; margin-inline:auto; gap:26px; }
  .app-dl-card{ grid-template-columns:1fr; }
  .app-dl-visual{ order:-1; min-height:240px; }
}
@media (max-width:700px){
  .app-banner-long{ display:none; }
  .app-banner{ font-size:12.5px; padding:8px 12px; gap:8px; }
  .page-main{ padding:36px 0 72px; }
  .page-header-inner{ width:calc(100% - 24px); gap:6px; justify-content:center; }
  /* قبلاً این ردیف overflow-x:auto و nowrap بود و دکمه‌ها بیرونِ صفحه می‌افتادند و با لمس به چپ/راست می‌پریدند؛ حالا می‌شکند و کامل دیده می‌شود */
  .page-header-links{ width:100%; order:3; flex-wrap:wrap; justify-content:center; gap:2px; overflow:visible; padding-bottom:6px; }
  .page-header-links a:not(.page-header-cta){ padding:6px 10px; font-size:13px; }
  .page-header-links .page-header-cta,.page-header-links .theme-toggle{ margin-inline-start:0; }
  .page-header-links .page-header-cta{ padding:7px 14px; font-size:13px; }
  .page-header-links a{ white-space:nowrap; }
}


/* ---------- راهنمای نصب / Play Protect (دور ۵۴) ---------- */
.pp-box{ margin:22px 0 0; padding:16px 18px; border-radius:18px; background:rgba(251,191,36,.08); border:1px solid rgba(251,191,36,.35); font-size:14px; line-height:1.95; color:var(--text-soft); }
.pp-box b,.pp-box strong{ color:var(--text); }
.pp-box a{ color:var(--accent-text); font-weight:800; text-decoration:underline; text-underline-offset:3px; }
.pp-box p{ margin:0 0 8px; }
.pp-box p:last-child{ margin-bottom:0; }
.doc-card ol.steps{ counter-reset:st; }
.doc-card ol.steps>li{ counter-increment:st; padding-inline-start:44px; }
.doc-card ol.steps>li::before{
  content:counter(st,persian); position:absolute; inset-inline-start:0; top:2px; width:30px; height:30px; border-radius:50%;
  display:grid; place-items:center; font-weight:900; font-size:14px; color:var(--on-accent); background:var(--grad);
}
.doc-card details{ border-top:1px solid var(--line); padding:12px 0; }
.doc-card details:first-of-type{ border-top:0; }
.doc-card summary{ cursor:pointer; font-weight:800; list-style:none; display:flex; justify-content:space-between; gap:10px; }
.doc-card summary::-webkit-details-marker{ display:none; }
.doc-card summary::after{ content:"+"; color:var(--accent-text); font-weight:900; }
.doc-card details[open] summary::after{ content:"−"; }
.doc-card details p{ margin:8px 0 0; }
.ltr-text{ direction:ltr; unicode-bidi:embed; display:inline-block; }
