/* Yekan (Persian) — CDN (npm via jsDelivr) */
@import url("https://cdn.jsdelivr.net/npm/yekan-font@1.0.0/css/yekan-font.css");

:root{
  --bg:#0d0d12;
  --card:#11121a;
  --card-2:#0f1017;
  --text:#e9e9ef;
  --muted:#b7b7c5;
  --primary:#188b58;
  --primary-2:#1fb874;
  --border:rgba(255,255,255,.08);
  --shadow: 0 18px 55px rgba(0,0,0,.55);
  --radius: 18px;
}

*{box-sizing:border-box}
html{
  direction:ltr;
}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  line-height:1.7;
}

.bg{
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(900px 450px at 15% 15%, rgba(24,139,88,.22), transparent 60%),
    radial-gradient(900px 500px at 85% 20%, rgba(31,184,116,.14), transparent 55%),
    radial-gradient(700px 420px at 40% 85%, rgba(24,139,88,.10), transparent 55%);
  filter:saturate(1.1);
}

.header{
  direction:ltr;
  position:sticky;
  top:0;
  z-index:5;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(13,13,18,.88), rgba(13,13,18,.55));
  border-bottom:1px solid var(--border);
}

.header__inner{
  max-width:1040px;
  margin:0 auto;
  padding:14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.header__controls{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex:1;
  min-width:0;
}

.doc{
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px;
  background: rgba(255,255,255,.04);
  border:1px solid var(--border);
  border-radius:999px;
}
.doc__tab{
  appearance:none;
  border:1px solid transparent;
  background:transparent;
  color:var(--muted);
  padding:10px 14px;
  border-radius:999px;
  font-weight:700;
  letter-spacing:.2px;
  cursor:pointer;
  touch-action:manipulation;
  transition: background .15s ease, color .15s ease, transform .15s ease;
  outline: none;
}
.doc__tab:hover{color:var(--text)}
.doc__tab:active{transform: translateY(1px)}
.doc__tab:focus-visible{
  box-shadow: 0 0 0 3px rgba(24,139,88,.35);
}
.doc__tab.is-active{
  background: linear-gradient(180deg, rgba(24,139,88,.30), rgba(24,139,88,.18));
  color: var(--text);
  border: 1px solid rgba(24,139,88,.38);
}

.brand{display:flex; align-items:center; text-decoration:none}
.brand__logo{
  height:40px;
  width:auto;
  display:block;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,.55));
}

.lang{
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px;
  background: rgba(255,255,255,.04);
  border:1px solid var(--border);
  border-radius:999px;
}
.lang__tab{
  appearance:none;
  border:1px solid transparent;
  background:transparent;
  color:var(--muted);
  padding:10px 14px;
  border-radius:999px;
  font-weight:700;
  letter-spacing:.2px;
  cursor:pointer;
  touch-action:manipulation;
  transition: background .15s ease, color .15s ease, transform .15s ease;
  outline: none;
}
.lang__tab:hover{color:var(--text)}
.lang__tab:active{transform: translateY(1px)}
.lang__tab:focus-visible{
  box-shadow: 0 0 0 3px rgba(24,139,88,.35);
}
.lang__tab.is-active{
  background: linear-gradient(180deg, rgba(24,139,88,.30), rgba(24,139,88,.18));
  color: var(--text);
  border: 1px solid rgba(24,139,88,.38);
}

.main{
  max-width:1040px;
  margin:0 auto;
  padding:28px 18px 42px;
}

.card{
  background: linear-gradient(180deg, rgba(17,18,26,.92), rgba(15,16,23,.92));
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.card__head{
  direction:ltr;
  padding:22px 22px 14px;
  border-bottom:1px solid var(--border);
  background:
    radial-gradient(900px 180px at 10% 0%, rgba(24,139,88,.22), transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,.03), transparent);
}

.card__head--privacy,
.card__head--refund{
  display:none;
}
html[data-doc="terms"] .card__head--terms{
  display:block;
}
html[data-doc="terms"] .card__head--privacy,
html[data-doc="terms"] .card__head--refund{
  display:none;
}
html[data-doc="privacy"] .card__head--privacy{
  display:block;
}
html[data-doc="privacy"] .card__head--terms,
html[data-doc="privacy"] .card__head--refund{
  display:none;
}
html[data-doc="refund"] .card__head--refund{
  display:block;
}
html[data-doc="refund"] .card__head--terms,
html[data-doc="refund"] .card__head--privacy{
  display:none;
}

.title{
  margin:0;
  font-size:28px;
  line-height:1.2;
  letter-spacing:-.2px;
}
.subtitle{
  margin:10px 0 0;
  color:var(--muted);
}
.subtitle--meta{
  margin-top:8px;
  font-size:14px;
}
.subtitle--meta a{
  color:var(--primary-2);
  font-weight:700;
  text-decoration:none;
}
.subtitle--meta a:hover{
  text-decoration:underline;
}

.panel{
  display:none;
  padding:18px 22px 22px;
}
.panel.is-active{display:block}

/* Persian panels only: RTL + Yekan (navbar stays default Latin UI font) */
.panel[lang="fa"]{
  direction:rtl;
  font-family: "yekan","Yekan","IRANYekan","YekanBakh","Vazirmatn", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-variant-numeric: proportional-nums;
}

.toc{
  margin:0 0 18px;
  padding: 14px 18px;
  border:1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  columns: 2;
  column-gap: 18px;
}
.toc li{break-inside:avoid; margin:6px 0}
.toc a{
  color: var(--text);
  text-decoration:none;
  opacity:.9;
  border-bottom:1px dashed rgba(24,139,88,.35);
}
.toc a:hover{opacity:1; border-bottom-color: rgba(24,139,88,.75)}

.sec{padding:10px 0 2px}
.sec h2{
  margin:16px 0 10px;
  font-size:18px;
  letter-spacing:.1px;
}
.sec h3{
  margin:14px 0 8px;
  font-size:15px;
  color: var(--text);
  opacity:.95;
}
.sec p{margin:0 0 10px; color: rgba(233,233,239,.96)}
.sec ul{
  margin:8px 0 10px;
  padding-inline-start: 20px;
}
.sec li{margin:6px 0; color: rgba(233,233,239,.94)}
.sec strong{color: var(--text)}

.contact{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius: 14px;
  background: rgba(24,139,88,.10);
  border: 1px solid rgba(24,139,88,.22);
  width: fit-content;
}
.contact a{
  color: var(--primary-2);
  text-decoration:none;
  font-weight:800;
}
.contact a:hover{ text-decoration:underline }

.checkout-title{
  margin:0 0 8px;
  font-size:22px;
}
.checkout-summary{
  padding:14px 16px;
  margin-bottom:18px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  color:var(--muted);
  font-size:14px;
}
.checkout-fieldset{
  border:0;
  margin:0 0 18px;
  padding:0;
}
.checkout-legend{
  font-weight:800;
  margin-bottom:12px;
  font-size:15px;
}
.checkout-consent{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:14px 16px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(24,139,88,.08);
  cursor:pointer;
}
.checkout-consent input{
  margin-top:5px;
  flex-shrink:0;
  width:18px;
  height:18px;
  accent-color:var(--primary);
}
.checkout-consent__text{
  color:rgba(233,233,239,.95);
  font-size:14px;
  line-height:1.55;
}
.checkout-consent__text a{
  color:var(--primary-2);
  font-weight:700;
}
.checkout-submit{
  width:100%;
  margin-top:16px;
  padding:14px 18px;
  border:0;
  border-radius:12px;
  font-weight:800;
  font-size:16px;
  cursor:pointer;
  color:#fff;
  background:linear-gradient(180deg, var(--primary-2), var(--primary));
}
.checkout-submit:disabled{
  opacity:.42;
  cursor:not-allowed;
}
.checkout-note{
  margin-top:12px;
  font-size:13px;
  color:var(--muted);
}
.footer{
  direction:ltr;
  padding:18px 6px 0;
}
.footer__text{
  margin:0;
  color: rgba(183,183,197,.85);
  text-align:center;
  font-size:13px;
}

@media (max-width: 760px){
  .header__inner{
    flex-wrap:wrap;
    align-items:flex-start;
  }
  .header__controls{
    width:100%;
    justify-content:space-between;
    gap:8px;
  }
  .doc,.lang{
    flex:1;
    min-width:0;
    justify-content:center;
  }
  .doc__tab,.lang__tab{
    flex:1;
    text-align:center;
    padding-left:10px;
    padding-right:10px;
  }
  .brand__logo{height:36px}
  .title{font-size:24px}
  .panel{padding:16px}
  .card__head{padding:18px 16px 12px}
  .toc{columns:1}
  .contact{width:100%}
}

