/*
 * SEO Tools One — dashboard shell (sidebar, topbar, content), shared dashboard
 * pieces (tiles, tables, forms) and the log-in / sign-up pages.
 * Page components (cards, inputs, buttons, the SEO report) live in checker.css.
 */

:root {
	--sto-bg: #f5f7fb;
	--sto-surface: #ffffff;
	--sto-ink: #0f172a;
	--sto-ink-2: #334155;
	--sto-muted: #64748b;
	--sto-faint: #94a3b8;
	--sto-line: #e4e9f1;
	--sto-line-soft: #eef2f7;
	--sto-blue: #2563eb;
	--sto-blue-d: #1d4ed8;
	--sto-blue-soft: #eef4ff;
	--sto-green: #0e9f6e;
	--sto-red: #dc2626;
	--sto-side-w: 248px;
	--sto-radius: 12px;
	--sto-font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--sto-display: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

/* ═══════════════ Base ═══════════════ */

body.sto-body {
	margin: 0;
	background: var(--sto-bg);
	color: var(--sto-ink);
	font-family: var(--sto-font);
	font-size: 14px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body.sto-body *,
body.sto-body *::before,
body.sto-body *::after {
	box-sizing: border-box;
}

.sto-icon {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
}

.zsw2-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* The hidden attribute always wins (card and grid rules set display). */
.sto-app [hidden],
.sto-auth [hidden] {
	display: none !important;
}

/* Brand */
.sto-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--sto-ink);
	font-family: var(--sto-display);
	font-size: 17px;
	font-weight: 800;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.sto-logo .sto-mark {
	width: 32px;
	height: 32px;
	flex: 0 0 auto;
}

.sto-logo.is-light {
	color: #fff;
}

.sto-logo__img {
	display: block;
	max-height: 36px;
	width: auto;
}

/* ═══════════════ Shell ═══════════════ */

.sto-app {
	display: grid;
	grid-template-columns: var(--sto-side-w) minmax(0, 1fr);
	min-height: 100vh;
	background: linear-gradient(90deg, var(--sto-surface) 0, var(--sto-surface) calc(var(--sto-side-w) - 1px), var(--sto-line) calc(var(--sto-side-w) - 1px), var(--sto-line) var(--sto-side-w), transparent var(--sto-side-w));
}

.sto-app__main {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.sto-app__content {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 26px 28px 56px;
}

.sto-app__scrim {
	display: none;
}

/* Sidebar */
.sto-side {
	position: sticky;
	top: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	height: 100vh;
	padding: 18px 14px 16px;
	overflow-y: auto;
	background: var(--sto-surface);
	border-right: 1px solid var(--sto-line);
}

.sto-side__brand {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px;
	padding: 2px 6px 10px;
}

.sto-side__role {
	grid-column: 1;
	grid-row: 2;
	justify-self: start;
}

.sto-side__close {
	grid-column: 2;
	grid-row: 1;
}

.sto-side__logo {
	min-width: 0;
	overflow: hidden;
	text-decoration: none;
}

.sto-side__role {
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--sto-blue-soft);
	color: var(--sto-blue);
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.sto-side__close {
	display: none;
	margin-left: auto;
	padding: 6px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--sto-muted);
	cursor: pointer;
}

.sto-nav {
	display: flex;
	flex: 1 0 auto;
	flex-direction: column;
}

.sto-nav ul {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sto-nav__group {
	margin: 18px 10px 6px;
	color: var(--sto-faint);
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sto-nav__link {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 9px 11px;
	border-radius: 9px;
	color: var(--sto-ink-2);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.sto-nav__link .sto-icon {
	width: 19px;
	height: 19px;
	color: var(--sto-faint);
	transition: color 0.15s ease;
}

.sto-nav__link:hover {
	background: #f3f6fa;
	color: var(--sto-ink);
}

.sto-nav__link:hover .sto-icon {
	color: var(--sto-ink-2);
}

.sto-nav__link.is-active {
	background: var(--sto-blue-soft);
	color: var(--sto-blue);
}

.sto-nav__link.is-active .sto-icon {
	color: var(--sto-blue);
}

.sto-nav__link:focus-visible,
.sto-pill:focus-visible,
.sto-user__btn:focus-visible {
	outline: 2px solid var(--sto-blue);
	outline-offset: 2px;
}

.sto-nav__end {
	margin-top: auto !important;
	padding-top: 12px !important;
}

.sto-side__card {
	padding: 16px;
	border-radius: 14px;
	background: linear-gradient(155deg, #1e3a8a 0%, #2563eb 100%);
	color: #fff;
}

.sto-side__card-t {
	margin: 0 0 4px;
	font-family: var(--sto-display);
	font-size: 14px;
	font-weight: 800;
}

.sto-side__card-s {
	margin: 0 0 12px;
	color: rgba(255, 255, 255, 0.8);
	font-size: 12.5px;
	line-height: 1.45;
}

.sto-side__card-btn {
	display: inline-flex;
	padding: 8px 12px;
	border-radius: 8px;
	background: #fff;
	color: var(--sto-blue-d);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

/* Topbar */
.sto-top {
	position: sticky;
	top: 0;
	z-index: 30;
	display: flex;
	align-items: center;
	gap: 14px;
	height: 64px;
	padding: 0 28px;
	background: rgba(245, 247, 251, 0.88);
	border-bottom: 1px solid var(--sto-line);
	-webkit-backdrop-filter: saturate(140%) blur(8px);
	backdrop-filter: saturate(140%) blur(8px);
}

.sto-top__menu,
.sto-top__logo {
	display: none;
}

.sto-top__menu {
	padding: 8px;
	border: 1px solid var(--sto-line);
	border-radius: 10px;
	background: #fff;
	color: var(--sto-ink);
	cursor: pointer;
}

.sto-top__logo .sto-mark {
	display: block;
	width: 30px;
	height: 30px;
}

.sto-top__search {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	gap: 8px;
	max-width: 440px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--sto-line);
	border-radius: 10px;
	background: #fff;
	color: var(--sto-faint);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sto-top__search:focus-within {
	border-color: var(--sto-blue);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.sto-top__search .sto-icon {
	width: 18px;
	height: 18px;
}

.sto-top__search input {
	flex: 1 1 auto;
	min-width: 0;
	height: 38px;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--sto-ink);
	font: inherit;
	font-size: 14px;
}

.sto-top__search input::placeholder {
	color: var(--sto-faint);
}

.sto-top__spacer {
	flex: 1 1 auto;
}

.sto-top__end {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

.sto-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 36px;
	padding: 0 12px;
	border: 1px solid var(--sto-line);
	border-radius: 999px;
	background: #fff;
	color: var(--sto-ink);
	font-size: 13.5px;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color 0.15s ease;
}

.sto-pill:hover {
	border-color: #c9d6ea;
}

.sto-pill .sto-icon {
	width: 17px;
	height: 17px;
	color: var(--sto-blue);
}

.sto-pill--wallet .sto-icon {
	color: var(--sto-green);
}

.sto-pill b {
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.sto-pill__k {
	color: var(--sto-muted);
}

/* Account menu */
.sto-user {
	position: relative;
}

.sto-user > summary {
	list-style: none;
}

.sto-user > summary::-webkit-details-marker {
	display: none;
}

.sto-user__btn {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 3px 8px 3px 3px;
	border-radius: 999px;
	cursor: pointer;
}

.sto-user__btn:hover {
	background: #fff;
}

.sto-user__av {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
}

.sto-user__txt {
	display: flex;
	flex-direction: column;
	max-width: 180px;
	line-height: 1.25;
}

.sto-user__txt b,
.sto-user__txt small {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sto-user__txt b {
	font-size: 13.5px;
}

.sto-user__txt small {
	color: var(--sto-muted);
	font-size: 12px;
}

.sto-user__menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 40;
	min-width: 210px;
	padding: 6px;
	border: 1px solid var(--sto-line);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 18px 40px -16px rgba(15, 23, 42, 0.28);
}

.sto-user__menu a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	border-radius: 8px;
	color: var(--sto-ink-2);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.sto-user__menu a .sto-icon {
	width: 17px;
	height: 17px;
	color: var(--sto-faint);
}

.sto-user__menu a:hover {
	background: #f3f6fa;
	color: var(--sto-ink);
}

.sto-user__menu a.is-danger,
.sto-user__menu a.is-danger .sto-icon {
	color: var(--sto-red);
}

/* Notices (log in, sign up, profile) */
.sto-notice {
	margin: 0 0 16px;
	padding: 11px 14px;
	border: 1px solid #bfdbfe;
	border-radius: 10px;
	background: #eff6ff;
	color: #1e3a8a;
	font-size: 13.5px;
	line-height: 1.5;
}

.sto-notice ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sto-notice li + li {
	margin-top: 4px;
}

.sto-notice a {
	color: inherit;
	font-weight: 700;
}

.sto-notice--ok {
	border-color: #bbf7d0;
	background: #f0fdf4;
	color: #166534;
}

.sto-notice--err {
	border-color: #fecaca;
	background: #fef2f2;
	color: #991b1b;
}

/* Show / hide password */
.sto-pass {
	position: relative;
	display: block;
	width: 100%;
}

.sto-pass > input {
	padding-right: 46px !important;
}

.sto-pass__eye {
	position: absolute;
	top: 50%;
	right: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--sto-muted);
	cursor: pointer;
	transform: translateY(-50%);
}

.sto-pass__eye:hover {
	color: var(--sto-ink);
}

.sto-pass__eye:focus-visible {
	outline: 2px solid var(--sto-blue);
	outline-offset: 0;
}

.sto-pass__eye svg {
	width: 18px;
	height: 18px;
}

/* ═══════════════ Dashboard pieces ═══════════════ */

.sto-page {
	gap: 16px;
}

.sto-page .zt-seo-top {
	margin-bottom: 4px;
}

.zt-seo .zt-field > label > span {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--zsw2-ink);
}

/* Overview tiles */
.sto-tiles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.sto-tiles--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sto-tile {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 18px;
	color: inherit;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

a.sto-tile:hover {
	border-color: #c9d6ea;
	box-shadow: 0 10px 24px -16px rgba(19, 43, 87, 0.35);
	transform: translateY(-1px);
}

.sto-tile__ic {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	margin-bottom: 10px;
	border-radius: 10px;
}

.sto-tile__ic .sto-icon {
	width: 20px;
	height: 20px;
}

.sto-tile__ic--blue { background: #eef4ff; color: #2563eb; }
.sto-tile__ic--green { background: #e9f9f1; color: #0e9f6e; }
.sto-tile__ic--violet { background: #f3edff; color: #7c3aed; }
.sto-tile__ic--amber { background: #fff4e5; color: #d97706; }

.sto-tile__k {
	color: var(--sto-muted);
	font-size: 13px;
	font-weight: 600;
}

.sto-tile__v {
	color: var(--sto-ink);
	font-family: var(--sto-display);
	font-size: 27px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.25;
	font-variant-numeric: tabular-nums;
}

.sto-tile__s {
	color: var(--sto-muted);
	font-size: 12.5px;
}

/* Overview search */
.sto-hero-search {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
	box-shadow: 0 1px 2px rgba(19, 43, 87, 0.04), 0 10px 26px -16px rgba(19, 43, 87, 0.16);
}

.sto-hero-search .zt-seo-btn {
	padding: 12px 20px;
}

.sto-hero-search__note {
	color: var(--sto-muted);
	font-size: 12.5px;
}

.sto-callout {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 18px;
	border-color: #fed7aa;
	background: #fffbf5;
}

.sto-callout b {
	font-size: 15px;
}

.sto-callout p {
	margin-top: 2px !important;
	color: var(--sto-muted);
	font-size: 13px;
}

/* Tables */
.zt-seo table.sto-table {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	table-layout: auto;
}

.zt-seo table.sto-table td small {
	max-width: 240px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.zt-seo table.sto-table .zt-ledger__date,
.zt-seo table.sto-table .zt-kind {
	white-space: nowrap;
}

.zt-seo a.zt-btn-ghost {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.zt-seo .zt-field > label {
	display: block;
	margin: 0;
	line-height: 1.5;
}

.zt-seo .zt-field > span {
	line-height: 1.5;
}

.zt-seo table.sto-table th {
	padding: 9px 12px;
	border-bottom: 1px solid var(--sto-line);
	color: #7c8aa5;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-align: left;
	text-transform: uppercase;
	white-space: nowrap;
}

.zt-seo table.sto-table td {
	padding: 11px 12px;
	border-bottom: 1px solid var(--sto-line-soft);
	font-size: 13.5px;
	vertical-align: middle;
}

.zt-seo table.sto-table tbody tr:last-child td {
	border-bottom: 0;
}

.zt-seo table.sto-table .zsw2-ctable__num {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.sto-table__domain {
	font-weight: 700;
	white-space: nowrap;
}

.zt-seo table.sto-table .zt-ledger__note {
	min-width: 170px;
}

.sto-table__go {
	text-align: right;
	white-space: nowrap;
}

.sto-table__go a {
	color: var(--sto-blue);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.zt-kind--check { background: #eef2ff; color: #4338ca; }
.zt-kind--topup { background: #dcfce7; color: #15803d; }

/* Customers: manage row */
.sto-search {
	align-items: center;
}

.sto-search .zt-input {
	max-width: 360px;
}

.sto-search__clear {
	color: var(--sto-muted);
	font-size: 13px;
	font-weight: 600;
}

.sto-adjust-row {
	display: none;
}

.sto-adjust-row.is-open,
.sto-adjust-row:target {
	display: table-row;
}

.sto-adjust-row > td {
	background: #f8fafd;
}

.sto-adjust {
	display: flex;
	align-items: flex-end;
	gap: 10px 12px;
	flex-wrap: wrap;
	padding: 6px 2px;
}

/* Merchant overview */
.sto-setup {
	border-color: #c7d7fe;
	background: linear-gradient(180deg, #f7f9ff 0%, #fff 100%);
}

.sto-steps {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sto-steps li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 600;
}

.sto-steps a {
	color: var(--sto-blue);
	text-decoration: none;
}

.sto-steps li.is-done {
	color: var(--sto-muted);
	text-decoration: line-through;
}

.sto-steps__dot {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 22px;
	height: 22px;
	border: 2px solid #c7d2fe;
	border-radius: 50%;
	color: #fff;
}

.is-done .sto-steps__dot {
	border-color: var(--sto-green);
	background: var(--sto-green);
}

.sto-steps__dot .sto-icon {
	width: 13px;
	height: 13px;
}

.sto-apis {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.sto-api {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border: 1px solid var(--sto-line);
	border-radius: 10px;
}

.sto-api__txt {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

.sto-api__txt small {
	color: var(--sto-muted);
	font-size: 12px;
}

.sto-api .zt-state {
	max-width: 120px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sto-two {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 14px;
	align-items: start;
}

.sto-links {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 12px;
}

.sto-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px;
	color: var(--sto-ink);
	text-decoration: none;
}

.sto-link .sto-tile__ic {
	margin: 0;
}

/* Forms */
.sto-stack {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.sto-fields-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.sto-field-wide {
	width: 100%;
}

.zt-seo .sto-textarea {
	min-height: 92px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 12.5px;
	resize: vertical;
}

.sto-saved {
	display: flex;
	align-items: center;
	gap: 10px;
}

.sto-copy {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px 12px;
	border: 1px dashed #c9d6ea;
	border-radius: 10px;
	background: #f8fafd;
	font-size: 12.5px;
	color: var(--sto-muted);
}

.sto-copy code {
	color: var(--sto-ink);
	font-size: 12.5px;
	word-break: break-all;
	user-select: all;
}

.sto-tier-edit {
	display: grid;
	gap: 8px;
	max-width: 420px;
}

.sto-tier-edit__head,
.sto-tier-edit__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 120px;
	gap: 8px;
}

.sto-tier-edit__head span {
	color: #7c8aa5;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.sto-log {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sto-log li {
	display: grid;
	grid-template-columns: 70px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: baseline;
	padding: 9px 2px;
	border-bottom: 1px solid var(--sto-line-soft);
	font-size: 13px;
}

.sto-log li:last-child {
	border-bottom: 0;
}

.sto-log__g {
	font-weight: 700;
}

.sto-log li.is-err .sto-log__g {
	color: var(--sto-red);
}

.sto-log li.is-ok .sto-log__g {
	color: var(--sto-green);
}

.sto-log__t {
	color: var(--sto-muted);
	font-size: 12px;
	white-space: nowrap;
}

/* Staff */
.sto-staff {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sto-staff__row {
	display: grid;
	grid-template-columns: minmax(200px, 0.8fr) minmax(0, 2fr) auto;
	gap: 14px;
	align-items: center;
	padding: 14px 2px;
	border-bottom: 1px solid var(--sto-line-soft);
}

.sto-staff__row:last-child {
	border-bottom: 0;
}

.sto-staff__who {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.sto-staff__who > div {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.sto-staff__who small {
	overflow: hidden;
	color: var(--sto-muted);
	font-size: 12.5px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sto-staff__perms {
	display: flex;
	align-items: center;
	gap: 6px 8px;
	flex-wrap: wrap;
}

.sto-perm {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border: 1px solid var(--sto-line);
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	user-select: none;
}

.sto-perm input {
	margin: 0;
	accent-color: var(--sto-blue);
}

.sto-perm:has(input:checked) {
	border-color: #bfd3fe;
	background: var(--sto-blue-soft);
	color: var(--sto-blue-d);
}

.sto-link-danger {
	padding: 6px 10px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--sto-red);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.sto-link-danger:hover {
	background: #fef2f2;
}

.sto-perm-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 18px;
	margin: 0;
	padding: 0;
	border: 0;
}

.sto-perm-grid legend {
	width: 100%;
	margin-bottom: 10px;
}

.sto-note {
	color: var(--sto-muted);
	font-size: 12.5px;
}

/* Wallet */
.sto-wallet__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
	gap: 14px;
	align-items: start;
}

.sto-balance {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 22px;
	background: linear-gradient(160deg, #0f2a6b 0%, #1d4ed8 100%) !important;
	border: 0 !important;
	color: #fff;
}

.sto-balance__k {
	color: rgba(255, 255, 255, 0.78);
	font-size: 13px;
	font-weight: 600;
}

.sto-balance__v {
	font-family: var(--sto-display);
	font-size: 38px;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.15;
	font-variant-numeric: tabular-nums;
}

.sto-balance__s {
	color: rgba(255, 255, 255, 0.78);
	font-size: 12.5px;
}

.zt-seo .sto-balance__btn {
	align-self: flex-start;
	margin-top: 10px;
	border-color: rgba(255, 255, 255, 0.35) !important;
	background: rgba(255, 255, 255, 0.12) !important;
	color: #fff !important;
	text-decoration: none;
}

.sto-topup__form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.sto-amounts,
.sto-gateways {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.sto-label {
	padding: 0;
	font-size: 12.5px;
	font-weight: 700;
}

.sto-amounts__list {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.sto-chip {
	position: relative;
	cursor: pointer;
}

.sto-chip input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.sto-chip span {
	display: inline-flex;
	min-width: 72px;
	justify-content: center;
	padding: 9px 14px;
	border: 1.5px solid var(--sto-line);
	border-radius: 10px;
	background: #fff;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.sto-chip input:checked + span {
	border-color: var(--sto-blue);
	background: var(--sto-blue-soft);
	color: var(--sto-blue-d);
}

.sto-chip input:focus-visible + span {
	outline: 2px solid var(--sto-blue);
	outline-offset: 2px;
}

.sto-amounts__custom {
	position: relative;
	display: block;
	max-width: 220px;
}

.sto-amounts__sym {
	position: absolute;
	top: 50%;
	left: 12px;
	color: var(--sto-muted);
	font-weight: 700;
	transform: translateY(-50%);
	pointer-events: none;
}

.zt-seo .sto-amounts__custom .zt-input {
	padding-left: 26px !important;
	font-weight: 700;
}

.sto-amounts__bonus {
	color: #7e22ce;
	font-size: 13px;
	font-weight: 700;
}

.sto-gateways {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 10px;
}

.sto-gateways legend {
	margin-bottom: 8px;
}

.sto-gateway {
	position: relative;
	cursor: pointer;
}

.sto-gateway input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.sto-gateway__box {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 14px;
	border: 1.5px solid var(--sto-line);
	border-radius: 12px;
	background: #fff;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.sto-gateway__box small {
	color: var(--sto-muted);
	font-size: 12.5px;
}

.sto-gateway input:checked + .sto-gateway__box {
	border-color: var(--sto-blue);
	background: var(--sto-blue-soft);
}

.sto-gateway input:focus-visible + .sto-gateway__box {
	outline: 2px solid var(--sto-blue);
	outline-offset: 2px;
}

.zt-seo .sto-topup__btn {
	align-self: flex-start;
	padding: 12px 22px;
}

.sto-topup__msg {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--sto-green);
}

.sto-topup__msg.is-error {
	color: var(--sto-red);
}

.sto-topup__safe {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--sto-muted);
	font-size: 12.5px;
}

.sto-topup__safe .sto-icon {
	width: 16px;
	height: 16px;
	color: var(--sto-green);
}

.sto-tiers {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin: 14px 0 0;
	padding: 12px 0 0;
	border-top: 1px solid var(--sto-line-soft);
	list-style: none;
}

.sto-tiers li {
	padding: 4px 10px;
	border-radius: 999px;
	background: #f3e8ff;
	color: #7e22ce;
	font-size: 12px;
	font-weight: 700;
}

/* ═══════════════ Log in / sign up ═══════════════ */

.sto-auth {
	display: grid;
	grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
	min-height: 100vh;
	background: #fff;
}

.sto-auth__brand {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 40px;
	padding: 36px 44px;
	overflow: hidden;
	background: radial-gradient(120% 80% at 0% 0%, #1e40af 0%, #0b1a3f 55%, #071230 100%);
	color: #fff;
}

.sto-auth__brand::after {
	content: "";
	position: absolute;
	right: -120px;
	bottom: -120px;
	width: 360px;
	height: 360px;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(96, 165, 250, 0.35), transparent);
	pointer-events: none;
}

.sto-auth__logo {
	text-decoration: none;
}

.sto-auth__pitch {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
	max-width: 440px;
}

.sto-auth__eyebrow {
	margin: 0;
	color: #93c5fd;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.sto-auth__pitch h2 {
	margin: 0;
	font-family: var(--sto-display);
	font-size: 36px;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.12;
}

.sto-auth__pitch > p {
	margin: 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: 15px;
	line-height: 1.6;
}

.sto-auth__tools {
	display: grid;
	gap: 10px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.sto-auth__tools li {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 14px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.06);
	font-size: 13.5px;
	color: rgba(255, 255, 255, 0.86);
}

.sto-auth__tool-logo {
	display: grid;
	place-items: center;
	width: 92px;
	height: 30px;
	padding: 4px 8px;
	border-radius: 8px;
	background: #fff;
}

.sto-auth__tool-logo svg,
.sto-auth__tool-logo img {
	display: block;
	max-width: 100%;
	max-height: 20px;
	width: auto;
	height: auto;
}

.sto-auth__fine {
	margin: 0;
	color: rgba(255, 255, 255, 0.5);
	font-size: 12px;
}

.sto-auth__main {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	padding: 40px 24px;
	background: var(--sto-bg);
}

.sto-auth__card {
	width: 100%;
	max-width: 440px;
	padding: 30px 32px 32px;
	border: 1px solid var(--sto-line);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 24px 60px -32px rgba(15, 23, 42, 0.35);
}

.sto-auth__tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	margin-bottom: 24px;
	padding: 4px;
	border-radius: 12px;
	background: #f1f4f9;
}

.sto-auth__tab {
	padding: 9px 10px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: var(--sto-muted);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.sto-auth__tab.is-active {
	background: #fff;
	color: var(--sto-ink);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.sto-auth__form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	text-align: left;
}

.sto-auth__form[hidden] {
	display: none;
}

.sto-auth__title {
	margin: 0;
	font-family: var(--sto-display);
	font-size: 25px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.sto-auth__lede {
	margin: -6px 0 4px;
	color: var(--sto-muted);
	font-size: 14px;
}

.sto-auth__row {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
}

.sto-auth__row label {
	font-size: 13px;
	font-weight: 700;
}

.sto-auth input[type="text"],
.sto-auth input[type="email"],
.sto-auth input[type="password"] {
	width: 100%;
	height: 44px;
	padding: 0 13px;
	border: 1.5px solid var(--sto-line);
	border-radius: 10px;
	background: #fbfcfe;
	color: var(--sto-ink);
	font: inherit;
	font-size: 15px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sto-auth input[type="text"]:focus,
.sto-auth input[type="email"]:focus,
.sto-auth input[type="password"]:focus {
	border-color: var(--sto-blue);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
	outline: 0;
}

.sto-auth__line {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 13px;
}

.sto-auth__line a,
.sto-auth__alt a {
	color: var(--sto-blue);
	font-weight: 600;
	text-decoration: none;
}

.sto-auth__remember {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--sto-ink-2);
	cursor: pointer;
}

.sto-auth__remember input {
	accent-color: var(--sto-blue);
}

.sto-auth__btn {
	width: 100%;
	height: 46px;
	margin-top: 4px;
	border: 0;
	border-radius: 11px;
	background: var(--sto-blue);
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.sto-auth__btn:hover {
	background: var(--sto-blue-d);
}

.sto-auth__btn:focus-visible {
	outline: 2px solid var(--sto-blue);
	outline-offset: 3px;
}

.sto-auth__hint,
.sto-auth__alt {
	margin: 0;
	color: var(--sto-muted);
	font-size: 13px;
}

.sto-auth__back {
	margin: 0;
	font-size: 13px;
}

.sto-auth__back a {
	color: var(--sto-muted);
	text-decoration: none;
}

.sto-auth__privacy {
	margin: 0;
	color: var(--sto-muted);
	font-size: 12px;
}

.sto-auth__privacy a {
	color: inherit;
}

/* Honeypot field for bots: off-screen, never shown to people. */
.sto-auth__trap {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

a.sto-auth__btn--link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

/* ═══════════════ Responsive ═══════════════ */

@media (max-width: 1180px) {
	.sto-tiles--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sto-two,
	.sto-wallet__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.sto-fields-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.sto-staff__row {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.sto-staff__perms {
		grid-column: 1 / -1;
		grid-row: 2;
	}
}

@media (max-width: 991.98px) {
	.sto-app {
		grid-template-columns: minmax(0, 1fr);
		background: none;
	}

	.sto-side {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 60;
		width: min(86vw, 300px);
		transform: translateX(-105%);
		transition: transform 0.22s ease;
		box-shadow: 0 0 0 transparent;
	}

	.sto-app.is-menu-open .sto-side {
		transform: translateX(0);
		box-shadow: 24px 0 60px -20px rgba(15, 23, 42, 0.4);
	}

	.sto-side__close {
		display: inline-flex;
	}

	.sto-app__scrim {
		position: fixed;
		inset: 0;
		z-index: 55;
		display: block;
		border: 0;
		background: rgba(15, 23, 42, 0.42);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.2s ease;
	}

	.sto-app.is-menu-open .sto-app__scrim {
		opacity: 1;
		pointer-events: auto;
	}

	.sto-top {
		padding: 0 16px;
		gap: 10px;
	}

	.sto-top__menu,
	.sto-top__logo {
		display: inline-flex;
	}

	.sto-user__txt {
		display: none;
	}

	.sto-app__content {
		padding: 20px 16px 48px;
	}

	.sto-apis {
		grid-template-columns: minmax(0, 1fr);
	}

	.sto-auth {
		grid-template-columns: minmax(0, 1fr);
	}

	.sto-auth__brand {
		gap: 18px;
		padding: 22px 20px 26px;
	}

	.sto-auth__pitch h2 {
		font-size: 24px;
	}

	.sto-auth__pitch > p,
	.sto-auth__tools,
	.sto-auth__fine {
		display: none;
	}

	.sto-auth__main {
		justify-content: flex-start;
		padding: 24px 16px 40px;
	}
}

@media (max-width: 720px) {
	.sto-top__search {
		display: none;
	}

	.sto-top__spacer {
		display: block;
	}

	.sto-pill__k {
		display: none;
	}

	.sto-tiles,
	.sto-tiles--4 {
		grid-template-columns: minmax(0, 1fr);
	}

	.sto-callout {
		flex-direction: column;
		align-items: flex-start;
	}

	.sto-fields-4,
	.sto-perm-grid {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.sto-log li {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}

	.sto-auth__card {
		padding: 22px 18px 24px;
	}
}

@media (max-width: 760px) {
	.zt-seo .sto-topup__btn span,
	.zt-seo .zt-admin-actions .zt-seo-btn span {
		display: inline !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sto-side,
	.sto-app__scrim,
	.sto-tile,
	.sto-nav__link {
		transition: none;
	}
}
