/* =============================================================================
	 CYBER_NODE — base stylesheet
	 Loaded by every page. Theme is user-side (#9ad915) by default.
	 admin.css overrides --accent for the admin theme.
	 ============================================================================= */

/* -------- root vars -------- */
:root {
	--bg-0:        #07090b;
	--bg-1:        #0d1014;
	--bg-2:        #131820;
	--line:        #1c232b;
	--line-bright: #2a323c;
	--text:        #e6edec;
	--text-mid:    #8a978c;
	--text-dim:    #5d6a62;

	--accent:      #9ad915;
	--accent-dim:  #4a6a0a;
	--accent-glow: rgba(154, 217, 21, 0.4);

	--danger:      #ff2e3e;
	--warn:        #ffb400;
}

/* -------- reset -------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
	background: var(--bg-0);
	color: var(--text);
	font-family: 'Chakra Petch', 'Segoe UI', sans-serif;
	font-size: 14px;
	line-height: 1.5;
	min-height: 100vh;
	overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: opacity .15s; }
a:hover { opacity: 0.75; }

button { font-family: inherit; }

/* grid background */
body::before {
	content: '';
	position: fixed; inset: 0;
	background-image:
		linear-gradient(rgba(154, 217, 21, 0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(154, 217, 21, 0.025) 1px, transparent 1px);
	background-size: 40px 40px;
	pointer-events: none;
	z-index: 1;
}

/* noise */
body::after {
	content: '';
	position: fixed; inset: 0;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='3'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
	pointer-events: none;
	z-index: 2;
	mix-blend-mode: overlay;
}

/* =============================================================================
	 TOPBAR + NAV
	 ============================================================================= */
.topbar, .nav, .page, .flash { position: relative; z-index: 5; }

.topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 32px;
	border-bottom: 1px solid var(--line);
	background: linear-gradient(180deg, rgba(154,217,21,0.03), transparent);
	font-family: 'JetBrains Mono', monospace;
	font-size: 11px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}
.topbar .left, .topbar .right { display: flex; gap: 24px; align-items: center; }
.topbar .right { color: var(--text-dim); }
.brand {
	font-family: 'Exo 2', 'Chakra Petch', sans-serif;
	font-weight: 900;
	font-size: 16px;
	letter-spacing: 0.2em;
	color: var(--accent);
}
.brand span { color: var(--text); }
.dot {
	display: inline-block;
	width: 8px; height: 8px;
	background: var(--accent);
	margin-right: 8px;
	border-radius: 50%;
	animation: pulse 1.8s infinite ease-in-out;
}
@keyframes pulse {
	0%,100% { opacity: 1; }
	50%     { opacity: 0.45; }
}

.nav {
	display: flex;
	gap: 4px;
	align-items: center;
	padding: 0 32px;
	border-bottom: 1px solid var(--line);
	background: var(--bg-1);
	flex-wrap: wrap;
}
.nav a {
	padding: 14px 18px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 12px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--text-mid);
	border-bottom: 2px solid transparent;
	transition: all .15s;
}
.nav a:hover { color: var(--accent); border-bottom-color: var(--accent-dim); opacity: 1; }
.nav a.active {
	color: var(--accent);
	border-bottom-color: var(--accent);
	background: linear-gradient(180deg, transparent, rgba(154,217,21,0.06));
}
.nav .spacer { flex: 1; }
.nav form { display: inline-flex; }
.nav form button {
	background: transparent;
	border: 0;
	color: var(--text-dim);
	cursor: pointer;
	padding: 14px 18px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 12px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}
.nav form button:hover { color: var(--danger); }

/* =============================================================================
	 MAIN PAGE / TYPE
	 ============================================================================= */
.page {
	max-width: 1400px;
	margin: 0 auto;
	padding: 32px;
}
.page-title {
	font-family: 'Exo 2', sans-serif;
	font-weight: 900;
	font-size: clamp(28px, 4vw, 42px);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin: 0 0 4px;
	line-height: 1;
}
.page-title .accent {
	color: var(--accent);
	text-shadow: 0 0 30px var(--accent-glow);
}
.page-subtitle {
	font-family: 'JetBrains Mono', monospace;
	font-size: 12px;
	color: var(--text-dim);
	letter-spacing: 0.15em;
	text-transform: uppercase;
	margin-bottom: 28px;
}

h1, h2, h3 { font-family: 'Exo 2', sans-serif; letter-spacing: 0.04em; }

/* =============================================================================
	 CARDS
	 ============================================================================= */
.card {
	position: relative;
	background: var(--bg-1);
	border: 1px solid var(--line);
	padding: 22px 24px;
	margin-bottom: 24px;
	clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}
.card.cyber-style {
	clip-path: polygon(0 24px, 24px 0, calc(100% - 80px) 0, calc(100% - 60px) 16px, 100% 16px, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}
.card.cyber-style::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--accent);
}
.card.cyber-style::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 2px;
    background: var(--accent);
}
.card-title {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 14px;
	margin-bottom: 16px;
	border-bottom: 1px dashed var(--line-bright);
	font-family: 'JetBrains Mono', monospace;
	font-size: 12px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--text-dim);
}
.card-title .accent { color: var(--accent); }
.badge {
	display: inline-block;
	padding: 3px 10px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 10px;
	letter-spacing: 0.15em;
	color: var(--accent);
	border: 1px solid var(--accent-dim);
	clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

/* =============================================================================
	 BUTTONS — skewed clip-path, glitch hover
	 ============================================================================= */
.btn {
	position: relative;
	display: inline-block;
	font-family: 'JetBrains Mono', monospace;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--bg-0);
	background: var(--accent);
	padding: 16px 24px;
	border: 0;
	cursor: pointer;
	text-decoration: none;
	overflow: hidden;
	transition: all .18s cubic-bezier(0.2, 0.9, 0.3, 1);
	clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.btn span { position: relative; z-index: 2; display: inline-block; }
.btn::before {
	content: '';
	position: absolute; inset: 0;
	background: var(--bg-0);
	clip-path: inset(0 100% 0 0);
	transition: clip-path .25s cubic-bezier(0.7, 0, 0.3, 1);
	z-index: 1;
}
.btn:hover {
	color: var(--accent);
	animation: glitch .35s steps(3, jump-end) 1;
}
.btn:hover::before { clip-path: inset(0 0 0 0); }
.btn:active { transform: translateY(1px); }
@keyframes glitch {
	0%   { transform: translate(0); }
	20%  { transform: translate(-2px, 1px); }
	40%  { transform: translate(2px, -1px); }
	60%  { transform: translate(-1px, 0); }
	80%  { transform: translate(1px, 1px); }
	100% { transform: translate(0); }
}
.btn-block { display: block; width: 100%; text-align: center; }
.btn-sm {
	padding: 8px 12px;
	font-size: 12px;
	clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 4px 100%, 0 calc(100% - 4px));
}
.btn-danger {
	background: var(--danger);
	color: #fff;
}
.btn-danger:hover { color: var(--danger);}

/* =============================================================================
	 FORM CONTROLS — universal cyberpunk style
	 Applies to ALL text-like inputs and textareas.
	 `.input-wrap` is a labeled box variant (label-INSIDE the border).
	 ============================================================================= */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="datetime-local"],
textarea {
	width: 100%;
	background: var(--bg-0);
	border: 1px solid var(--line-bright);
	color: var(--text);
	font-family: 'JetBrains Mono', monospace;
	font-size: 13px;
	letter-spacing: 0.04em;
	padding: 10px 14px;
	outline: 0;
	box-sizing: border-box;
	transition: border-color .15s;
	clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
input:hover, textarea:hover { border-color: var(--accent-dim); }
input:focus, textarea:focus {
	border-color: var(--accent);
}
input::placeholder, textarea::placeholder { color: var(--text-dim); opacity: 1; }
input:disabled, input[readonly], textarea:disabled, textarea[readonly] {
	color: var(--accent);
	cursor: text;
}

textarea {
	resize: vertical;
	min-height: 80px;
	line-height: 1.5;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

/* ---------- .input-wrap : label-inside-box pattern ---------- */
.input-wrap {
	display: flex;
	flex-direction: column;
	gap: 4px;
	background: var(--bg-0);
	border: 1px solid var(--line-bright);
	padding: 12px 16px;
	box-sizing: border-box;
	transition: border-color .15s;
	clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
	cursor: text;
}
.input-wrap:hover { border-color: var(--accent-dim); }
.input-wrap:focus-within {
	border-color: var(--accent);
}
.input-wrap .input-label {
	font-family: 'JetBrains Mono', monospace;
	font-size: 12px;
	color: var(--accent);
	letter-spacing: 0.25em;
	text-transform: uppercase;
	user-select: none;
}
/* Inputs INSIDE .input-wrap are transparent — wrap provides the box. */
.input-wrap input,
.input-wrap textarea,
.input-wrap select {
	width: 100%;
	background: transparent;
	border: 0;
	outline: 0;
	padding: 0;
	margin: 0;
	color: var(--text);
	font-family: 'JetBrains Mono', monospace;
	font-size: 16px;
	letter-spacing: 0.04em;
	clip-path: none;
	box-shadow: none;
}
.input-wrap input:focus,
.input-wrap textarea:focus,
.input-wrap select:focus { box-shadow: none; }
.input-wrap textarea { min-height: 60px; resize: vertical; line-height: 1.4; }

fieldset.input-wrap { margin: 0; min-width: 0; }
fieldset.input-wrap legend { display: none; }

/* =============================================================================
	 CUSTOM SELECT (rendered by forms.js)
	 Native <select> is hidden but kept in DOM so the form still submits.
	 ============================================================================= */

select.cnode-native {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	opacity: 0 !important;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0 !important;
	pointer-events: none;
}

.cnode-select {
	position: relative;
	width: 100%;
}
.cnode-select-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	background: var(--bg-0);
	border: 1px solid var(--line-bright);
	color: var(--text);
	font-family: 'JetBrains Mono', monospace;
	font-size: 13px;
	letter-spacing: 0.04em;
	text-align: left;
	padding: 10px 14px;
	cursor: pointer;
	outline: 0;
	box-sizing: border-box;
	transition: border-color .15s;
	clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.cnode-select-toggle:hover { border-color: var(--accent-dim); }
.cnode-select-toggle:focus,
.cnode-select.open .cnode-select-toggle {
	border-color: var(--accent);
}
.cnode-select-toggle.is-placeholder .cnode-select-value { color: var(--text-dim); }

.cnode-select-value {
	flex: 1;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.cnode-select-caret {
	color: var(--accent);
	font-size: 10px;
	margin-left: 10px;
	transition: transform .2s;
	flex-shrink: 0;
}
.cnode-select.open .cnode-select-caret { transform: rotate(180deg); }

.cnode-select-options {
	position: absolute;
	top: calc(100% + 6px);
	left: 0; right: 0;
	z-index: 1000;
	background: var(--bg-1);
	border: 1px solid var(--accent-dim);
	list-style: none;
	margin: 0;
	padding: 4px 0;
	max-height: 280px;
	overflow-y: auto;
	font-family: 'JetBrains Mono', monospace;
	font-size: 12px;
	letter-spacing: 0.04em;
	clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.cnode-select-options[hidden] { display: none; }
.cnode-select-options li {
	padding: 9px 16px;
	cursor: pointer;
	color: var(--text);
	border-left: 2px solid transparent;
	transition: all .1s;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.cnode-select-options li:hover,
.cnode-select-options li.active {
	background: var(--bg-0);
	color: var(--accent);
	border-left-color: var(--accent);
}
.cnode-select-options li.selected {
	color: var(--accent);
	background: var(--bg-0);
	border-left-color: var(--accent);
}
.cnode-select-options li.disabled { color: var(--text-dim); cursor: not-allowed; }

.cnode-select-options::-webkit-scrollbar { width: 8px; }
.cnode-select-options::-webkit-scrollbar-track { background: var(--bg-0); }
.cnode-select-options::-webkit-scrollbar-thumb { background: var(--accent-dim); }
.cnode-select-options::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Portal mode — when open, list is moved to <body> and positioned via JS,
   so it escapes clip-path / overflow:hidden on any ancestor (.input-wrap, .card, etc.) */
.cnode-select-options.cnode-portal {
	position: fixed;
	z-index: 10000;
	box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

/* When custom select is INSIDE .input-wrap — go transparent like inputs */
.input-wrap .cnode-select { width: 100%; }
.input-wrap .cnode-select-toggle {
	background: transparent;
	border: 0;
	padding: 0 22px 0 0;
	clip-path: none;
	font-size: 14px;
	box-shadow: none;
}
.input-wrap .cnode-select-toggle:focus,
.input-wrap .cnode-select.open .cnode-select-toggle { box-shadow: none; }
.input-wrap .cnode-select-caret { position: absolute; right: 0; top: 50%; transform: translateY(-50%); margin: 0; }
.input-wrap .cnode-select.open .cnode-select-caret { transform: translateY(-50%) rotate(180deg); }
.input-wrap .cnode-select-options { left: -14px; right: -14px; top: calc(100% + 14px); }

/* =============================================================================
	 CHECKBOXES — custom cyberpunk look
	 ============================================================================= */
.checks {
	display: flex;
	gap: 18px 22px;
	flex-wrap: wrap;
	padding: 6px 0;
}
.checks label {
	font-family: 'JetBrains Mono', monospace;
	font-size: 11px;
	color: var(--text);
	display: inline-flex;
	gap: 8px;
	align-items: center;
	cursor: pointer;
	user-select: none;
	letter-spacing: 0.08em;
}
.checks input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 16px; height: 16px;
	background: var(--bg-0);
	border: 1px solid var(--line-bright);
	cursor: pointer;
	position: relative;
	margin: 0;
	flex-shrink: 0;
	transition: all .15s;
	clip-path: polygon(0 0, calc(100% - 3px) 0, 100% 3px, 100% 100%, 3px 100%, 0 calc(100% - 3px));
}
.checks input[type="checkbox"]:hover { border-color: var(--accent); }
.checks input[type="checkbox"]:checked {
	background: var(--accent);
	border-color: var(--accent);
}
.checks input[type="checkbox"]:checked::after {
	content: '';
	position: absolute;
	inset: 3px;
	background: var(--bg-0);
	clip-path: polygon(0 0, calc(100% - 2px) 0, 100% 2px, 100% 100%, 2px 100%, 0 calc(100% - 2px));
}

/* =============================================================================
	 FLASH
	 ============================================================================= */
.flash {
	margin: 18px 32px 0;
	padding: 12px 18px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 12px;
	letter-spacing: 0.1em;
	clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.flash-ok  { background: rgba(154,217,21,.08); color: var(--accent); border: 1px solid var(--accent-dim); }
.flash-err { background: rgba(255,46,62,.08);  color: var(--danger); border: 1px solid var(--danger); }

/* =============================================================================
	 TABLES
	 ============================================================================= */
.tbl {
	width: 100%;
	border-collapse: collapse;
	font-family: 'JetBrains Mono', monospace;
	font-size: 12px;
}
.tbl th, .tbl td {
	padding: 12px 14px;
	text-align: left;
	border-bottom: 1px solid var(--line);
	vertical-align: middle;
}
.tbl th {
	color: var(--text-dim);
	text-transform: uppercase;
	letter-spacing: 0.15em;
	font-weight: 500;
	font-size: 10px;
	background: var(--bg-2);
}
.tbl td { color: var(--text); }
.tbl tr:hover td { background: rgba(154, 217, 21, 0.03); }
.tbl small { color: var(--text-dim); font-size: 10px; }

/* =============================================================================
	 GRID HELPERS / STATS / STATUS / META
	 ============================================================================= */
.grid { display: grid; gap: 24px; margin-bottom: 24px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px)  { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-label {
	font-family: 'JetBrains Mono', monospace;
	font-size: 10px;
	color: var(--text-dim);
	letter-spacing: 0.2em;
	text-transform: uppercase;
}
.stat-value {
	font-family: 'Exo 2', sans-serif;
	font-size: 28px;
	font-weight: 800;
	color: var(--accent);
	letter-spacing: 0.03em;
	line-height: 1.1;
}
.stat-link { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-dim); margin-top: 4px; }

.status {
	display: inline-block;
	padding: 2px 10px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 10px;
	letter-spacing: .15em;
	text-transform: uppercase;
	clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.status-active, .status-paid, .status-completed { background: rgba(154,217,21,.12); color: var(--accent); }
.status-expired, .status-cancelled, .status-suspended { background: rgba(255,46,62,.12); color: var(--danger); }
.status-created, .status-partpaid { background: rgba(255,180,0,.12); color: var(--warn); }
.status-overpaid { background: rgba(154,217,21,.18); color: var(--accent); }

.tag {
	display: inline-block;
	padding: 2px 8px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 12px;
	letter-spacing: .15em;
	color: var(--accent);
	border: 1px solid var(--accent-dim);
	margin-left: 4px;
	clip-path: polygon(6px 0,100% 0,calc(100% - 6px) 100%,0 100%);
}
.tag-warn { color: var(--warn); border-color: var(--warn); }
.tag-mini {
	display: inline-block;
	padding: 3px 10px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 10px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--accent);
	border: 1px solid var(--accent-dim);
	clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.muted { color: var(--text-dim); font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .05em; }
.muted a { color: var(--accent); }
.pos { color: var(--accent); }
.neg { color: var(--danger); }
.accent { color: var(--accent); }

code, .hash {
	font-family: 'JetBrains Mono', monospace;
	font-size: 12px;
	color: var(--text);
	background: rgba(154,217,21,.06);
	padding: 1px 6px;
}
pre.code {
	background: var(--bg-0);
	border: 1px solid var(--line);
	padding: 14px 16px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 11px;
	color: var(--text);
	overflow-x: auto;
	margin-top: 8px;
}

/* ---- RAM meter ---- */
.meter {
	width: 80px; height: 6px;
	background: var(--bg-0);
	border: 1px solid var(--line);
	position: relative;
	overflow: hidden;
}
.meter-bar { height: 100%; background: var(--accent); }

/* =============================================================================
	 BILLING / INVOICE / KV
	 ============================================================================= */
.big-balance {
	font-family: 'Exo 2', sans-serif;
	font-size: clamp(36px, 5vw, 52px);
	font-weight: 900;
	color: var(--accent);
	letter-spacing: 0.04em;
	text-shadow: 0 0 30px var(--accent-glow);
	margin: 12px 0;
	line-height: 1.1;
}
.kv {
	display: flex; justify-content: space-between; gap: 12px;
	padding: 8px 0;
	font-family: 'JetBrains Mono', monospace;
	font-size: 13px;
	border-bottom: 1px dashed var(--line);
}
.kv span { color: var(--text-dim); }
.kv b { color: var(--accent); font-weight: 700; word-break: break-all; }
.qr-wrap { display: flex; justify-content: center; padding: 18px 0; }

/* ---- copy row ---- */
.copy-row {
	display: flex; gap: 8px; align-items: stretch;
	margin-top: 8px;
}
.copy-row input[type="text"] {
	flex: 1;
	color: var(--accent);
}

/* =============================================================================
	 AUTH (variant 01)
	 ============================================================================= */
.auth-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: calc(100vh - 50px);
	padding: 40px 20px;
}
.auth-card {
	position: relative;
	width: 100%;
	max-width: 480px;
	background: var(--bg-1);
	padding: 36px 32px 32px;
	border: 1px solid var(--line);
	clip-path: polygon(
		0 24px, 24px 0,
		calc(100% - 80px) 0,
		calc(100% - 60px) 16px,
		100% 16px, 100% calc(100% - 24px),
		calc(100% - 24px) 100%,
		0 100%
	);
}
.auth-card::before {
	content: '';
	position: absolute; top: 0; left: 0;
	width: 80px; height: 2px;
	background: var(--accent);
}
.auth-card::after {
	content: '';
	position: absolute; bottom: 0; right: 0;
	width: 60px; height: 2px;
	background: var(--accent);
}
.auth-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 22px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 10px;
	color: var(--text-dim);
	letter-spacing: 0.2em;
	text-transform: uppercase;
}
.auth-title {
	font-family: 'Exo 2', sans-serif;
	font-weight: 900;
	font-size: clamp(28px, 4vw, 40px);
	line-height: 0.95;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: 0 0 8px;
}
.auth-title .accent {
	color: var(--accent);
	text-shadow: 0 0 30px var(--accent-glow);
}
.auth-subtitle {
	font-family: 'JetBrains Mono', monospace;
	font-size: 11px;
	color: var(--text-dim);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	margin: 0 0 30px;
}
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-foot {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px dashed var(--line-bright);
	font-family: 'JetBrains Mono', monospace;
	font-size: 11px;
	letter-spacing: 0.1em;
}

/* =============================================================================
	 PLAN CARDS
	 ============================================================================= */
.plan-card { position: relative; }
.plan-card .price-row { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 18px; }
.plan-card .price {
	font-family: 'Exo 2', sans-serif;
	font-size: clamp(32px, 4vw, 44px);
	font-weight: 900;
	color: var(--accent);
	text-shadow: 0 0 24px var(--accent-glow);
	letter-spacing: 0.02em;
}
.plan-card .price-period { color: var(--text-dim); font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.plan-card .features {
	list-style: none;
	padding: 0; margin: 0 0 20px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 12px;
	color: var(--text);
}
.plan-card .features li { padding: 4px 0; }
.plan-card.is-premium { border-color: var(--accent-dim); }
.plan-card.is-premium::after {
	content: 'PRO';
	position: absolute; top: 8px; right: 14px;
	font-family: 'Exo 2', sans-serif;
	font-weight: 800;
	font-size: 11px; letter-spacing: 0.3em;
	color: var(--accent);
}
.buy-form { display: flex; flex-direction: column; gap: 12px; }

/* =============================================================================
	 SEARCH ROW (filters)
	 ============================================================================= */
.search-row {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
	align-items: stretch;
	flex-wrap: wrap;
}
.search-row > * { flex: 0 0 auto; }
.search-row input[type="text"],
.search-row input[type="search"] { flex: 1 1 240px; min-width: 200px; }
.search-row .cnode-select { flex: 0 0 200px; min-width: 160px; }

/* =============================================================================
	 FORM GRID (used in admin add/edit forms)
	 ============================================================================= */
.form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 18px;
}
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

/* =============================================================================
	 ACTIONS column in tables
	 ============================================================================= */
.actions { display: flex; gap: 4px; flex-wrap: wrap; }
.actions form { margin: 0; display: inline-flex; }
.actions .btn-sm { padding: 4px 10px; font-size: 10px; }
.actions a.btn-sm { padding: 4px 10px; }

/* =============================================================================
	 TERMINAL (admin)
	 ============================================================================= */
.term {
	background: var(--bg-0);
	border: 1px solid var(--line-bright);
	font-family: 'JetBrains Mono', monospace;
	font-size: 12.5px;
	color: var(--text);
	padding: 16px 18px;
	height: 480px;
	overflow-y: auto;
	white-space: pre-wrap;
	word-break: break-all;
	clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.term .cmd { color: var(--accent); }
.term .err { color: var(--danger); }

.term-form {
	display: flex;
	gap: 0;
	align-items: stretch;
	margin-top: 12px;
}
.term-form .prompt {
	display: flex; align-items: center;
	background: var(--bg-0);
	color: var(--accent);
	font-family: 'JetBrains Mono', monospace;
	font-size: 13px;
	padding: 0 12px;
	border: 1px solid var(--line-bright);
	border-right: 0;
	clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.term-form input[type="text"] {
	flex: 1;
	background: var(--bg-0);
	border: 1px solid var(--line-bright);
	border-left: 0;
	border-right: 0;
	color: var(--accent);
	font-family: 'JetBrains Mono', monospace;
	font-size: 13px;
	padding: 8px 14px;
	outline: 0;
	clip-path: none;
	border-radius: 0;
}
.term-form input[type="text"]:focus {
	border-color: var(--line-bright);
	border-bottom-color: var(--accent);
	box-shadow: none;
}
.term-form .btn { margin-left: -2px; }

/* =============================================================================
	 ERROR PAGES
	 ============================================================================= */
.err-wrap {
	display: flex; flex-direction: column;
	align-items: center; justify-content: center;
	min-height: 100vh; gap: 24px;
	text-align: center;
	padding: 20px;
}
.err-code {
	font-family: 'Exo 2', sans-serif;
	font-size: clamp(96px, 18vw, 200px);
	font-weight: 900;
	color: var(--accent);
	text-shadow: 0 0 40px var(--accent-glow);
	letter-spacing: 0.05em;
	line-height: 1;
}
.err-msg {
	font-family: 'JetBrains Mono', monospace;
	color: var(--text-dim);
	font-size: 14px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}
