/* Hello World Plugins: the same black console and glass windows as the Hello World site. */

@font-face { font-family: "Inter HW"; src: url("../fonts/inter.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter HW"; src: url("../fonts/inter_semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cascadia HW"; src: url("../fonts/cascadia_mono.ttf") format("truetype"); font-display: swap; }

:root {
  --cmd-bg: #0c0c0c;
  --cmd-fg: #cccccc;
  --bg: #0c0c0c;
  --win: rgba(19, 19, 21, 0.78);
  --win-solid: #141416;
  --win-title: rgba(255, 255, 255, 0.025);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --line-3: rgba(255, 255, 255, 0.36);
  --fill: rgba(255, 255, 255, 0.045);
  --fill-2: rgba(255, 255, 255, 0.08);
  --fill-3: rgba(255, 255, 255, 0.13);
  --text: #f2f2f2;
  --text-2: #b9b9bb;
  --text-3: #8c8c8f;
  --primary: #f2f2f2;
  --on-primary: #0c0c0c;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.4);
  --ok: #16c60c;
  --err: #e74856;
  --ui: "Inter HW", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --mono: "Cascadia HW", "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 400 15px/1.55 var(--ui); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img, video, svg { display: block; max-width: 100%; }
::selection { background: var(--primary); color: var(--on-primary); }
:focus-visible { outline: 2px solid var(--line-3); outline-offset: 2px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }

/* ---- the console behind everything: shows only at the very end of the page ---- */
#cmd { position: fixed; inset: 0; z-index: 0; background: var(--cmd-bg); overflow: hidden; pointer-events: none; }
#cmd pre { position: absolute; left: 18px; right: 18px; bottom: 14px; margin: 0; font: 14px/1.42 var(--mono); color: var(--cmd-fg); white-space: pre-wrap; word-break: break-all; opacity: 0; filter: blur(.4px); transition: opacity 1.2s ease; }
#cmd.near-end pre { opacity: .1; }
#cmd .cur { display: inline-block; width: .6em; height: 2px; background: currentColor; vertical-align: -1px; animation: blink 1.06s steps(1) infinite; }
#cmd::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 20%, transparent 30%, var(--cmd-bg) 100%); }
@keyframes blink { 50% { opacity: 0; } }

.cmdbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; height: 32px; padding-left: 12px; background: color-mix(in srgb, var(--cmd-bg) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); font: 12px var(--ui); color: var(--text-2); user-select: none; }
.cmdbar .ico { width: 16px; height: 16px; margin-right: 10px; border-radius: 3px; background: #1e1e1e; border: 1px solid var(--line-2); position: relative; }
.cmdbar .ico::after { content: ">_"; position: absolute; inset: 0; font: 600 8px/14px var(--mono); color: #ddd; text-align: center; }
.cmdbar .t { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cmdbar .caps { display: flex; height: 100%; align-items: center; gap: 2px; padding-right: 4px; }
.cmdbar .caps span { width: 38px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: 13px; color: var(--text-2); transition: background-color .25s ease, color .25s ease; }
.cmdbar .caps span:not(:last-child):hover { background: var(--fill-2); }
.cmdbar .caps span:last-child:hover { background: rgba(232, 72, 72, .82); color: #fff; }

main, .nav, footer { position: relative; z-index: 1; }
.nav { z-index: 30; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---- header ---- */
.nav { position: sticky; top: 32px; padding: 12px 0; }
.nav .bar { display: flex; align-items: center; gap: 6px; padding: 7px 8px 7px 16px; border-radius: 14px; background: var(--win); backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; }
.nav .brand { display: flex; align-items: center; gap: 10px; margin-right: 14px; color: var(--text); }
.nav .brand svg { height: 17px; width: auto; }
.nav .brand .tag { font: 12px var(--mono); color: var(--text-3); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line); background: none; }
.nav .links { display: flex; gap: 2px; flex: 1; }
.nav .links a { padding: 7px 12px; border-radius: 9px; color: var(--text-2); font-size: 14px; transition: background .2s, color .2s; }
.nav .links a:hover { background: var(--fill); color: var(--text); }
.nav .links a.on { color: var(--text); background: var(--fill-2); }
.nav .side { display: flex; align-items: center; gap: 6px; }
.iconbtn { width: 36px; height: 36px; display: none; place-items: center; border-radius: 9px; border: 1px solid var(--line); background: var(--fill); color: var(--text-2); cursor: pointer; font-size: 17px; }

/* ---- buttons, fields ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--fill); color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s, transform .15s, opacity .2s; }
.btn:hover { background: var(--fill-2); border-color: var(--line-3); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.btn.primary:hover { opacity: .88; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 9px; }
.btn.lg { height: 48px; padding: 0 24px; font-size: 15px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn i { font-size: 17px; }

.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; color: var(--text-2); }
.input { width: 100%; height: 42px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--fill); outline: none; transition: border-color .2s, background .2s; }
textarea.input { height: auto; min-height: 130px; padding: 10px 14px; resize: vertical; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; background-repeat: no-repeat; background-position: right 16px center; background-size: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 256 256'%3E%3Cpath fill='none' stroke='%23b9b9bb' stroke-width='24' stroke-linecap='round' stroke-linejoin='round' d='M208 96l-80 80-80-80'/%3E%3C/svg%3E"); }
select.input option { background: var(--win-solid); color: var(--text); }
.input:focus { border-color: var(--line-3); background: var(--fill-2); }
.input.bad { border-color: var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--fill); border: 1px solid var(--line); gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 7px; color: var(--text-2); cursor: pointer; font-size: 13px; font-weight: 600; transition: background .2s, color .2s; }
.seg button.on { background: var(--primary); color: var(--on-primary); }

/* ---- windows ---- */
.win { position: relative; border-radius: 16px; background: var(--win); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.win > .tb { display: flex; align-items: center; gap: 10px; height: 38px; padding-left: 14px; border-bottom: 1px solid var(--line); background: var(--win-title); font-size: 12.5px; color: var(--text-2); user-select: none; }
.win > .tb i { font-size: 15px; }
.win > .tb .t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 12px; }
.win > .tb .caps { display: flex; gap: 2px; padding-right: 6px; }
.win > .tb .caps span { width: 32px; height: 24px; border-radius: 7px; display: grid; place-items: center; color: var(--text-3); font-size: 12px; }
.win > .bd { padding: 26px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

section { padding: 56px 0; }
.kicker { font-size: 13px; color: var(--text-3); letter-spacing: .04em; display: flex; align-items: center; gap: 8px; }
.kicker::before { content: ""; width: 18px; height: 1px; background: var(--line-3); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12; }
h3 { font-size: 18px; letter-spacing: -0.01em; }
p { margin: 0; }
.lead { color: var(--text-2); font-size: 16px; max-width: 640px; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.head > div { display: grid; gap: 12px; }
.sub { margin: 46px 0 18px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sub h3 { font-size: 22px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip2 { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px; background: var(--fill-2); border: 1px solid var(--line); font-size: 13px; color: var(--text-2); white-space: nowrap; }
.chip2 b { color: var(--text); font-weight: 600; }
.chip2 i { font-size: 15px; }
.tag { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 7px; background: var(--fill-2); font-size: 12px; color: var(--text-2); white-space: nowrap; }

/* ---- hero ---- */
.hero { padding: 54px 0 30px; }
.hero-logo { display: grid; gap: 22px; color: var(--text); justify-items: start; }
.hero-logo .logo { width: min(820px, 100%); }
.hero-logo .logo svg { width: 100%; height: auto; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 34px; align-items: center; margin-top: 40px; }
.hero-text { display: grid; gap: 20px; justify-items: start; }
.hero h1 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.06; }
.prompt { font: 13px var(--mono); color: var(--text-3); }
.prompt b { color: var(--text-2); font-weight: 400; }
.typed::after { content: "_"; animation: blink 1.06s steps(1) infinite; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.facts { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 40px; padding-top: 6px; border-top: 1px solid var(--line); }
.facts div { padding-top: 16px; }
.facts b { display: block; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.facts span { font-size: 13px; color: var(--text-3); }

/* ---- a render on a card: picture on top, short text below ---- */
.pv { border-radius: 16px; overflow: hidden; background: var(--win); backdrop-filter: blur(24px) saturate(140%); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pv .media { position: relative; aspect-ratio: 1 / 1; background: #15171a; overflow: hidden; cursor: zoom-in; }
.pv .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .3s ease; }
.pv:hover .media img { transform: scale(1.035); }
.pv .media .badge { position: absolute; left: 12px; top: 12px; padding: 5px 10px; border-radius: 8px; font-size: 12px; background: rgba(10, 10, 12, .62); color: #f2f2f2; backdrop-filter: blur(8px); display: flex; align-items: center; gap: 6px; }
.pv .info { padding: 14px 16px 16px; display: grid; gap: 2px; }
.pv .info b { font-weight: 600; }
.pv .info span { font-size: 13px; color: var(--text-3); }
.hero .pv .media { aspect-ratio: 1 / 0.9; }

/* ---- plugins ---- */
.plugins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plug { display: flex; flex-direction: column; }
.plug .bd { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.plug .top { display: flex; align-items: center; gap: 12px; }
.plug .top > i { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--fill-2); border: 1px solid var(--line); font-size: 21px; }
.plug .top b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.plug .top .v { font: 12px var(--mono); color: var(--text-3); }
.plug p { color: var(--text-2); font-size: 14px; flex: 1; }
.plug .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.plug .foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); flex-wrap: wrap; }
.plug .author { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.plug .author b { color: var(--text); font-weight: 600; }
.plug .author i { font-size: 15px; }
.plug .cmds { font: 12px var(--mono); color: var(--text-3); flex: 1 1 140px; min-width: 0; text-align: right; overflow-wrap: anywhere; }

/* ---- services, process ---- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.svc .bd { padding: 22px; display: grid; gap: 10px; align-content: start; }
.svc .bd > i { font-size: 24px; color: var(--text); }
.svc p { color: var(--text-2); font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li .bd { padding: 22px; display: grid; gap: 8px; align-content: start; }
.steps li { counter-increment: s; }
.steps li .bd::before { content: counter(s); width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--fill-2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.steps p { color: var(--text-2); font-size: 14px; }

/* ---- order ---- */
.order .bd { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; padding: clamp(24px, 4vw, 44px); }
.order .copy { display: grid; gap: 16px; align-content: start; }
.checks { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; color: var(--text-2); font-size: 14.5px; }
.checks li { display: flex; gap: 10px; align-items: center; }
.checks i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: var(--fill-2); color: var(--text); font-size: 13px; }
.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); gap: 12px; }
.form-msg { font-size: 13.5px; color: var(--text-2); min-height: 1.2em; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--err); }

/* ---- footer ---- */
footer { padding: 40px 0 70px; color: var(--text-3); font-size: 13px; }
footer .row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); padding-top: 22px; }
footer .brand { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
footer .brand svg { height: 14px; width: auto; color: var(--text); }
footer .links { display: flex; gap: 16px; flex-wrap: wrap; }
footer a:hover { color: var(--text); }

/* ---- lightbox ---- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 30px; background: rgba(6, 6, 8, .88); backdrop-filter: blur(14px); cursor: zoom-out; animation: fade .25s ease; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(92vw, 1000px); max-height: 82vh; border-radius: 14px; box-shadow: var(--shadow); }
.lightbox p { color: var(--text-2); font-size: 14px; text-align: center; }
@keyframes fade { from { opacity: 0; } }

/* ---- header extras ---- */
.btn.ghost { background: none; border-color: transparent; }
.btn.ghost:hover { background: var(--fill); }
.btn.danger:hover { background: rgba(231, 72, 86, .18); border-color: rgba(231, 72, 86, .6); }
.langsel { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 8px; border-radius: 9px; color: var(--text-2); cursor: pointer; }
.langsel:hover { background: var(--fill); }
.langsel select { appearance: none; -webkit-appearance: none; border: 0; background: none; font-size: 12.5px; font-weight: 600; cursor: pointer; outline: none; padding: 0; }
.langsel select option { background: var(--win-solid); }
.bal { height: 36px; padding: 0 12px; }
.bal:hover { border-color: var(--line-3); }
.iconbtn2 { position: relative; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; color: var(--text-2); font-size: 19px; transition: background .2s, color .2s; }
.iconbtn2:hover { background: var(--fill); color: var(--text); }
.badge[hidden] { display: none; }
.iconbtn2 .badge, .chat-item .badge { min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--primary); color: var(--on-primary); font: 600 10.5px/17px var(--ui); text-align: center; }
.iconbtn2 .badge { position: absolute; top: 1px; right: -1px; }
.dd { position: relative; }
.dd .nm { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.dd .menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; padding: 6px; border-radius: 12px; background: var(--win-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow); display: none; z-index: 50; }
.dd.open .menu { display: grid; animation: fade .15s ease; }
.dd .menu a, .dd .menu button { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; border: 0; background: none; color: var(--text-2); font-size: 14px; text-align: left; cursor: pointer; }
.dd .menu a:hover, .dd .menu button:hover { background: var(--fill-2); color: var(--text); }
.dd .menu i { font-size: 17px; }
.only-m { display: none; }

/* ---- hero reel: every plugin in turn ---- */
.reel .media { display: block; position: relative; aspect-ratio: 6 / 5; cursor: pointer; }
.reel .media img { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease, transform 1.2s var(--ease); }
.reel .media img.on { opacity: 1; }
.reel .info { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.reel .info > span { font-size: 13.5px; color: var(--text-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dots { display: flex; gap: 5px; flex: none; }
.dots button { width: 7px; height: 7px; padding: 0; border-radius: 50%; border: 0; background: var(--fill-3); cursor: pointer; transition: background .2s, transform .2s; }
.dots button.on { background: var(--text); transform: scale(1.25); }

/* ---- plugin cards with a picture ---- */
a.plug { color: inherit; transition: border-color .25s, transform .35s var(--ease); }
a.plug:hover { border-color: var(--line-2); transform: translateY(-3px); }
.plug .media { position: relative; aspect-ratio: 6 / 5; overflow: hidden; background: #15171a; border-bottom: 1px solid var(--line); }
.plug .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
a.plug:hover .media img { transform: scale(1.04); }
.plug .media .badge, .pv .media .badge { position: absolute; left: 12px; top: 12px; padding: 5px 10px; border-radius: 8px; font-size: 12px; background: rgba(10, 10, 12, .62); color: #f2f2f2; backdrop-filter: blur(8px); display: flex; align-items: center; gap: 6px; }
.plug .more { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; }

/* ---- order ---- */
.order .bd { align-items: start; }
.count { font-size: 12.5px; color: var(--text-3); justify-self: end; transition: color .2s; }
.count.ok { color: var(--ok); }
details.more { border: 1px solid var(--line); border-radius: 12px; background: var(--fill); }
details.more summary { list-style: none; cursor: pointer; padding: 11px 14px; font-size: 14px; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary i { transition: transform .2s; }
details.more[open] summary i { transform: rotate(90deg); }
details.more > .form { padding: 0 14px 14px; }
.gate { display: grid; gap: 16px; justify-items: start; align-content: center; padding: 28px; border-radius: 14px; background: var(--fill); border: 1px dashed var(--line-2); min-height: 100%; }
.gate > i { font-size: 34px; }
.gate p { color: var(--text-2); font-size: 15px; }
.botline { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--fill); border: 1px solid var(--line); color: var(--text-2); font-size: 13.5px; }
.botline i { font-size: 20px; color: var(--text); }

/* ---- pages ---- */
.page { padding: 34px 0 60px; min-height: calc(100vh - 260px); }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14px; margin-bottom: 18px; }
.back:hover { color: var(--text); }
.empty { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 40px 20px; }
.empty > i { font-size: 38px; color: var(--text-3); }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--fill); border: 1px solid var(--line); color: var(--text-2); font-size: 14px; }
.note i { font-size: 18px; color: var(--text); margin-top: 1px; }
.note.warn { border-color: rgba(249, 241, 165, .25); }
.small { font-size: 12.5px; }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.okc { color: var(--ok); }
.lbl { font-size: 13px; color: var(--text-2); }
.inline { display: flex; gap: 8px; }
.inline .input { flex: 1; min-width: 0; }
.input.sm { height: 34px; padding: 0 30px 0 10px; font-size: 13px; width: auto; background-position: right 10px center; }
.tag.ok { color: var(--ok); }
.tag.err { color: var(--err); }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 120; padding: 11px 18px; border-radius: 12px; background: var(--win-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 14px; animation: fade .2s ease; max-width: calc(100% - 32px); }
.toast.ok { border-color: rgba(22, 198, 12, .5); }
.toast.err { border-color: rgba(231, 72, 86, .6); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-weight: 600; font-size: 12px; color: var(--text-3); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.mono { color: var(--text); font-size: 12.5px; }
.tbl td b { color: var(--text); font-weight: 600; }
.tbl .num { text-align: right; white-space: nowrap; font-family: var(--mono); color: var(--text); }
.tbl .plus { color: var(--ok); }
.tbl .minus { color: var(--err); }
.tbl.click tr[data-href] { cursor: pointer; }
.tbl.click tr[data-href]:hover td { background: var(--fill); }
.tbl tr.banned td { opacity: .55; }
.win.flat > .bd { padding: 8px 10px; overflow-x: auto; }
.win .bd > h3 { margin-bottom: 14px; }
.linkbtn { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.linkbtn:hover { text-decoration: underline; }

/* ---- plugin page ---- */
.pp { padding: 30px 0 60px; }
.pp-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; align-items: start; }
.pp-head .pv .media { aspect-ratio: 6 / 5; }
.pp-head .pv .media img { transition: opacity .3s ease, transform 1.2s var(--ease); }
.pv .info.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pp-info .bd { display: grid; gap: 16px; }
.pp-info .top { display: flex; gap: 14px; align-items: center; }
.pp-info .top i.big { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: var(--fill-2); border: 1px solid var(--line); font-size: 27px; flex: none; }
.pp-info h1 { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; }
.pp-info .v { font: 13px var(--mono); color: var(--text-3); }
.pp-info .tags, .deps .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.deps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.deps > div { display: grid; gap: 8px; align-content: start; font-size: 13px; }
.pp-sec { margin-top: 18px; }
.about { color: var(--text-2); font-size: 15.5px; line-height: 1.65; max-width: 900px; }
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feat .bd { padding: 20px; display: grid; gap: 8px; align-content: start; }
.feat .n { font: 12px var(--mono); color: var(--text-3); }
.feat h3 { font-size: 16px; }
.feat p { color: var(--text-2); font-size: 14px; }
.pp-tables { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; margin-top: 46px; align-items: start; }
.stack { display: grid; gap: 14px; }

/* test panel */
.test { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.test .copy { display: grid; gap: 12px; align-content: start; }
.test .state { display: grid; gap: 14px; align-content: start; }
.limits { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--text-3); }
.limits i { margin-top: 2px; }
.load { display: flex; align-items: center; gap: 5px; margin-top: 6px; }
.load span { width: 26px; height: 8px; border-radius: 4px; background: var(--fill-3); }
.load span.on { background: var(--ok); box-shadow: 0 0 10px rgba(22, 198, 12, .5); }
.load em { font-style: normal; font-size: 12.5px; color: var(--text-3); margin-left: 6px; }
.runstate { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--fill); border: 1px solid var(--line); }
.runstate div { display: grid; gap: 2px; }
.runstate.ok { border-color: rgba(22, 198, 12, .45); }
.runstate.ok > i { font-size: 26px; color: var(--ok); }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--fill-3); border-top-color: var(--text); animation: spin .9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.addr { display: flex; gap: 8px; align-items: center; }
.addr code { flex: 1; padding: 10px 14px; border-radius: 10px; background: #0a0a0b; border: 1px solid var(--line-2); font: 16px var(--mono); }

/* in-game menus */
.menus { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.mc { --s: 38px; padding: 10px 12px 12px; background: #c6c6c6; border-radius: 6px; box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #555, 0 20px 50px -20px rgba(0, 0, 0, .9); font-family: var(--mono); max-width: 100%; }
.mc-title { color: #404040; font-size: 13px; margin: 0 0 8px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(var(--s) * 9); }
.mc .grid { display: grid; grid-template-columns: repeat(9, var(--s)); }
.slot { width: var(--s); height: var(--s); background: #8b8b8b; box-shadow: inset 2px 2px 0 #373737, inset -2px -2px 0 #fff; display: grid; place-items: center; }
.slot img { width: 76%; height: 76%; image-rendering: pixelated; pointer-events: none; }
.slot[data-tip] { cursor: pointer; }
.slot[data-tip]:hover { background: #a3a3a3; }
.mc.anvil .anv { display: flex; align-items: center; gap: 14px; padding: 6px 4px; color: #404040; font-size: 20px; }
.mctip { position: fixed; z-index: 140; pointer-events: none; max-width: 340px; padding: 6px 9px; background: rgba(16, 0, 16, .94); border: 2px solid #28007a; border-radius: 4px; outline: 1px solid #100010; font: 13.5px/1.45 var(--mono); color: #fff; text-shadow: 2px 2px 0 rgba(0, 0, 0, .55); }
.mctip[hidden] { display: none; }
.mctip .n { margin-bottom: 3px; }

/* ---- sign in ---- */
.auth .wrap { display: grid; place-items: center; }
.auth-win { width: min(460px, 100%); }
.auth-win .bd { display: grid; gap: 14px; }
.auth-win .switch { font-size: 14px; }
.auth-win .switch a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---- account ---- */
.acc-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: start; }
.acc-grid .col { display: grid; gap: 16px; }
.wallets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
.wallet { position: relative; display: grid; gap: 4px; text-align: left; padding: 14px 16px; border-radius: 12px; background: var(--fill); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s; }
.wallets.static .wallet { cursor: default; }
.wallet:hover { border-color: var(--line-2); }
.wallet.on { border-color: var(--line-3); background: var(--fill-2); }
.wallet span { font: 12px var(--mono); color: var(--text-3); }
.wallet b { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.wallet em { position: absolute; top: 12px; right: 12px; font-style: normal; font-size: 11px; color: var(--text-2); padding: 2px 7px; border-radius: 6px; background: var(--fill-2); }
.redeem { display: grid; gap: 8px; }
.tfa { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); justify-items: start; }
.tfa .inline { width: 100%; max-width: 320px; }
.secret { display: flex; gap: 8px; align-items: center; }
.secret code { padding: 8px 12px; border-radius: 9px; background: #0a0a0b; border: 1px solid var(--line-2); font: 14px var(--mono); letter-spacing: .04em; }
.settings .win { margin-bottom: 0; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--text-2); cursor: pointer; margin-bottom: 12px; }
.check input { width: 17px; height: 17px; accent-color: #f2f2f2; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 16px; font-size: 14px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; color: var(--text); }

/* ---- messenger ---- */
.chatpage { padding-bottom: 30px; }
.chat-app > .bd, .chat-bd { display: grid; grid-template-columns: 320px 1fr; height: min(74vh, 780px); min-height: 460px; }
.chat-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.chat-list-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--line); }
.chat-list-head b { flex: 1; }
.switch { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.switch input { accent-color: #f2f2f2; }
.list { overflow-y: auto; flex: 1; padding: 6px; }
.pad { padding: 14px; }
.chat-item { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; padding: 11px 10px; border-radius: 10px; color: inherit; transition: background .2s; }
.chat-item:hover { background: var(--fill); }
.chat-item.on { background: var(--fill-2); }
.chat-item.closed { opacity: .6; }
.chat-item > i { font-size: 18px; color: var(--text-2); margin-top: 1px; }
.chat-item > div { display: grid; gap: 2px; min-width: 0; }
.chat-item b { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item .who { font-size: 12px; color: var(--text-2); }
.chat-item .last { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item .side { display: grid; gap: 4px; justify-items: end; align-content: start; }
.chat-item .time { font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.chat-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.chat-main .empty { margin: auto; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat-head > div:nth-child(2) { flex: 1; display: grid; min-width: 0; }
.chat-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-head .dim { font-size: 12.5px; }
.back-m { display: none; }
details.req { margin: 10px 16px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--fill); font-size: 13.5px; }
details.req summary { cursor: pointer; padding: 9px 12px; color: var(--text-2); display: flex; gap: 8px; align-items: center; }
details.req dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; padding: 0 12px 12px; }
details.req dt { color: var(--text-3); }
details.req dd { margin: 0; }
.msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.day { text-align: center; font-size: 12px; color: var(--text-3); margin: 6px 0; }
.day span { padding: 3px 10px; border-radius: 8px; background: var(--fill); }
.msg { max-width: min(640px, 82%); align-self: flex-start; display: grid; gap: 4px; }
.msg.mine { align-self: flex-end; }
.msg .meta { display: flex; gap: 7px; align-items: center; font-size: 12px; color: var(--text-3); }
.msg.mine .meta { justify-content: flex-end; }
.msg .meta b { color: var(--text-2); font-weight: 600; }
.msg .meta .tag { padding: 1px 6px; font-size: 11px; }
.msg .body { padding: 10px 14px; border-radius: 14px; border-top-left-radius: 5px; background: var(--fill-2); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.5; }
.msg.mine .body { background: var(--primary); color: var(--on-primary); border-color: transparent; border-radius: 14px; border-top-right-radius: 5px; }
.msg.bot .body { background: transparent; border-style: dashed; border-color: var(--line-2); color: var(--text-2); }
.msg.staff:not(.mine) .body { border-color: var(--line-3); }
.msg .body a { text-decoration: underline; }
.typing { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); }
.dots3 { display: inline-flex; gap: 3px; }
.dots3 i { width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); animation: dot 1.2s infinite ease-in-out; }
.dots3 i:nth-child(2) { animation-delay: .15s; }
.dots3 i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.composer textarea { min-height: 44px; max-height: 200px; height: 44px; resize: none; padding: 11px 14px; }
.composer .btn { height: 44px; width: 48px; padding: 0; }
.newchat { padding: 18px; }

/* ---- admin ---- */
.adm-grid { display: grid; grid-template-columns: 210px 1fr; gap: 18px; align-items: start; }
.adm-tabs { display: grid; gap: 2px; position: sticky; top: 110px; padding: 6px; border-radius: 14px; background: var(--win); border: 1px solid var(--line); backdrop-filter: blur(20px); }
.adm-tabs a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 9px; color: var(--text-2); font-size: 14px; }
.adm-tabs a:hover { background: var(--fill); color: var(--text); }
.adm-tabs a.on { background: var(--fill-2); color: var(--text); }
.adm-tabs i { font-size: 17px; }
.adm-body { display: grid; gap: 16px; min-width: 0; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.toolbar .input { flex: 1; min-width: 200px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tiles.two { grid-template-columns: 1fr 1fr; }
.tile { color: inherit; }
.tile .bd { padding: 18px; display: grid; gap: 4px; }
.tile i { font-size: 22px; margin-bottom: 6px; }
.tile b { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.tiles.two .tile b { font-size: 17px; }
a.tile:hover { border-color: var(--line-2); }
.tag .x { border: 0; background: none; color: var(--text-3); cursor: pointer; padding: 0 0 0 4px; font-size: 14px; line-height: 1; }
.tag .x:hover { color: var(--err); }

/* ---- small screens ---- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .plugins, .services { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
  .order .bd { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .pp-head, .pp-tables, .test, .acc-grid { grid-template-columns: 1fr; }
  .feats { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .adm-grid { grid-template-columns: 1fr; }
  .adm-tabs { position: static; display: flex; overflow-x: auto; }
  .adm-tabs a { white-space: nowrap; }
  .bal, .dd .nm { display: none; }
}
@media (max-width: 760px) {
  .only-m { display: block; }
  .hide-m { display: none; }
  .feats, .tiles, .tiles.two, .deps, .wallets { grid-template-columns: 1fr; }
  .mc { --s: calc((100vw - 74px) / 9); }
  .chat-bd { grid-template-columns: 1fr; height: calc(100vh - 190px); }
  .chat-app.has-chat .chat-list { display: none; }
  .chat-app:not(.has-chat) .chat-main { display: none; }
  .chat-list { border-right: 0; }
  .back-m { display: grid; }
  .msg { max-width: 92%; }
  .langsel i { display: none; }
  .nav .links { display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; flex-direction: column; padding: 8px; border-radius: 14px; background: var(--win-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
  .nav.open .links { display: flex; }
  .iconbtn { display: grid; order: 9; }
  .nav .brand .tag { display: none; }
  .plugins, .services, .steps { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .win > .bd { padding: 18px; }
  section { padding: 40px 0; }
  .cmdbar .caps span { width: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
