/* bulutera.cloud — light sky theme: cobalt brand, sunrise-coral accent, Manrope headings.
   Uses logical properties (inline-start/end) so Persian and Arabic (dir=rtl) need no overrides. */

:root {
  --brand: #2F5BEA;
  --brand-2: #1E3FB8;
  --brand-soft: #E8EEFE;
  --sun: #FF7A45;
  --sun-soft: #FFF0E8;
  --mint: #0E9F6E;
  --ink: #0E1A33;
  --ink-2: #33415E;
  --muted: #64718D;
  --line: #E1E7F1;
  --line-2: #CFD8E6;
  --bg: #F6F8FC;
  --card: #FFFFFF;
  --sky-1: #EAF1FF;
  --sky-2: #F8FAFF;
  --night: #0B1530;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(14, 26, 51, .05), 0 8px 24px -12px rgba(14, 26, 51, .14);
  --shadow-lg: 0 2px 4px rgba(14, 26, 51, .04), 0 24px 48px -20px rgba(30, 63, 184, .28);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-h: 'Manrope', 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
.lang-fa { --font: 'Vazirmatn', system-ui, sans-serif; --font-h: 'Vazirmatn', system-ui, sans-serif; }
.lang-ar { --font: 'IBM Plex Sans Arabic', system-ui, sans-serif; --font-h: 'IBM Plex Sans Arabic', 'Manrope', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.lang-fa body, .lang-ar body { line-height: 1.85; }
img, svg { max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-h); color: var(--ink); letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 .5em; }
.lang-fa h1, .lang-fa h2, .lang-fa h3, .lang-ar h1, .lang-ar h2, .lang-ar h3 { letter-spacing: 0; line-height: 1.45; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 800; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .88em; background: var(--brand-soft); color: var(--brand-2); padding: .1em .4em; border-radius: 6px; unicode-bidi: isolate; }
strong { font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid rgba(47, 91, 234, .45); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 20px; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 600 .95rem/1 var(--font); color: #fff; background: var(--brand); border: 1px solid var(--brand); padding: .85em 1.3em; border-radius: 999px; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; white-space: nowrap; box-shadow: 0 6px 16px -8px rgba(47, 91, 234, .7); }
.btn:hover { background: var(--brand-2); border-color: var(--brand-2); text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); box-shadow: none; }
.btn-ghost:hover { background: var(--sky-2); border-color: var(--brand); color: var(--brand-2); }
.btn-light { background: #fff; color: var(--brand-2); border-color: #fff; box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .35); }
.btn-light:hover { background: var(--sun-soft); border-color: var(--sun-soft); color: var(--ink); }
.btn-sm { padding: .6em 1em; font-size: .88rem; }
.btn-lg { padding: 1em 1.6em; font-size: 1rem; }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(207, 216, 230, .6); }
.bar { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 800 1.28rem/1 var(--font-h); letter-spacing: -0.03em; }
.logo:hover { text-decoration: none; }
.logo .mark { width: 32px; height: 32px; flex: none; }
.logo .word { font-family: 'Manrope', 'Inter', sans-serif; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav-link, .dd > summary { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: .95rem; cursor: pointer; list-style: none; }
.nav-link:hover, .dd > summary:hover, .dd[open] > summary { background: var(--sky-1); color: var(--ink); text-decoration: none; }
.nav-link[aria-current="page"] { color: var(--brand); }
.dd > summary::-webkit-details-marker { display: none; }
.dd > summary::after { content: ''; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: translateY(-2px) rotate(45deg); opacity: .6; }
.dd.lang > summary .ico { width: 18px; height: 18px; }
.dd { position: relative; }
.dd-panel { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; min-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px; display: grid; gap: 2px; }
.dd-panel.small { min-width: 160px; inset-inline-start: auto; inset-inline-end: 0; }
details.dd:not([open]) > .dd-panel { display: none; }
.dd-panel a { display: grid; gap: 1px; padding: 9px 12px; border-radius: 10px; color: var(--ink); }
.dd-panel a strong { font-weight: 600; font-size: .95rem; }
.dd-panel a span { font-size: .82rem; color: var(--muted); }
.dd-panel a:hover, .dd-panel a[aria-current] { background: var(--sky-1); text-decoration: none; }
.dd-panel a[aria-current] strong { color: var(--brand); }
.nav-sep { width: 1px; height: 22px; background: var(--line-2); margin-inline: 6px; }
.nav .btn { margin-inline-start: 6px; }
.nav-btn { display: none; margin-inline-start: auto; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.nav-btn span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.top.open .nav-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.top.open .nav-btn span:nth-child(2) { opacity: 0; }
.top.open .nav-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-btn { display: flex; }
  .nav { display: none; position: absolute; top: 100%; inset-inline: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); flex-direction: column; align-items: stretch; padding: 10px 16px 18px; gap: 2px; max-height: calc(100vh - 68px); overflow-y: auto; }
  .top.open .nav { display: flex; }
  .dd-panel, .dd-panel.small { position: static; box-shadow: none; border: 0; min-width: 0; padding: 0 0 6px; background: transparent; }
  .dd-panel a { padding-inline-start: 22px; }
  .nav-sep { width: auto; height: 1px; margin: 8px 0; }
  .nav .btn { margin: 8px 0 0; }
  .nav-link, .dd > summary { padding: 11px 10px; }
  .dd > summary { justify-content: space-between; }
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 70%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.hero .wrap { position: relative; z-index: 1; }
.sky .cl { position: absolute; border-radius: 999px; background: #fff; opacity: .75; filter: blur(.5px); }
.sky .cl::before, .sky .cl::after { content: ''; position: absolute; background: #fff; border-radius: 50%; }
.sky .c1 { width: 220px; height: 54px; top: 46px; inset-inline-end: 8%; }
.sky .c1::before { width: 96px; height: 96px; top: -48px; inset-inline-start: 34px; }
.sky .c1::after { width: 70px; height: 70px; top: -30px; inset-inline-start: 110px; }
.sky .c2 { width: 160px; height: 40px; bottom: 54px; inset-inline-start: 4%; opacity: .6; }
.sky .c2::before { width: 70px; height: 70px; top: -36px; inset-inline-start: 26px; }
.sky .c2::after { width: 52px; height: 52px; top: -22px; inset-inline-start: 82px; }
.sky .c3 { width: 120px; height: 30px; top: 58%; inset-inline-start: 46%; opacity: .5; }
.sky .c3::before { width: 54px; height: 54px; top: -28px; inset-inline-start: 20px; }
.hero.inner { padding: 44px 0 52px; }
.hero.inner h1 { max-width: 820px; font-size: clamp(1.9rem, 4vw, 2.9rem); }
.hero .lead { font-size: 1.12rem; color: var(--ink-2); max-width: 720px; }
.kicker { display: inline-block; font: 700 .78rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--sun); margin-bottom: 12px; }
.lang-fa .kicker, .lang-ar .kicker { letter-spacing: 0; font-size: .88rem; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink-2); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 6px 0 0; }
.chips li { background: #fff; border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; font-size: .86rem; font-weight: 500; color: var(--ink-2); }
.chips li::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); margin-inline-end: 8px; vertical-align: middle; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }

.hero.home { padding: 56px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero.home h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); }
.pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); padding: 6px 14px 6px 10px; border-radius: 999px; font-weight: 600; font-size: .88rem; color: var(--ink-2); box-shadow: var(--shadow); }
.pill .ico { width: 18px; height: 18px; color: var(--sun); }
.from { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .95rem; }
.from li { display: inline-flex; align-items: center; gap: 8px; }
.from strong { color: var(--ink); margin-inline-start: 4px; }
.hero-visual { position: relative; }
.map { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(30, 63, 184, .18)); }
.map .mapbg { fill: #fff; stroke: var(--line); }
.map .mapdot { fill: #C9D6F2; }
.map .route { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 6 8; animation: dash 18s linear infinite; }
.map .route.thin { stroke: #9FB3EA; stroke-width: 1.6; }
@keyframes dash { to { stroke-dashoffset: -400; } }
.map .pin .halo { fill: rgba(47, 91, 234, .14); animation: pulse 2.6s ease-out infinite; transform-origin: center; transform-box: fill-box; }
.map .pin.ist .halo { fill: rgba(255, 122, 69, .18); }
.map .pin .dot { fill: var(--brand); stroke: #fff; stroke-width: 3; }
.map .pin.ist .dot { fill: var(--sun); }
.map .pin text { font: 800 15px var(--font-h); fill: var(--ink); }
.map .city circle { fill: var(--ink-2); }
.map .city text { font: 500 12px var(--font); fill: var(--muted); }
.map .chip rect { fill: var(--ink); }
.map .chip text { font: 700 12px var(--mono); fill: #fff; }
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .map .route, .map .pin .halo { animation: none; } }
.float { position: absolute; display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-weight: 600; font-size: .88rem; box-shadow: var(--shadow-lg); }
.float .ico { width: 20px; height: 20px; color: var(--mint); }
.float.f1 { bottom: 26px; inset-inline-start: -18px; }
.float.f2 { top: 22px; inset-inline-end: -10px; }
.float.f2 .ico { color: var(--sun); }
.trust { margin-top: 44px; border-top: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0; padding: 18px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-2); font-size: .95rem; }
.trust .ico { width: 20px; height: 20px; color: var(--brand); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .float.f1 { inset-inline-start: 6px; }
  .float.f2 { inset-inline-end: 6px; }
  .trust ul { justify-content: flex-start; }
}

/* ---------------------------------------------------------------- content */
.content { padding: 56px 20px 72px; }
.block { margin: 0 0 64px; }
.block:last-child { margin-bottom: 0; }
.block-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.block-head h2 { margin-bottom: .25em; }
.block-head .sub, .sub { color: var(--muted); margin: 0; max-width: 760px; }
.note { color: var(--muted); font-size: .9rem; margin-top: 14px; }
.more { margin: 18px 0 0; font-weight: 600; }
.more.center { text-align: center; }
.intro { color: var(--ink-2); }
.ico { width: 22px; height: 22px; flex: none; }

.flag { display: inline-block; width: 22px; height: 15px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(14, 26, 51, .08); vertical-align: middle; }
.flag.big { width: 40px; height: 28px; border-radius: 6px; }
.flag-turkey { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Crect width='30' height='20' fill='%23E30A17'/%3E%3Ccircle cx='11' cy='10' r='5' fill='%23fff'/%3E%3Ccircle cx='12.3' cy='10' r='4' fill='%23E30A17'/%3E%3Cpath d='M17.2 10l3.9-1.3-2.4 3.3V8l2.4 3.3z' fill='%23fff'/%3E%3C/svg%3E") center/cover; }
.flag-germany { background: linear-gradient(#000 0 33.3%, #DD0000 33.3% 66.6%, #FFCE00 66.6%); }
.block-head .flag { margin-top: 10px; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cards.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards.cols-3 { grid-template-columns: 1fr; } }
.card { position: relative; display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--ink); box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s, border-color .18s; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
.card .ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); margin-bottom: 14px; }
.card:nth-child(3n+2) .ic { background: var(--sun-soft); color: #E4572A; }
.card:nth-child(3n+3) .ic { background: #E4F6EF; color: var(--mint); }
.card.link { padding-bottom: 44px; }
.card.link:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #BFCDF4; }
.card .go, .loccard .go, .related .go { position: absolute; inset-inline-end: 20px; bottom: 16px; color: var(--brand); font-weight: 700; transition: transform .18s; }
.card.link:hover .go { transform: translateX(4px); }
[dir="rtl"] .card.link:hover .go { transform: translateX(-4px); }

/* locations */
.locs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 800px) { .locs { grid-template-columns: 1fr; } }
.loccard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; color: var(--ink); box-shadow: var(--shadow); overflow: hidden; transition: transform .18s, box-shadow .18s; }
.loccard::after { content: ''; position: absolute; inset-inline-end: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 122, 69, .16), transparent 70%); }
.loccard.loc-germany::after { background: radial-gradient(circle, rgba(47, 91, 234, .16), transparent 70%); }
.loccard:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.loc-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.loc-top h3 { font-size: 1.3rem; margin: 0; }
.loc-sub { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.loc-foot { margin: auto 0 0; padding-top: 16px; border-top: 1px dashed var(--line-2); display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
.loc-foot strong { color: var(--ink); font-size: 1.25rem; font-family: var(--font-h); }
.loccard .go { position: static; font-size: 1.2rem; }

/* tick list */
.ticks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 9px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .ico { width: 20px; height: 20px; color: var(--mint); margin-top: 3px; background: #E4F6EF; border-radius: 50%; padding: 3px; }
.prose .ticks li span { color: var(--ink-2); }

/* plan cards */
.pcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1050px) { .pcards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pcards { grid-template-columns: 1fr; } }
.pcard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.pcard.hot { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); }
.badge { position: absolute; top: -12px; inset-inline-start: 20px; background: var(--sun); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.ploc { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .85rem; margin-bottom: 8px; }
.pcard h3 { font-size: 1.15rem; margin-bottom: 6px; }
.pprice { font: 800 2rem/1.1 var(--font-h); margin: 0 0 16px; color: var(--ink); }
.pprice small { font: 500 .9rem var(--font); color: var(--muted); margin-inline-start: 2px; }
.pspec { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 9px; font-size: .92rem; color: var(--ink-2); }
.pspec li { display: flex; align-items: center; gap: 10px; }
.pspec .ico { width: 18px; height: 18px; color: var(--brand); }
.pcard .btn { margin-top: auto; width: 100%; }

/* stats */
.stats { list-style: none; margin: 0; padding: 30px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; background: var(--night); background-image: radial-gradient(600px 200px at 0% 0%, rgba(47, 91, 234, .45), transparent), radial-gradient(500px 200px at 100% 100%, rgba(255, 122, 69, .3), transparent); border-radius: 24px; color: #fff; }
.stats li { display: grid; gap: 4px; }
.stats strong { font: 800 clamp(1.6rem, 3vw, 2.3rem)/1.1 var(--font-h); color: #fff; }
.stats span { color: #B8C4E0; font-size: .92rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* specs */
.specs { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.specs > div { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.specs > div:nth-child(odd) { border-inline-end: 1px solid var(--line); }
.specs > div:nth-last-child(-n+2):nth-child(odd), .specs > div:last-child { border-bottom: 0; }
.specs dt { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.lang-fa .specs dt, .lang-ar .specs dt { text-transform: none; letter-spacing: 0; font-size: .88rem; }
.specs dd { margin: 0; color: var(--ink); }
@media (max-width: 700px) {
  .specs { grid-template-columns: 1fr; }
  .specs > div:nth-child(odd) { border-inline-end: 0; }
  .specs > div:nth-last-child(-n+2):nth-child(odd) { border-bottom: 1px solid var(--line); }
}

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; box-shadow: var(--shadow); }
.steps .n { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #5B7CFF); color: #fff; font: 800 .95rem var(--font-h); }
.steps li div { padding-top: 5px; color: var(--ink-2); }

/* tables */
.table-wrap { position: relative; overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 13px 16px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child > * { border-bottom: 0; }
thead th { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--sky-2); }
.lang-fa thead th, .lang-ar thead th { text-transform: none; letter-spacing: 0; font-size: .86rem; }
tr.group th { background: var(--brand-soft); color: var(--brand-2); font-size: .85rem; font-weight: 700; text-transform: none; letter-spacing: 0; }
.plans tbody tr:not(.group):hover { background: #FAFBFF; }
.plans .pname { font-weight: 700; font-family: var(--font-h); }
.num { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plans th.num, .plans td.num { text-align: center; }
.plans .price { text-align: end !important; font-weight: 800; font-family: var(--font-h); font-size: 1.05rem; }
.plans .price small { font: 500 .8rem var(--font); color: var(--muted); margin-inline-start: 2px; }
.plans .act { text-align: end; width: 1%; }
.compare th[scope="row"] { font-weight: 600; color: var(--ink); width: 28%; }
.compare td { color: var(--ink-2); }
@media (max-width: 700px) { .hide-sm { display: none; } th, td { padding: 11px 10px; } }

.endpoints .method { font: 700 .78rem var(--mono); width: 70px; }
.m-get { color: var(--mint); } .m-post { color: var(--brand); } .m-patch { color: #B7791F; } .m-delete { color: #D64545; }
.endpoints .path { font-family: var(--mono); font-size: .86rem; white-space: nowrap; color: var(--ink); }
.endpoints + h3, .block > h3 { margin-top: 26px; }

/* faq */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 18px; padding-inline: 18px 52px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; inset-inline-end: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; transition: transform .2s; }
.faq details[open] summary::after { content: '−'; }
.faq details:not([open]) > .ans { display: none; }
.faq .ans { padding: 0 18px 18px; color: var(--ink-2); }

/* code */
.code { background: var(--night); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); direction: ltr; }
.code-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: rgba(255, 255, 255, .05); }
.code-bar i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.code-bar i:nth-child(2) { background: #FEBC2E; } .code-bar i:nth-child(3) { background: #28C840; }
.code-bar .copy { margin-left: auto; }
.code pre { margin: 0; padding: 18px 20px 22px; overflow-x: auto; }
.code pre code { background: none; color: #DCE6FF; padding: 0; font-size: .86rem; line-height: 1.7; }
.copy { font: 600 .78rem var(--font); color: #DCE6FF; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px; padding: 5px 10px; cursor: pointer; }
.copy:hover { background: rgba(255, 255, 255, .18); }

/* notice */
.notice { display: flex; gap: 14px; align-items: flex-start; background: var(--brand-soft); border: 1px solid #CCD8FB; border-radius: var(--radius); padding: 18px 20px; }
.notice > .ico { color: var(--brand); margin-top: 2px; }
.notice.warn { background: var(--sun-soft); border-color: #FFD6C2; }
.notice.warn > .ico { color: #E4572A; }
.notice strong { display: block; margin-bottom: 2px; }
.notice p { margin: 0; color: var(--ink-2); }
.notice + .notice { margin-top: -48px; }

/* prose */
.prose p { color: var(--ink-2); max-width: 820px; }

/* latency */
.latency { list-style: none; padding: 20px 22px; margin: 0; display: grid; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.latency li { display: grid; grid-template-columns: 110px 1fr 70px; gap: 14px; align-items: center; }
.latency .city { font-weight: 600; }
.lt-bar { height: 10px; background: var(--sky-1); border-radius: 999px; overflow: hidden; }
.lt-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--sun)); }
[dir="rtl"] .lt-bar span { background: linear-gradient(270deg, var(--brand), var(--sun)); }
.latency .ms { text-align: end; font: 700 .9rem var(--mono); color: var(--ink-2); white-space: nowrap; }

/* speedtest */
.st-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
@media (max-width: 800px) { .st-grid { grid-template-columns: 1fr; } }
.st-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 20px 14px; box-shadow: var(--shadow); }
.st-title { display: flex; align-items: center; gap: 10px; font: 700 1.05rem var(--font-h); margin: 12px 0 6px; }
.st-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.st-row:last-child { border-bottom: 0; }
.st-row .label { color: var(--muted); font-size: .92rem; }
.copyable { display: inline-flex; align-items: center; gap: 8px; }
.copyable code { font-size: .92rem; }
.copyable .copy { color: var(--brand-2); background: var(--brand-soft); border-color: #CCD8FB; }
.files { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.files a { font: 600 .85rem var(--mono); background: var(--sky-1); border: 1px solid #CCD8FB; padding: 5px 10px; border-radius: 8px; }
.st-note { color: var(--muted); font-size: .88rem; margin: 10px 0 0; }

/* cta */
.cta { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 38px 40px; border-radius: 26px; color: #fff; background: linear-gradient(120deg, var(--brand-2), var(--brand) 55%, #5B7CFF); box-shadow: var(--shadow-lg); }
.cta::before { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; inset-inline-end: 140px; top: -150px; background: radial-gradient(circle, rgba(255, 122, 69, .55), transparent 65%); }
.cta > * { position: relative; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; color: #DCE6FF; max-width: 620px; }
.cta p a { color: #fff; text-decoration: underline; }
@media (max-width: 720px) { .cta { flex-direction: column; align-items: flex-start; padding: 28px 24px; } }

/* related */
.related { margin-top: 72px; padding-top: 36px; border-top: 1px solid var(--line); }
.related h2 { font-size: 1.2rem; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.related a { position: relative; display: grid; gap: 2px; padding: 16px 44px 16px 18px; padding-inline: 18px 44px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); }
.related a span:not(.go) { color: var(--muted); font-size: .88rem; }
.related a:hover { text-decoration: none; border-color: #BFCDF4; box-shadow: var(--shadow); }
.related .go { bottom: auto; top: 50%; transform: translateY(-50%); }

/* legal */
.with-side { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.with-side .related { grid-column: 1 / -1; }
.side { position: sticky; top: 92px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.side-h { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 4px 8px 8px; }
.side ul { list-style: none; padding: 0; margin: 0; }
.side a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); }
.side a[aria-current] { background: var(--brand-soft); color: var(--brand-2); font-weight: 600; }
.legal-body .block { margin-bottom: 30px; }
.legal-body h2 { font-size: 1.25rem; }
.updated { color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) { .with-side { grid-template-columns: 1fr; gap: 24px; } .side { position: static; } }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--night); color: #AEB9D6; padding: 56px 0 24px; font-size: .92rem; }
.foot .logo { color: #fff; }
.fgrid { display: grid; grid-template-columns: 1.6fr repeat(5, 1fr); gap: 28px; }
.foot h2 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin: 6px 0 14px; }
.lang-fa .foot h2, .lang-ar .foot h2 { text-transform: none; letter-spacing: 0; font-size: .95rem; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: #AEB9D6; }
.foot a:hover { color: #fff; }
.foot .about p { margin: 14px 0 0; max-width: 300px; }
.foot .links { display: flex; flex-wrap: wrap; gap: 14px; }
.foot .links a { color: #fff; font-weight: 600; }
.pay { display: flex; flex-wrap: wrap; gap: 6px; }
.pay span { font-size: .75rem; font-weight: 600; color: #DCE6FF; border: 1px solid rgba(255, 255, 255, .15); padding: 3px 8px; border-radius: 6px; direction: ltr; }
.foot .legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); }
.foot .langs { display: flex; flex-wrap: wrap; gap: 14px; }
.foot .langs a[aria-current] { color: #fff; font-weight: 600; }
@media (max-width: 1000px) { .fgrid { grid-template-columns: repeat(3, 1fr); } .foot .about { grid-column: 1 / -1; } }
@media (max-width: 560px) { .fgrid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .content { padding: 40px 16px 56px; }
  .wrap { padding-inline: 16px; }
  .block { margin-bottom: 48px; }
  .hero.home { padding-top: 36px; }
  .latency li { grid-template-columns: 84px 1fr 58px; gap: 10px; }
  .notice + .notice { margin-top: -32px; }
}
