/* ESO OS website — graphite + chrome, like the ESO-Metal desktop theme. No external fonts or requests. */
:root {
  --bg: #0b0d10; --bg2: #101318; --card: #14181e; --card2: #181d24; --line: #242a33; --line2: #2f3642;
  --text: #e6ebf0; --muted: #98a2ad; --dim: #6c7580; --acc: #8fb3d9; --acc2: #b9d2ec; --red: #e06c75; --green: #98c379;
  --r: 16px; --r-sm: 10px; --wrap: 1180px;
  --chrome: linear-gradient(180deg, #ffffff 0%, #dfe5ec 38%, #9ea8b3 62%, #e9eef3 100%);
  --metal: linear-gradient(180deg, #f4f7fa 0%, #cfd7df 48%, #a9b4bf 52%, #dde4ea 100%);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Noto Sans", "Noto Sans Arabic", "Segoe UI Arabic", Tahoma, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", ui-monospace, "DejaVu Sans Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
[dir="rtl"] body { line-height: 1.8; }
img { max-width: 100%; height: auto; }
a { color: var(--acc2); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.4; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 650; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .88em; background: #0e1116; border: 1px solid var(--line); border-radius: 6px; padding: .1em .4em; overflow-wrap: anywhere; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.lead { font-size: 1.14rem; color: var(--muted); max-width: 62ch; }
.center .lead, .shead .lead { margin-inline: auto; }
.chrome { background: var(--chrome); background-size: 100% 1.2em; -webkit-background-clip: text; background-clip: text; color: transparent; }
[dir="rtl"] .chrome { background-size: 100% 1.4em; }
.guide .chrome, .shead .chrome { background-size: 100% 1.2em; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--acc); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { inset-inline-start: 8px; }

/* icons */
.ic { width: 20px; height: 20px; flex: none; }
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 30px; height: 30px; color: var(--acc); }
.ic-xl { width: 110px; height: 110px; color: var(--acc); opacity: .9; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 999px; font-weight: 650; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease; text-decoration: none !important; }
.btn:active { transform: translateY(1px); }
.btn-chrome { background: var(--metal); color: #0f1215; border-color: #eef2f6; box-shadow: 0 1px 0 #fff inset, 0 8px 28px rgba(143, 179, 217, .18); }
.btn-chrome:hover { box-shadow: 0 1px 0 #fff inset, 0 10px 36px rgba(143, 179, 217, .34); }
.btn-ghost { background: rgba(255, 255, 255, .03); color: var(--text); border-color: var(--line2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .07); }
.btn-sm { padding: 8px 15px; font-size: .92rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 16px; }
.center .ctas { justify-content: center; }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(11, 13, 16, .78); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .05); }
.bar { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.12rem; text-decoration: none !important; letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav > a:not(.btn) { color: var(--muted); padding: 8px 12px; border-radius: 8px; font-size: .95rem; text-decoration: none; }
.nav > a:not(.btn):hover, .nav > a[aria-current] { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav .btn { margin-inline-start: 8px; }
.navt, .navb { display: none; }
.langs { position: relative; }
.langs summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; color: var(--muted); padding: 8px 10px; border-radius: 8px; font-size: .92rem; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.langs > div { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); background: var(--card2); border: 1px solid var(--line2); border-radius: 12px; padding: 6px; min-width: 150px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.langs > div a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; }
.langs > div a:hover, .langs > div a[aria-current] { background: rgba(143, 179, 217, .12); }

/* hero */
.hero { position: relative; overflow: hidden; padding: 70px 0 30px; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 900px; pointer-events: none;
  background: radial-gradient(600px 380px at 75% 30%, rgba(143, 179, 217, .16), transparent 70%), radial-gradient(500px 300px at 15% 10%, rgba(255, 255, 255, .06), transparent 70%); }
.hgrid { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.badge { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); color: var(--acc2); font-size: .88rem; font-weight: 600; }
.hshot { position: relative; }
.frame { border-radius: 14px; padding: 6px; background: linear-gradient(180deg, #3a414b, #171b21); box-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06); transform: perspective(1400px) rotateY(-7deg) rotateX(3deg); }
[dir="rtl"] .frame { transform: perspective(1400px) rotateY(7deg) rotateX(3deg); }
.frame img { display: block; border-radius: 9px; }
.planet { position: absolute; width: 170px; inset-inline-start: -70px; bottom: -40px; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .7)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px) rotate(-3deg); } }
.stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 60px; }
.stat { background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.stat strong { display: block; font-size: 1.9rem; font-weight: 800; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: .92rem; }

/* sections + cards */
.sec { padding: 80px 0; }
.sec-alt { background: linear-gradient(180deg, transparent, var(--bg2) 12%, var(--bg2) 88%, transparent); }
.shead { text-align: center; margin-bottom: 44px; }
.phero { padding: 72px 0 30px; text-align: center; background: radial-gradient(600px 240px at 50% 0, rgba(143, 179, 217, .12), transparent 70%); }
.phero .lead { margin-inline: auto; }
.card { background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fcard { transition: border-color .2s, transform .2s; }
.fcard:hover { border-color: var(--line2); transform: translateY(-2px); }
.fcard h3 { margin-top: 14px; }
.fcard p { color: var(--muted); margin: 0 0 12px; }
.ustep { padding: 8px 4px; }
.ustep h3 { margin-top: 12px; }
.ustep p { color: var(--muted); }
.note { display: flex; gap: 10px; align-items: flex-start; margin: 26px auto 0; max-width: 760px; padding: 14px 18px; border: 1px dashed var(--line2); border-radius: 12px; color: var(--muted); }
.note .ic { color: var(--acc); margin-top: 3px; }
.cta-final { background: radial-gradient(500px 260px at 50% 40%, rgba(143, 179, 217, .12), transparent 70%); }
.cta-final img { margin-bottom: 12px; }

/* screenshots: CSS-only tabs */
.shots { text-align: center; }
.stab { position: absolute; opacity: 0; pointer-events: none; }
.slabels { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 26px; }
.slabels label { padding: 8px 16px; border-radius: 999px; cursor: pointer; color: var(--muted); font-size: .94rem; }
.slabels label:hover { color: var(--text); }
.spane { display: none; margin: 0; }
.spane img { border-radius: 12px; border: 1px solid var(--line2); box-shadow: 0 30px 70px rgba(0, 0, 0, .55); }
.spane figcaption { margin-top: 14px; color: var(--muted); }
.shot-small { max-height: 620px; width: auto; }
#s-start:checked ~ .spanes .sp-start, #s-quick:checked ~ .spanes .sp-quick, #s-nano:checked ~ .spanes .sp-nano,
#s-gamebar:checked ~ .spanes .sp-gamebar, #s-settings:checked ~ .spanes .sp-settings { display: block; }
#s-start:checked ~ .slabels label[for="s-start"], #s-quick:checked ~ .slabels label[for="s-quick"], #s-nano:checked ~ .slabels label[for="s-nano"],
#s-gamebar:checked ~ .slabels label[for="s-gamebar"], #s-settings:checked ~ .slabels label[for="s-settings"] { background: var(--metal); color: #0f1215; font-weight: 650; }
.stab:focus-visible ~ .slabels { outline: 2px solid var(--acc); outline-offset: 3px; }

/* features page */
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 60px 0; border-bottom: 1px solid var(--line); }
.frow:last-child { border-bottom: 0; }
.frow.rev .ftext { order: 2; }
.fmedia { text-align: center; }
.fmedia img { border-radius: 12px; border: 1px solid var(--line2); box-shadow: 0 30px 70px rgba(0, 0, 0, .5); }
.ficon { display: grid; place-items: center; min-height: 260px; border-radius: var(--r); border: 1px solid var(--line); background: radial-gradient(circle at 50% 40%, rgba(143, 179, 217, .12), transparent 65%), var(--card); }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .ic { color: var(--green); margin-top: 5px; }

/* download */
.dlcard { max-width: 820px; margin: 20px auto 0; padding: 32px; border-color: var(--line2); box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.dlhead { display: flex; gap: 18px; align-items: center; }
.dlhead h2 { margin: 0; }
.dlhead p { margin: 0; }
.dlmeta { display: flex; flex-wrap: wrap; gap: 28px; margin: 22px 0 8px; }
.dlmeta dt { color: var(--dim); font-size: .85rem; }
.dlmeta dd { margin: 0; font-weight: 650; }
.sha { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #0e1116; }
.sha span { color: var(--dim); font-size: .85rem; flex: none; }
.sha code { border: 0; background: none; padding: 0; flex: 1; direction: ltr; }
.copy { flex: none; background: none; border: 1px solid var(--line2); color: var(--muted); border-radius: 8px; padding: 6px; cursor: pointer; display: grid; }
.copy:hover { color: var(--text); }
.copy.ok { color: var(--green); border-color: var(--green); }
.steps { list-style: none; padding: 0; margin: 0; }
.step { position: relative; }
.step .num { position: absolute; inset-inline-end: 22px; top: 18px; font-size: 2.6rem; font-weight: 800; color: rgba(255, 255, 255, .06); }
.step h3 { margin-top: 14px; }
.step p { color: var(--muted); margin: 0; }
.two { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; }
.two h2 { font-size: 1.35rem; }
.code { background: #0a0c0f; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; overflow-x: auto; font: .86rem/1.7 var(--mono); color: #c9d4de; text-align: left; }
.code code { background: none; border: 0; padding: 0; font-size: inherit; overflow-wrap: normal; white-space: pre; }
.older { padding-inline-start: 20px; color: var(--muted); }
.older li { margin: 6px 0; }

/* docs */
.docs { display: grid; grid-template-columns: 250px 1fr; gap: 40px; padding-bottom: 60px; }
.toc { position: sticky; top: 86px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; font-size: .92rem; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc a { display: block; padding: 5px 10px; border-radius: 8px; color: var(--muted); border-inline-start: 2px solid var(--line); }
.toc a:hover { color: var(--text); background: rgba(255, 255, 255, .04); text-decoration: none; }
.prose { min-width: 0; }
.prose section h2 { display: flex; gap: 10px; align-items: center; font-size: 1.4rem; }
.prose section h2 .ic { color: var(--acc); }
.guide { margin-top: 30px; text-align: left; }
.guide h1 { font-size: 2rem; }
.guide h2 { font-size: 1.55rem; margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.guide h3 { margin-top: 1.6em; scroll-margin-top: 80px; }
.guide ul, .guide ol { padding-left: 1.4em; }
.guide li { margin: .3em 0; }
.guide table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: .94rem; display: block; overflow-x: auto; }
.guide th, .guide td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.guide th { background: var(--card2); }
.guide pre { background: #0a0c0f; border: 1px solid var(--line); border-radius: 10px; padding: 14px; overflow-x: auto; }
.guide pre code { background: none; border: 0; padding: 0; overflow-wrap: normal; }
.guide blockquote { margin: 1em 0; padding: 10px 16px; border-left: 3px solid var(--acc); background: var(--card); border-radius: 0 10px 10px 0; color: var(--muted); }
.plain { white-space: pre-wrap; font-family: var(--font); }
#updates { scroll-margin-top: 90px; }

/* changelog + news */
.timeline { padding-bottom: 60px; }
.rel, .post { margin-bottom: 16px; scroll-margin-top: 86px; }
.rel header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.rel h2 { font-size: 1.35rem; margin: 0; }
.rel h2 a { color: var(--text); }
.rel time, .post time { color: var(--dim); font-size: .9rem; margin-inline-start: auto; }
.rel p, .post p { color: var(--muted); margin: 0; }
.post h2 { font-size: 1.35rem; margin: 6px 0 10px; }
.post a { display: inline-block; margin-top: 10px; }
.tag { display: inline-block; font-size: .78rem; font-weight: 650; padding: 3px 10px; border-radius: 999px; background: rgba(143, 179, 217, .14); color: var(--acc2); }
.tag-red { background: rgba(224, 108, 117, .16); color: #f0a0a7; }
.tag-dim { background: rgba(255, 255, 255, .06); color: var(--muted); }
.tbl { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.tbl th, .tbl td { padding: 10px; border-bottom: 1px solid var(--line); text-align: start; }

/* footer */
.foot { border-top: 1px solid var(--line); background: #090b0d; padding: 50px 0 30px; margin-top: 40px; }
.fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.flinks { display: grid; gap: 6px; align-content: start; }
.flinks a { color: var(--muted); font-size: .94rem; }
.flinks a:hover { color: var(--text); }
.fsmall { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .86rem; }

/* responsive */
@media (max-width: 1020px) {
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .hgrid { grid-template-columns: 1fr; gap: 40px; }
  .frame, [dir="rtl"] .frame { transform: none; }
  .planet { width: 110px; inset-inline-start: auto; inset-inline-end: -10px; bottom: -34px; }
  .docs { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
  .toc ol { columns: 2; }
}
@media (max-width: 900px) {
  .navb { display: grid; place-items: center; margin-inline-start: auto; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line2); cursor: pointer; color: var(--text); }
  .nav { display: none; position: absolute; inset-inline: 0; top: 66px; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 18px; background: rgba(11, 13, 16, .97); border-bottom: 1px solid var(--line); }
  .navt:checked ~ .nav { display: flex; }
  .nav > a:not(.btn) { padding: 12px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
  .langs > div { position: static; box-shadow: none; margin-top: 4px; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .frow, .two { grid-template-columns: 1fr; gap: 28px; }
  .frow.rev .ftext { order: 0; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .fgrid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 18px; }
  .grid3, .grid4 { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .stat strong { font-size: 1.5rem; }
  .sec { padding: 56px 0; }
  .btn { width: 100%; justify-content: center; }
  .ctas .btn-sm { width: auto; }
  .dlcard { padding: 22px; }
  .toc ol { columns: 1; }
  .slabels { border-radius: 16px; }
}

/* "3.0" marker for features that arrive with ESO OS 3.0 */
.tag30 { display: inline-block; vertical-align: middle; margin-inline-start: .5em; padding: .12em .5em; border-radius: 999px;
  font-size: .62rem; font-weight: 700; letter-spacing: .04em; line-height: 1.5; color: #0b0d10;
  background: linear-gradient(180deg, #e9eef4, #9fb0c2); -webkit-text-fill-color: #0b0d10; }
h2 .tag30 { font-size: .9rem; }
.note30 { margin-top: 1.4rem; align-items: center; }
.note30 .tag30 { margin-inline-start: 0; flex: none; }


/* ESO Ultimate: editions, price, payment methods, key pages */
[hidden] { display: none !important; }
.tagu { background: linear-gradient(180deg, #f6e7b8, #c9a45a); }
.eds { grid-template-columns: 1fr 1fr; margin-top: 10px; }
.eds .dlcard { display: flex; flex-direction: column; }
.eds .dlcard .ctas { margin-top: auto; padding-top: 14px; }
.ed-ultimate { border-color: #6b5a33; }
.edsub { color: var(--acc2); font-weight: 600; margin: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pricecard .price { font-size: 1.1rem; margin: 6px 0; }
.pricecard .price strong { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; }
.ulaunch .tag30 { margin-inline-start: 0; font-size: .75rem; }
.paym { display: flex; flex-direction: column; gap: 6px; }
.paym .ic-lg { color: var(--acc); }
.paym > .btn { align-self: flex-start; margin-top: 6px; }
.payf { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.payf > span { min-width: 7.5em; }
.payf code { flex: 1; font-size: .95em; }
.perr, .uerr { color: var(--red); }
.tblwrap { padding: 8px 16px; overflow-x: auto; }
.cmp td.c, .cmp th.c { text-align: center; width: 9em; }
.cmp .ic { color: var(--green); }
.faq { padding: 16px 22px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq p { margin: 10px 0 0; color: var(--muted); }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.inp { flex: 1; min-width: 14em; background: #0e1116; color: var(--text); border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; font: inherit; }
.inp:focus { outline: 2px solid var(--acc); outline-offset: 1px; }
.keyline { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.keyline code { font-size: 1.15rem; padding: .45em .7em; letter-spacing: .03em; }
@media (max-width: 860px) { .eds, .grid2 { grid-template-columns: 1fr; } .payf { flex-wrap: wrap; } }
.two > * { min-width: 0; }
.two pre.code { overflow-x: auto; }
.tag-gold { background: rgba(229, 192, 123, .16); color: #e5c07b; }

/* ───────── community: header account link ───────── */
.nav > a.acct { display: inline-flex; align-items: center; gap: 7px; color: var(--text); border: 1px solid var(--line2); border-radius: 999px; padding: 6px 12px; position: relative; }
.acct .ic { width: 18px; height: 18px; }
.acct span { max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-av { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.acct-n { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: .7rem; line-height: 18px; text-align: center; }
@media (max-width: 1240px) and (min-width: 901px) { .nav > a:not(.btn) { padding: 8px 7px; font-size: .88rem; } .nav .btn-sm { padding: 8px 12px; } .acct span { max-width: 6em; } }

/* ───────── shared bits ───────── */
.form { display: grid; gap: 14px; }
.form.row { display: flex; align-items: flex-end; }
.fld { display: grid; gap: 6px; }
.fld > span:first-child { font-weight: 600; font-size: .92rem; }
.fld .inp { min-width: 0; width: 100%; }
textarea.inp { resize: vertical; line-height: 1.5; }
select.inp { appearance: auto; }
.cmsg { margin: 0; color: var(--green); }
.cmsg.bad, .cerr { color: #f0a0a7; margin: 0; }
.linkb { background: none; border: 0; color: var(--acc2); cursor: pointer; padding: 0; font: inherit; }
.linkb:hover { text-decoration: underline; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { background: rgba(255, 255, 255, .03); color: var(--muted); border: 1px solid var(--line2); border-radius: 999px; padding: 7px 14px; cursor: pointer; font: inherit; font-size: .92rem; }
.tab.on { background: var(--metal); color: #0f1215; border-color: #eef2f6; }
.card2 { background: #10141a; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; list-style: none; }
.sp { justify-content: space-between; align-items: center; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.okline { display: flex; gap: 10px; align-items: center; color: var(--acc2); }
.av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center; vertical-align: middle; background: #2f3642; }
.av-txt { color: #0f1215; font-weight: 800; }
.av-sm { width: 24px; height: 24px; font-size: .75rem; }
.av-xl { width: 84px; height: 84px; font-size: 2rem; }
.av-xxl { width: 112px; height: 112px; font-size: 2.6rem; }
.bdgs { display: inline-flex; gap: 3px; vertical-align: middle; margin-inline-start: 4px; }
.bdg { width: 18px; height: 18px; }
.uname { font-weight: 650; color: var(--text); }
.st-new { background: rgba(143, 179, 217, .14); } .st-confirmed { background: rgba(229, 192, 123, .16); color: #e5c07b; }
.st-progress { background: rgba(198, 120, 221, .16); color: #d7a6e8; } .st-fixed { background: rgba(152, 195, 121, .16); color: var(--green); }
.st-wontfix, .st-duplicate, .st-closed { background: rgba(255, 255, 255, .06); color: var(--muted); }

/* ───────── chat ───────── */
.cm { display: grid; grid-template-columns: 250px 1fr; gap: 18px; padding-block: 26px 40px; }
.cm-side { padding: 18px; align-self: start; position: sticky; top: 84px; }
.cm-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.cm-chs { display: grid; gap: 2px; margin-bottom: 14px; }
.cm-chs a { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; }
.cm-chs a:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.cm-chs a.on { background: rgba(143, 179, 217, .14); color: var(--text); }
.hash { color: var(--dim); font-weight: 700; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); margin-inline-start: auto; }
.live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-inline-end: 6px; box-shadow: 0 0 8px var(--green); }
.cm-links { display: grid; gap: 6px; margin-bottom: 14px; }
.cm-links a { display: inline-flex; gap: 6px; align-items: center; }
.cm-main { padding: 0; display: flex; flex-direction: column; height: calc(100vh - 140px); min-height: 480px; overflow: hidden; }
.cm-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.cm-title { font-size: 1.25rem; margin: 0; }
.cm-log { flex: 1; overflow-y: auto; padding: 10px 8px; overscroll-behavior: contain; }
.cm-older { display: block; margin: 6px auto 10px; }
.cm-empty { padding: 40px 0; }
.cm-msg { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; padding: 8px 12px; border-radius: 10px; position: relative; }
.cm-msg.cont { padding-top: 1px; }
.cm-msg:hover { background: rgba(255, 255, 255, .025); }
.av-sp { width: 40px; }
.cm-main2 { min-width: 0; }
.cm-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cm-meta time { color: var(--dim); font-size: .8rem; }
.cm-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.cm-body.del { color: var(--dim); font-style: italic; }
.cm-quote { border-inline-start: 3px solid var(--line2); padding: 2px 10px; margin: 4px 0; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-acts { display: flex; gap: 2px; opacity: 0; align-self: start; transition: opacity .12s; }
.cm-msg:hover .cm-acts, .cm-msg:focus-within .cm-acts { opacity: 1; }
.cm-acts button { background: #0e1116; border: 1px solid var(--line2); color: var(--muted); border-radius: 7px; font-size: .75rem; padding: 2px 8px; cursor: pointer; }
.cm-acts button:hover { color: var(--text); }
.cm-editing { display: grid; gap: 6px; }
.cm-form { border-top: 1px solid var(--line); padding: 12px 14px; }
.cm-row { display: flex; gap: 10px; align-items: flex-end; }
.cm-row .inp { min-height: 44px; max-height: 180px; resize: none; }
.cm-replying { display: flex; justify-content: space-between; padding: 4px 6px 8px; color: var(--muted); }
.cm-guest { border-top: 1px solid var(--line); padding: 16px; text-align: center; }
@media (hover: none) { .cm-acts { opacity: 1; } }
@media (max-width: 860px) {
  .cm { grid-template-columns: 1fr; padding-top: 12px; }
  .cm-side { position: static; padding: 10px; }
  .cm-chs { display: flex; overflow-x: auto; gap: 4px; margin: 0; padding-bottom: 4px; }
  .cm-chs a { white-space: nowrap; }
  .cm-side .cm-h, .cm-side > p:last-child, .cm-links { display: none; }
  .cm-online { margin: 6px 0 0; }
  .cm-main { height: calc(100vh - 220px); }
}

/* ───────── account ───────── */
.acc { display: grid; gap: 18px; padding-bottom: 50px; }
.acbox h2 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; }
.acbox h3 { margin-top: 18px; }
#ac-in { display: grid; gap: 18px; }
#ac-in[hidden] { display: none; }
.ahead { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.ahead h2 { margin: 0; font-size: 1.5rem; }
.ahead p { margin: 2px 0; }
.gbtn { display: flex; justify-content: center; min-height: 44px; margin: 18px 0 6px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: .85rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sws { display: flex; gap: 8px; flex-wrap: wrap; }
.sw input { position: absolute; opacity: 0; }
.sw i { display: block; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line2); cursor: pointer; background: repeating-linear-gradient(45deg, #2f3642 0 4px, #14181e 4px 8px); }
.sw input:checked + i { border-color: #fff; box-shadow: 0 0 0 2px var(--acc); }
.sw input:focus-visible + i { outline: 2px solid var(--acc); outline-offset: 2px; }
.paydet { margin: 12px 0; }
.paydet summary { cursor: pointer; color: var(--acc2); }
.paydet .grid2 { margin-top: 12px; }
.olist { list-style: none; padding: 0; display: grid; gap: 10px; margin: 10px 0 0; }
.keyline code { font-size: 1.05rem; padding: 6px 10px; display: inline-block; margin-top: 8px; user-select: all; }
.danger { margin-top: 14px; }
.danger summary { color: #f0a0a7; cursor: pointer; }

/* ───────── ESmail ───────── */
.ml { padding-block: 26px 40px; }
.ml-app { display: grid; grid-template-columns: 200px 340px 1fr; gap: 14px; height: calc(100vh - 140px); min-height: 520px; }
.ml-app[hidden] { display: none; }
.ml-side { padding: 16px; display: grid; align-content: start; gap: 14px; }
.ml-folders { display: grid; gap: 2px; }
.ml-folders a { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; }
.ml-folders a.on { background: rgba(143, 179, 217, .14); color: var(--text); }
.ml-list { padding: 6px; overflow-y: auto; }
.ml-items { list-style: none; margin: 0; padding: 0; }
.ml-item { padding: 10px 12px; border-radius: 10px; cursor: pointer; border-bottom: 1px solid var(--line); }
.ml-item:hover, .ml-item.on { background: rgba(255, 255, 255, .04); }
.ml-item.unread .ml-who, .ml-item.unread .ml-sub { color: var(--text); font-weight: 750; }
.ml-item.unread { border-inline-start: 3px solid var(--acc); }
.ml-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--muted); }
.ml-sub, .ml-snip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-item .row { margin: 0; flex-wrap: nowrap; }
.ml-read { overflow-y: auto; display: flex; flex-direction: column; }
#ml-msg { display: flex; flex-direction: column; flex: 1; }
#ml-msg[hidden] { display: none; }
.ml-frame { flex: 1; width: 100%; min-height: 360px; border: 0; border-radius: 10px; background: #fff; margin-top: 10px; }
.ml-back { display: none; margin-bottom: 8px; }
#ml-pick { margin: auto; }
@media (max-width: 1020px) {
  .ml-app { grid-template-columns: 1fr; height: auto; }
  .ml-side { grid-template-columns: auto 1fr; align-items: center; }
  .ml-folders { display: flex; }
  .ml-list { max-height: none; }
  .ml-read { display: none; min-height: 70vh; }
  .ml-app.reading .ml-read { display: flex; }
  .ml-app.reading .ml-list, .ml-app.reading .ml-side { display: none; }
  .ml-back { display: inline-block; }
}

/* ───────── bugs ───────── */
.bg { padding-bottom: 50px; display: grid; gap: 14px; }
.bg-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.bg-tools[hidden] { display: none; }
.bg-tools .inp { flex: 1 1 200px; min-width: 0; }
.bg-tools select.inp { flex: 0 1 200px; }
.chk { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); }
.tab .n { opacity: .7; }
.bg-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.bg-list[hidden] { display: none; }
.bg-row { padding: 0; }
.bg-link { display: flex; gap: 16px; align-items: center; padding: 14px 18px; color: var(--text); text-decoration: none !important; }
.bg-votes { display: grid; place-items: center; min-width: 44px; padding: 4px; border: 1px solid var(--line2); border-radius: 10px; line-height: 1.1; }
.bg-mid { flex: 1; min-width: 0; }
.bg-t { font-weight: 650; overflow: hidden; text-overflow: ellipsis; }
.bg-body { background: #0e1116; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 12px 0; }
.bg-shot { max-width: 100%; max-height: 420px; border-radius: 10px; border: 1px solid var(--line); }
.bg-c { display: grid; grid-template-columns: 24px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.bg-c.staff { background: rgba(143, 179, 217, .05); border-radius: 8px; padding-inline: 8px; }
.bg-ev { display: flex; gap: 6px; align-items: center; margin: 6px 0; }
.staffbox { margin-top: 18px; padding: 12px; border: 1px dashed var(--line2); border-radius: 10px; align-items: center; }
.btn.on { border-color: var(--acc); color: var(--acc2); }

/* ───────── profile / admin ───────── */
.pf { padding-block: 40px 60px; }
.pfhead { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.pfname { font-size: 1.8rem; margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pfname .bdg { width: 26px; height: 26px; }
.pfbio { margin: 18px 0; }
.ad { padding-block: 30px 60px; display: grid; gap: 18px; }
#ad-app { display: grid; gap: 18px; }
#ad-app[hidden] { display: none; }
.ad .stats { margin-top: 0; }
.ad-proof { max-width: 280px; max-height: 280px; border-radius: 8px; border: 1px solid var(--line); margin: 6px 0; }
.ad-order .inp { width: 100%; margin: 6px 0; }
.fset { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 8px; }
.fset legend { padding: 0 6px; color: var(--muted); font-size: .85rem; }
.brand span, .nav > a { white-space: nowrap; }
.gbtn, #g-link { max-width: 320px; overflow: hidden; }
.gbtn svg, #g-link svg { max-width: 22px; max-height: 22px; }
@media (max-width: 1400px) and (min-width: 901px) { .nav > a:not(.btn) { padding: 8px 7px; font-size: .88rem; } .nav .langs summary span { display: none; } .nav .btn-sm { padding: 8px 12px; } .acct span { max-width: 6em; } }
@media (max-width: 1400px) and (min-width: 901px) { .nav .btn-chrome { display: none; } .brand { flex: none; } }
/* 9 nav links + language + account + download: keep the bar on one line at every width */
@media (max-width: 1640px) and (min-width: 1181px) { .nav { gap: 0; } .nav > a:not(.btn) { padding: 8px 8px; font-size: .9rem; } .nav .langs summary span { display: none; } .brand { flex: none; margin-inline-end: 12px; } }
@media (max-width: 1480px) and (min-width: 1181px) { .nav .btn-chrome { display: none; } }
.cm > *, .ml-app > *, .cm-main2, .bg-mid { min-width: 0; }
.cm-side { overflow: hidden; }
.legal { padding-bottom: 60px; }
.ltoc ol { margin: 0; padding-inline-start: 1.3em; columns: 2; column-gap: 30px; }
.ltoc li { margin: 3px 0; }
.lsec { margin-top: 34px; }
.lsec h2 { font-size: 1.35rem; }
.lsec p { color: #cdd5dd; }
.agree { text-align: center; margin: 14px 0 0; }
@media (max-width: 640px) { .ltoc ol { columns: 1; } }
.payto { margin: 12px 0; display: grid; gap: 8px; }
.payqr { margin: 6px 0 0; text-align: center; }
.payqr img, .payqr-img { background: #fff; padding: 8px; border-radius: 10px; width: 200px; height: auto; display: block; margin: 0 auto 6px; }
.checkout { margin-top: 22px; display: block; }
.checkout h3 { margin-top: 0; }
.cocode { font-size: 1.35rem; font-weight: 800; letter-spacing: 2px; color: var(--accent, #8fb3d9); }
.cocode-s { font-family: monospace; font-weight: 700; }
.costeps { padding-inline-start: 1.3em; color: #cdd5dd; }
.costeps li { margin: 4px 0; }

/* hamburger menu below 1180px (the full link bar no longer fits) */
@media (max-width: 1180px) {
  .navb { display: grid; place-items: center; margin-inline-start: auto; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line2); cursor: pointer; color: var(--text); }
  .nav { display: none; position: absolute; inset-inline: 0; top: 66px; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 18px; background: rgba(11, 13, 16, .97); border-bottom: 1px solid var(--line); z-index: 50; }
  .navt:checked ~ .nav { display: flex; }
  .nav > a:not(.btn) { padding: 12px; font-size: .95rem; }
  .nav .btn, .nav .btn-chrome { margin: 8px 0 0; justify-content: center; display: inline-flex; }
  .nav .langs summary span { display: inline; }
  .langs > div { position: static; box-shadow: none; margin-top: 4px; }
}

/* ───────── /ultimate/ payment section: stepper, method tiles, order summary ───────── */
.pstep { list-style: none; display: flex; justify-content: center; align-items: center; gap: 0; margin: 0 auto 28px; padding: 0; max-width: 640px; counter-reset: none; }
.pstep li { display: flex; align-items: center; gap: 10px; color: var(--dim); font-weight: 650; font-size: .95rem; flex: 1; justify-content: center; position: relative; }
.pstep li:not(:last-child)::after { content: ""; position: absolute; top: 50%; inset-inline-start: calc(50% + 70px); width: calc(100% - 140px); height: 2px; background: var(--line2); border-radius: 2px; }
.pstep li b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line2); font-size: .9rem; background: var(--bg); transition: all .25s; }
.pstep li.on { color: var(--text); }
.pstep li.on b { border-color: transparent; background: var(--metal); color: #0f1215; box-shadow: 0 0 0 4px rgba(143, 179, 217, .18); }
.pstep li.done { color: var(--muted); }
.pstep li.done b { border-color: var(--acc); color: var(--acc); }
.pstep li.done:not(:last-child)::after { background: linear-gradient(90deg, var(--acc), var(--line2)); }
.pgrid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.pmain { display: grid; gap: 18px; min-width: 0; }
.pmeths { display: grid; gap: 12px; }
.pays { display: none; }
.paym { display: block; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, var(--card), var(--card2, var(--card))); overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s; }
.paym[hidden] { display: none; }
.paym:hover { border-color: var(--line2); }
.paym.sel { border-color: rgba(143, 179, 217, .6); box-shadow: 0 0 0 1px rgba(143, 179, 217, .35), 0 18px 50px rgba(0, 0, 0, .35); }
.pm-head { width: 100%; display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: none; border: 0; color: var(--text); font: inherit; text-align: start; cursor: pointer; }
.pm-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line2); flex: none; position: relative; transition: border-color .2s; }
.paym.sel .pm-radio { border-color: var(--acc); }
.paym.sel .pm-radio::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--acc); animation: pm-pop .25s ease; }
@keyframes pm-pop { from { transform: scale(0); } }
.pm-art { flex: none; display: grid; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35)); transition: transform .25s; }
.pm-art svg { display: block; }
.paym:hover .pm-art, .paym.sel .pm-art { transform: translateY(-2px) rotate(-3deg); }
.pm-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pm-txt b { font-size: 1.05rem; }
.pm-txt small { color: var(--muted); font-size: .88rem; }
.pm-chip { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 750; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.pm-chip .ic { width: 14px; height: 14px; }
.pm-fast { background: rgba(111, 207, 138, .14); color: #8fe0a6; }
.pm-hand { background: rgba(143, 179, 217, .12); color: var(--acc); }
.pm-soonc { background: rgba(255, 255, 255, .06); color: var(--dim); }
.pm-body { display: none; padding: 0 22px 20px calc(18px + 22px + 16px + 48px + 16px); color: #cdd5dd; }
[dir="rtl"] .pm-body { padding: 0 calc(18px + 22px + 16px + 48px + 16px) 20px 22px; }
.paym.sel .pm-body { display: block; animation: pm-in .25s ease; }
@keyframes pm-in { from { opacity: 0; transform: translateY(-6px); } }
.pm-body > p { margin: 0 0 12px; line-height: 1.6; }
.pm-body .payf { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; background: rgba(0, 0, 0, .18); }
.pm-body .payf code { font-size: 1.05rem; font-weight: 750; color: var(--text); }
.pm-body .ctas { margin-top: 4px; }
.pm-go { min-width: 200px; justify-content: center; }
.paym[data-method="cardsoon"] { opacity: .6; }
.paym[data-method="cardsoon"] .pm-head { cursor: default; }
.paym[data-method="cardsoon"] .pm-radio { visibility: hidden; }
.pgrid.paying .paym:not(.sel) { display: none; }
.pgrid.paying .paym.sel .pm-body { display: none; }
.pgrid.paying .paym.sel .pm-head { cursor: default; }
/* summary */
.psum { position: sticky; top: 86px; display: grid; gap: 14px; padding: 22px; border-radius: 18px; background: radial-gradient(500px 220px at 100% 0%, rgba(143, 179, 217, .12), transparent 70%), var(--card); }
.psum h3 { margin: 0; font-size: 1.05rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; }
.psum-prod { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.psum-prod > div { display: grid; gap: 2px; }
.psum-logo { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(145deg, #232b36, #12171e); border: 1px solid var(--line2); flex: none; }
.psum-row { display: flex; justify-content: space-between; align-items: center; font-size: .92rem; }
.psum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px dashed var(--line2); font-weight: 700; }
.psum-total strong { font-size: 1.8rem; font-weight: 850; letter-spacing: -.02em; background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.psum-abroad { margin: -6px 0 0; }
.psum-with { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line2); }
.psum-with.set { border-style: solid; border-color: rgba(143, 179, 217, .45); background: rgba(143, 179, 217, .07); }
.psum-with b { text-align: end; }
.psum-trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .88rem; color: var(--muted); }
.psum-trust li { display: flex; gap: 10px; align-items: flex-start; }
.psum-trust .ic { color: var(--acc); flex: none; margin-top: 2px; }
/* checkout panel */
.pmain .checkout { margin-top: 0; border-radius: 18px; padding: 24px; border-color: rgba(143, 179, 217, .4); animation: pm-in .3s ease; }
.pmain .checkout h3 { font-size: 1.3rem; }
.pmain .checkout .payf { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 8px 0; background: rgba(0, 0, 0, .18); }
.pmain .checkout .payqr { background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin: 14px 0; }
.pmain .costeps { counter-reset: cs; list-style: none; padding: 0; display: grid; gap: 8px; margin: 14px 0; }
.pmain .costeps li { counter-increment: cs; display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.pmain .costeps li::before { content: counter(cs); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(143, 179, 217, .14); color: var(--acc); font-weight: 800; font-size: .8rem; }
#co-done { text-align: center; }
#co-done .payf { justify-content: center; }
#co-done code { font-size: 1.15rem; font-weight: 800; letter-spacing: 1px; }
@media (max-width: 1020px) {
  .pgrid { grid-template-columns: 1fr; }
  .psum { position: static; order: -1; }
}
@media (max-width: 640px) {
  .pm-head { flex-wrap: wrap; gap: 12px; padding: 14px; }
  .pm-art svg { width: 40px; height: 40px; }
  .pm-txt { flex-basis: calc(100% - 100px); }
  .pm-chip { margin-inline-start: calc(22px + 12px); }
  .pm-body, [dir="rtl"] .pm-body { padding: 0 16px 18px; }
  .pm-go { width: 100%; }
  .pstep li span { display: none; }
  .pstep li:not(:last-child)::after { inset-inline-start: calc(50% + 24px); width: calc(100% - 48px); }
}
.psum .c-usd, .psum.usd .c-dzd, .psum.usd .psum-abroad { display: none; }
.psum.usd .c-usd { display: inline; }
@media (max-width: 640px) { .psum-trust, .psum-prod small { display: none; } .psum { gap: 10px; padding: 18px; } }

/* ESmail apps: Google sign-in through the browser */
.applink-go { width: 100%; max-width: 320px; justify-content: center; gap: 10px; margin: 0 auto; display: flex; }
.gmark { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #4285f4; font-weight: 900; font-size: .85rem; }
.applink { text-align: center; display: grid; gap: 6px; justify-items: center; margin-top: 10px; }
.applink-code { font-family: var(--mono, monospace); font-size: 1.9rem; font-weight: 800; letter-spacing: .12em; margin: 4px 0; color: var(--text); }
.applink-wait::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--acc); margin-inline-end: 8px; animation: em-pulse 1.2s ease-in-out infinite; }
@keyframes em-pulse { 50% { opacity: .3; transform: scale(.7); } }
.applink-err { color: #f0a0a7; }
.applink-confirm { border-color: rgba(143, 179, 217, .5); text-align: center; display: grid; gap: 8px; justify-items: center; margin-bottom: 18px; }
.applink-confirm h2 { margin: 0; font-size: 1.3rem; }
.applink-who { display: flex; align-items: center; gap: 6px; }

/* /apps/ : ESmail apps */
.aphero .apicon { display: block; margin: 0 auto 14px; border-radius: 22px; box-shadow: 0 10px 40px rgba(80, 130, 200, .25); }
.aphero { text-align: center; }
.apgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; padding-bottom: 10px; }
.apcard { position: relative; display: flex; flex-direction: column; gap: 12px; transition: transform .2s ease, border-color .2s ease; }
.apcard:hover { transform: translateY(-2px); }
.apcard .ctas { margin-top: auto; }
.apcard.mine { border-color: rgba(143, 179, 217, .65); box-shadow: 0 0 0 1px rgba(143, 179, 217, .25), 0 14px 40px rgba(60, 100, 160, .18); }
.apmine { display: none; position: absolute; top: -11px; inset-inline-start: 18px; background: var(--acc); color: #0b0d10; font-size: .72rem; font-weight: 800; padding: 3px 10px; border-radius: 99px; letter-spacing: .02em; }
.apcard.mine .apmine { display: inline-block; }
.aphead { display: flex; gap: 14px; align-items: center; }
.aphead h2 { margin: 0; font-size: 1.25rem; }
.aphead p { margin: 2px 0 0; }
.apic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(143, 179, 217, .12); color: var(--acc); flex: none; }
.apic .ic { width: 26px; height: 26px; }
.apsteps { margin: 0; padding-inline-start: 1.25em; display: grid; gap: 6px; font-size: .93rem; }
.apcmd { display: block; margin-top: 6px; padding: 7px 10px; border-radius: 8px; background: rgba(0, 0, 0, .35); font-size: .8rem; overflow-x: auto; white-space: nowrap; }
.apcard .sha code { font-size: .68rem; }
.apnotes { display: grid; gap: 6px; max-width: 760px; margin: 10px auto 40px; text-align: center; }
.apnotes .ic { vertical-align: -3px; }
.gbtn.gbtn-app { display: block; max-width: none; overflow: visible; }
.gbtn.gbtn-app .applink-go { max-width: 420px; }
html.inapp .foot { display: none; }
.apcmd { max-width: 100%; box-sizing: border-box; white-space: normal; overflow-wrap: anywhere; }

/* ── inside the ESmail apps: ESmail only, no website frame ── */
.app-brand { display: none; }
html.inapp .top, html.inapp .foot, html.inapp .skip { display: none !important; }
html.inapp body { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
html.inapp .p-account .phero, html.inapp .p-account #ac-in, html.inapp .p-account #ac-loading { display: none !important; }
html.inapp .p-account .app-brand { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 34px 0 18px; }
html.inapp .p-account .app-brand img { border-radius: 18px; box-shadow: 0 10px 34px rgba(80, 130, 200, .25); }
html.inapp .p-account .app-brand h1 { margin: 6px 0 0; font-size: 1.9rem; }
html.inapp .p-account .app-brand p { margin: 0; }
html.inapp .p-account .acc { max-width: 460px; }

.eds-lite{margin-top:18px}

/* ── three ESO websites: brand accents, "ESO apps" strip, home redesign, worldwide chat ── */
.b-esmail { --acc: #8fb3d9; --acc2: #c2d8ef; }
.b-cosmos { --acc: #a99bf0; --acc2: #cfc6ff; }
.b-cosmos .phero { background: radial-gradient(640px 260px at 50% 0, rgba(123, 104, 238, .16), transparent 70%); }
.b-esmail .brand img, .b-cosmos .brand img { border-radius: 9px; }
.family { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-block: 18px 6px; border-top: 1px solid var(--line); margin-top: 26px; }
.family > span { margin-inline-end: 6px; }
.fam { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: .9rem; }
.fam:hover { background: var(--card); text-decoration: none; }
.fam.on { border-color: var(--line2); background: var(--card); }
.fam img { border-radius: 6px; }
.fam-cards { display: flex; flex-wrap: wrap; gap: 10px; }
.fam-card { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--card2); border: 1px solid var(--line); border-radius: 12px; color: var(--text); }
.fam-card:hover { border-color: var(--line2); text-decoration: none; }
.fam-card img { border-radius: 7px; }
.eds { align-items: stretch; }
.ed { display: flex; flex-direction: column; gap: 6px; padding: 26px; }
.ed .btn { margin-top: auto; align-self: flex-start; }
.ed-price { font-size: 1.5rem; font-weight: 800; margin: 0; }
.ed-ult { border-color: rgba(143, 179, 217, .35); background: linear-gradient(160deg, rgba(143, 179, 217, .08), var(--card) 60%); }
.ed h3 img { vertical-align: -3px; }
.home-band { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
.home-band .card { display: flex; gap: 16px; align-items: center; padding: 22px; color: var(--text); }
.home-band .card:hover { border-color: var(--line2); text-decoration: none; }
.home-band h3 { margin: 0; }
.home-band p { margin: 4px 0 0; }
.band-chat { background: linear-gradient(135deg, rgba(143, 179, 217, .1), var(--card) 70%); }
.sec-tight { padding: 30px 0 50px; }
.ourapps { display: grid; grid-template-columns: 1fr 1.3fr 1.3fr; gap: 12px; align-items: center; }
.oa-head h2 { font-size: 1.25rem; margin: 0 0 2px; }
.oa-head p { margin: 0; }
.oa { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: var(--text); }
.oa:hover { border-color: var(--line2); text-decoration: none; }
.oa img { border-radius: 10px; flex: none; }
.oa div { display: flex; flex-direction: column; min-width: 0; }
.oa-go { margin-inline-start: auto; color: var(--acc2); font-size: .88rem; white-space: nowrap; }
@media (max-width: 860px) { .home-band, .ourapps { grid-template-columns: 1fr; } }
.wc-hero { padding-bottom: 6px; }
.wc .cm-title .ic { width: 22px; height: 22px; vertical-align: -4px; margin-inline-end: 6px; color: var(--acc); }
.wc .cm-side h3 { margin: 14px 0 4px; }
.wc { grid-template-columns: 260px 1fr; }

/* ───────── ESO Account sign-in: Google's sign-in layout with the ESO OS icon and name ─────────
   One card (two columns on wide screens), outlined fields with floating labels, pill "Next" button, text links.
   Follows the device's light/dark setting like Google's page. Site header/footer step aside while it shows. */
body.p-account:has(#ac-in[hidden]) .phero, body.p-account:has(#ac-in[hidden]) .app-brand { display: none; }
body.p-account:has(.gsi:not([hidden])) > header.top, body.p-account:has(.gsi:not([hidden])) > footer.foot, body.p-account:has(.gsi:not([hidden])) .skip { display: none; }
body.p-account:has(.gsi:not([hidden])) { background: var(--g-bg); }
body.p-account:has(#ac-in[hidden]) #ac-loading { min-height: 70vh; display: grid; place-items: center; }
body.p-account { --g-bg: #131314; --g-card: #0e0e0e; --g-text: #e3e3e3; --g-sub: #c4c7c5; --g-line: #8e918f; --g-pri: #a8c7fa;
  --g-on-pri: #062e6f; --g-link: #a8c7fa; --g-err: #f2b8b5; --g-hover: rgba(168,199,250,.08); --g-chip: #444746; }
@media (prefers-color-scheme: light) {
  body.p-account { --g-bg: #f0f4f9; --g-card: #fff; --g-text: #1f1f1f; --g-sub: #444746; --g-line: #747775; --g-pri: #0b57d0;
    --g-on-pri: #fff; --g-link: #0b57d0; --g-err: #b3261e; --g-hover: rgba(11,87,208,.08); --g-chip: #747775; }
}
.p-account .acc { max-width: none; }
.gsi { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px 16px;
  color: var(--g-text); font-family: "Google Sans", "Product Sans", Roboto, var(--font); }
.gsi[hidden] { display: none; }
.gsi-card { width: 100%; max-width: 1040px; background: var(--g-card); border-radius: 28px; padding: 36px 36px 32px; }
.gsi-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.gsi-logo img { width: 40px; height: 40px; }
.gsi-logo span { font-size: 22px; font-weight: 500; letter-spacing: 0; color: var(--g-text); }
.gsi-form { display: grid; grid-template-columns: 1fr; gap: 0 48px; }
.gsi-form h1 { font-size: 36px; font-weight: 400; line-height: 44px; margin: 0 0 12px; letter-spacing: 0; color: var(--g-text); }
.gsi-sub { font-size: 16px; line-height: 24px; color: var(--g-text); margin: 0 0 24px; }
.gsi-sub b { font-weight: 500; }
.gsi-r { padding-top: 6px; min-width: 0; }
@media (min-width: 840px) { .gsi-form { grid-template-columns: 1fr 1fr; } .gsi-r { padding-top: 24px; } }
.gf { position: relative; margin: 0 0 10px; }
.gf-in { width: 100%; height: 56px; padding: 16px 15px 0; background: transparent; color: var(--g-text); font: 16px var(--font);
  border: 1px solid var(--g-line); border-radius: 4px; outline: none; transition: border-color .15s; }
.gf-in:hover { border-color: var(--g-text); }
.gf-in:focus { border: 2px solid var(--g-pri); padding: 15px 14px 0; }
.gf label { position: absolute; inset-inline-start: 12px; top: 16px; padding: 0 4px; color: var(--g-sub); font-size: 16px; line-height: 24px;
  pointer-events: none; background: var(--g-card); transition: top .15s, font-size .15s, color .15s; max-width: calc(100% - 24px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gf-in { padding-top: 0; }
.gf-in:focus, .gf-in:not(:placeholder-shown) { padding-top: 0; }
.gf-in:focus + label, .gf-in:not(:placeholder-shown) + label { top: -10px; font-size: 12px; line-height: 20px; }
.gf-in:focus + label { color: var(--g-pri); }
.gf-in.bad { border: 2px solid var(--g-err); }
.gf-in.bad + label { color: var(--g-err); }
.gf-in:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px var(--g-card) inset; -webkit-text-fill-color: var(--g-text); }
.gsi-err { color: var(--g-err); font-size: 12px; margin: -4px 0 8px; }
.gsi-err::before { content: "\26A0\FE0E  "; }
.gsi-note, .gsi-hint { color: var(--g-sub); font-size: 14px; line-height: 20px; margin: 14px 0 0; }
.gsi-hint { font-size: 12px; margin: -4px 0 12px 16px; }
.gsi-note a { color: var(--g-link); font-weight: 500; }
.gsi-chk { display: flex; align-items: center; gap: 14px; margin: 6px 0 4px 2px; font-size: 14px; color: var(--g-text); cursor: pointer; }
.gsi-chk input { width: 18px; height: 18px; accent-color: var(--g-pri); margin: 0; }
.gsi-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 4px 10px 4px 4px; margin: 4px 0 24px; border: 1px solid var(--g-line);
  border-radius: 999px; background: transparent; color: var(--g-text); font: 500 14px var(--font); cursor: pointer; }
.gsi-chip:hover { background: var(--g-hover); }
.gsi-av { width: 24px; height: 24px; border-radius: 50%; background: var(--g-pri); color: var(--g-on-pri); display: grid; place-items: center; font-size: 13px; font-weight: 600; flex: none; }
.gsi-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gsi-act { display: flex; align-items: center; gap: 8px; margin-top: 32px; }
.gsi-sp { flex: 1; }
.gsi-btn { height: 40px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--g-pri); color: var(--g-on-pri); font: 500 14px var(--font);
  letter-spacing: .1px; cursor: pointer; transition: box-shadow .15s, filter .15s; }
.gsi-btn:hover { box-shadow: 0 1px 3px rgba(0,0,0,.3); filter: brightness(1.06); }
.gsi-btn:disabled { opacity: .6; cursor: default; }
.gsi-link { height: 40px; padding: 0 12px; margin-inline-start: -12px; border: 0; border-radius: 999px; background: transparent; color: var(--g-link);
  font: 500 14px var(--font); cursor: pointer; }
.gsi-link:hover { background: var(--g-hover); }
.gsi-link[hidden] { display: none; }
.gsi-msg { margin: 10px 0 0; font-size: 14px; color: var(--g-text); }
.gsi-msg.bad { color: var(--g-err); }
.gsi-alt { margin-top: 28px; }
.gsi-alt.off, .gsi-alt[hidden] { display: none; }
.gsi-or { display: flex; align-items: center; gap: 12px; color: var(--g-sub); font-size: 13px; margin: 0 0 16px; }
.gsi-or::before, .gsi-or::after { content: ""; flex: 1; height: 1px; background: var(--g-line); opacity: .5; }
.gsi .gbtn { display: flex; justify-content: center; min-height: 44px; }
.gsi .agree { font-size: 12px; margin-top: 20px; }
.gsi-foot { width: 100%; max-width: 1040px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 12px 8px 0; font-size: 12px; }
.gsi-foot nav { display: flex; gap: 4px; flex-wrap: wrap; }
.gsi-foot a { color: var(--g-sub); padding: 6px 10px; border-radius: 4px; }
.gsi-foot a:hover { background: var(--g-hover); text-decoration: none; }
.gsi-foot a[aria-current] { color: var(--g-text); font-weight: 500; }
.gsi-one { color: var(--g-sub); font-size: 12px; margin: 4px 0 0; opacity: .8; }
@media (max-width: 600px) {
  body.p-account:has(.gsi:not([hidden])) { background: var(--g-card); }
  body.p-account:has(.gsi:not([hidden])) .acc { padding: 0; }
  .gsi { justify-content: flex-start; padding: 0; }
  .gsi-card { border-radius: 0; padding: 24px 24px 28px; min-height: calc(100vh - 80px); }
  .gsi-form h1 { font-size: 28px; line-height: 36px; }
  .gsi-foot { padding: 8px 16px; }
}
