@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================================
   rclassic — white, clean, Stripe/Vercel card aesthetic
   ============================================================ */

:root {
	--bg-page:        #f6f8fb;
	--bg-card:        #ffffff;
	--bg-muted:       #f1f4f9;
	--bg-hover:       #f8fafc;

	--border:         #e5e9f0;
	--border-strong:  #d4dae3;

	--text:           #0f172a;
	--text-muted:     #475569;
	--text-subtle:    #94a3b8;

	--accent:         #635bff;
	--accent-hover:   #5048e5;
	--accent-soft:    #eef0ff;

	--success:        #10b981;
	--success-bg:     #ecfdf5;
	--success-text:   #047857;
	--success-border: #a7f3d0;

	--warning:        #f59e0b;
	--warning-bg:     #fffbeb;
	--warning-text:   #b45309;
	--warning-border: #fde68a;

	--danger:         #ef4444;
	--danger-bg:      #fef2f2;
	--danger-text:    #b91c1c;
	--danger-border:  #fecaca;

	--info:           #0ea5e9;
	--info-bg:        #eff6ff;
	--info-text:      #1d4ed8;
	--info-border:    #bfdbfe;

	--radius-sm: 6px;
	--radius:    10px;
	--radius-lg: 14px;

	--shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
	--shadow:    0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
	--shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
	--shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08);

	--focus-ring: 0 0 0 3px rgba(99, 91, 255, 0.18);

	--font-sans: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

	/* Aliases for sunrise-inherited templates that reference the older
	   variable names. Map them to the rclassic equivalents so the
	   inherited inline styles render with the rclassic palette. */
	--accent-glow:     var(--accent-soft);
	--gold:            var(--accent);
	--text-primary:    var(--text);
	--text-secondary:  var(--text-muted);
	--text-heading:    var(--text);
	--bg-input:        var(--bg-card);
	--border-light:    var(--border);
	--border-hover:    var(--border-strong);
	--font:            var(--font-sans);
	--font-heading:    var(--font-sans);
}

/* ============================================================
   Reset & base
   ============================================================ */

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

html, body { margin: 0; padding: 0; }

body {
	background-color: var(--bg-page);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 14px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Moving gradient: a soft, slowly-shifting wash of color that drifts across
   the page, with two parallax layers of floating particles above it. */
body::before {
	content: '';
	position: fixed;
	inset: -20%;
	z-index: -2;
	pointer-events: none;
	background:
		radial-gradient(1200px 800px at 12% 18%,  rgba(99, 91, 255, 0.30), transparent 60%),
		radial-gradient(1000px 700px at 88% 8%,   rgba(14, 165, 233, 0.26), transparent 55%),
		radial-gradient(1100px 900px at 70% 95%,  rgba(236, 72, 153, 0.22), transparent 60%),
		radial-gradient(900px 700px at 25% 85%,   rgba(16, 185, 129, 0.22), transparent 58%),
		radial-gradient(900px 800px at 95% 60%,   rgba(245, 158, 11, 0.20), transparent 58%),
		linear-gradient(135deg, #eef0ff 0%, #f0f9ff 35%, #fff1f7 70%, #eefaf4 100%);
	background-size: 200% 200%;
	animation: bg-gradient-drift 28s ease-in-out infinite;
	will-change: background-position;
}

/* Floating particles: a JS canvas (#ember-bg) of soft glowing dots that drift
   upward, same technique as the sunrise theme, tuned to the rclassic palette. */
#ember-bg {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	pointer-events: none;
}
.topbar, .content, .site-footer, .status-bar { position: relative; z-index: 1; }

@keyframes bg-gradient-drift {
	0%   { background-position:   0% 0%; }
	25%  { background-position: 100% 30%; }
	50%  { background-position: 100% 100%; }
	75%  { background-position:   0% 70%; }
	100% { background-position:   0% 0%; }
}
@media (prefers-reduced-motion: reduce) {
	body::before { animation: none; }
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 12px;
	font-weight: 600;
	color: var(--text);
	line-height: 1.3;
}
h1 { font-size: 28px; letter-spacing: -0.01em; }
h2 { font-size: 22px; letter-spacing: -0.01em; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
h5 { font-size: 14px; }
h6 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }

p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }

a {
	color: var(--accent);
	text-decoration: none;
	transition: color 150ms ease;
}
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 2px; }
a:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 2px; }

code, pre, kbd, samp {
	font-family: var(--font-mono);
	font-size: 0.92em;
}
code {
	background: var(--bg-muted);
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 1px 6px;
}
pre {
	background: var(--bg-muted);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 12px 14px;
	overflow-x: auto;
}

hr {
	border: 0;
	border-top: 1px solid var(--border);
	margin: 24px 0;
}

img { max-width: 100%; height: auto; vertical-align: middle; }

::selection { background: var(--accent-soft); color: var(--text); }

/* ============================================================
   Topbar
   ============================================================ */

.topbar {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.65);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid rgba(229, 233, 240, 0.7);
	box-shadow: var(--shadow-sm);
}

.topbar-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
	height: 60px;
}

.topbar-brand {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 600;
	color: var(--text);
	white-space: nowrap;
}
.topbar-brand:hover { color: var(--text); text-decoration: none; }
.brand-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: var(--radius-sm);
	background: var(--accent);
	color: #fff;
	font-size: 14px;
}

.nav-menu {
	display: flex;
	align-items: center;
	gap: 4px;
	flex: 1;
}

.nav-top-link, .nav-group-label {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 8px 12px;
	font-size: 14px;
	font-weight: 500;
	color: var(--text-muted);
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: color 150ms ease, background 150ms ease;
	white-space: nowrap;
	user-select: none;
}
.nav-top-link:hover, .nav-group:hover .nav-group-label {
	color: var(--text);
	background: var(--bg-hover);
	text-decoration: none;
}
.nav-group-label.nav-admin { color: var(--accent); }

.nav-group { position: relative; }
.nav-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	margin-top: 4px;
	padding: 6px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-md);
	z-index: 110;
}
.nav-dropdown-link {
	display: block;
	padding: 8px 12px;
	font-size: 14px;
	color: var(--text-muted);
	border-radius: var(--radius-sm);
	transition: color 150ms ease, background 150ms ease;
	white-space: nowrap;
}
.nav-dropdown-link:hover {
	color: var(--text);
	background: var(--bg-hover);
	text-decoration: none;
}

.topbar-right {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}
.topbar-user {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 500;
	color: var(--text);
	background: var(--bg-muted);
	border-radius: 999px;
	transition: background 150ms ease;
}
.topbar-user:hover { background: var(--bg-hover); text-decoration: none; }

.topbar-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 36px;
	padding: 0 14px;
	font-size: 13px;
	font-weight: 500;
	border-radius: var(--radius-sm);
	border: 1px solid transparent;
	cursor: pointer;
	transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.topbar-btn-ghost { color: var(--text-muted); background: transparent; }
.topbar-btn-ghost:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }
.topbar-btn-accent, .topbar-btn-admin {
	background: var(--accent);
	color: #fff;
}
.topbar-btn-accent:hover, .topbar-btn-admin:hover {
	background: var(--accent-hover);
	color: #fff;
	text-decoration: none;
}
.topbar-btn-admin { width: 36px; padding: 0; font-size: 16px; }

.topbar-server-select {
	height: 32px;
	padding: 0 28px 0 10px;
	font: inherit;
	font-size: 13px;
	color: var(--text);
	background: var(--bg-card);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path fill='%23475569' d='M2 4l3 3 3-3z'/></svg>");
	background-repeat: no-repeat;
	background-position: right 8px center;
}

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	width: 36px;
	height: 36px;
	padding: 8px;
	background: transparent;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	cursor: pointer;
}
.nav-toggle span {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--text-muted);
	border-radius: 1px;
}

/* ============================================================
   Status bar
   ============================================================ */

.status-bar {
	background: var(--bg-muted);
	border-bottom: 1px solid var(--border);
}
.status-bar-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
	height: 32px;
	font-size: 12px;
	color: var(--text-muted);
}
.status-item { display: inline-flex; align-items: center; gap: 6px; }
.status-sep { width: 1px; height: 14px; background: var(--border); }
.status-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
}
.status-online { background: var(--success); }
.status-offline { background: var(--danger); }
.status-label { white-space: nowrap; }
.status-time { font-variant-numeric: tabular-nums; }

/* ============================================================
   Main content shell
   ============================================================ */

.content {
	max-width: 1180px;
	width: 100%;
	margin: 0 auto;
	padding: 32px 24px 48px;
	flex: 1;
}

/* ============================================================
   Cards / boxes / menus (FluxCP base containers)
   ============================================================ */

.menu, .box, .card,
.generic-form-div,
.character-stats {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 24px;
	margin-bottom: 20px;
}

.menu h2, .menu h3,
.box h2, .box h3 {
	margin-top: 0;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--border);
	font-size: 16px;
	font-weight: 600;
}

/* ============================================================
   Alerts
   ============================================================ */

.alert {
	padding: 12px 14px;
	margin-bottom: 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	font-size: 14px;
}
.alert-info    { background: var(--info-bg);    color: var(--info-text);    border-color: var(--info-border); }
.alert-warning { background: var(--warning-bg); color: var(--warning-text); border-color: var(--warning-border); }
.alert-error,
.alert-danger  { background: var(--danger-bg);  color: var(--danger-text);  border-color: var(--danger-border); }
.alert-success { background: var(--success-bg); color: var(--success-text); border-color: var(--success-border); }
.alert a { color: inherit; text-decoration: underline; }
.alert strong { font-weight: 600; }

/* ============================================================
   Tables
   ============================================================ */

table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	margin-bottom: 20px;
	box-shadow: var(--shadow);
}

table th {
	padding: 10px 16px;
	background: var(--bg-muted);
	color: var(--text-muted);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	text-align: left;
	border-bottom: 1px solid var(--border);
}
table td {
	padding: 12px 16px;
	border-bottom: 1px solid var(--border);
	font-size: 14px;
	color: var(--text);
	vertical-align: middle;
}
table tr:last-child td { border-bottom: 0; }
table tbody tr:hover td { background: var(--bg-hover); }

/* Vertical (label/value) tables */
table.vertical-table th {
	background: var(--bg-muted);
	width: 35%;
	text-align: left;
	color: var(--text-muted);
	text-transform: none;
	letter-spacing: normal;
	font-weight: 500;
	font-size: 13px;
}
table.vertical-table tbody tr:hover td { background: transparent; }

table.horizontal-table th { background: var(--bg-muted); }

.character-stats th,
.character-stats td { padding: 8px 12px; }

/* ============================================================
   Forms
   ============================================================ */

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="datetime-local"],
input[type="time"],
select,
textarea {
	display: inline-block;
	width: auto;
	max-width: 100%;
	padding: 9px 12px;
	font: inherit;
	font-size: 14px;
	color: var(--text);
	background: var(--bg-card);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	transition: border-color 150ms ease, box-shadow 150ms ease;
	box-sizing: border-box;
}
textarea { width: 100%; min-height: 96px; resize: vertical; }

input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: var(--focus-ring);
}
input::placeholder, textarea::placeholder { color: var(--text-subtle); }
input:disabled, select:disabled, textarea:disabled {
	background: var(--bg-muted);
	color: var(--text-subtle);
	cursor: not-allowed;
}

label {
	display: inline-block;
	font-size: 13px;
	font-weight: 500;
	color: var(--text-muted);
	margin-bottom: 6px;
}

.generic-form,
.generic-form-table {
	width: 100%;
	background: transparent;
	border: 0;
	box-shadow: none;
	margin-bottom: 0;
}
.generic-form-table th,
.generic-form-table td {
	background: transparent;
	border: 0;
	padding: 8px 8px 8px 0;
	vertical-align: middle;
}
.generic-form-table th {
	width: 30%;
	text-align: left;
	color: var(--text-muted);
	font-size: 13px;
	font-weight: 500;
	text-transform: none;
	letter-spacing: normal;
}
.generic-form-table tbody tr:hover td { background: transparent; }

.search-form, .search-form2 {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 16px 20px;
	margin-bottom: 20px;
	box-shadow: var(--shadow-sm);
}

/* ============================================================
   Buttons
   ============================================================ */

button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 36px;
	padding: 0 16px;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	color: #fff;
	background: var(--accent);
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: background 150ms ease, color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
	white-space: nowrap;
}
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.btn:hover {
	background: var(--accent-hover);
	color: #fff;
	text-decoration: none;
}
button:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible,
.btn:focus-visible {
	outline: none;
	box-shadow: var(--focus-ring);
}
button:disabled,
.btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
input[type="reset"] {
	color: var(--text-muted);
	background: var(--bg-card);
	border-color: var(--border-strong);
}
input[type="reset"]:hover {
	color: var(--text);
	background: var(--bg-hover);
	border-color: var(--border-strong);
}

/* ============================================================
   FluxCP misc utility classes
   ============================================================ */

.green, .online, .yes, .identified.yes, .for-sale.yes { color: var(--success-text); }
.red, .offline, .no, .identified.no, .for-sale.no { color: var(--danger-text); }
.important { color: var(--danger-text); font-weight: 600; }
.notice { color: var(--text-muted); font-size: 13px; }
.message { color: var(--text-muted); }
.clear { clear: both; }

.account-state {
	display: inline-block;
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border-radius: var(--radius-sm);
	background: var(--bg-muted);
	color: var(--text-muted);
}
.account-state.state-banned { background: var(--danger-bg); color: var(--danger-text); }
.account-state.state-pending { background: var(--warning-bg); color: var(--warning-text); }
.account-state.state-unknown { background: var(--bg-muted); color: var(--text-muted); }

.newsDiv {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 24px;
	margin-bottom: 20px;
}
.newsDate {
	display: block;
	font-size: 12px;
	color: var(--text-subtle);
	margin-bottom: 8px;
}
.newsCont { color: var(--text); }
.news_link { font-weight: 500; }

.page-menu-item, .menuitem {
	display: inline-block;
	padding: 6px 12px;
	margin-right: 4px;
	font-size: 13px;
	color: var(--text-muted);
	background: transparent;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	transition: all 150ms ease;
}
.page-menu-item:hover, .menuitem:hover {
	color: var(--text);
	background: var(--bg-hover);
	text-decoration: none;
}

.balance-amount, .credit-balance, .remaining-balance {
	font-family: var(--font-mono);
	font-weight: 600;
	color: var(--accent);
}
.balance-text { color: var(--text-muted); font-size: 13px; }

.security-code { display: inline-block; vertical-align: middle; }
.security-code img {
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: #fff;
}

.pagination, .paging {
	display: flex;
	gap: 4px;
	margin: 16px 0;
	list-style: none;
	padding: 0;
}
.pagination a, .pagination span,
.paging a, .paging span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 0 10px;
	font-size: 13px;
	color: var(--text-muted);
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	transition: all 150ms ease;
}
.pagination a:hover, .paging a:hover {
	color: var(--text);
	background: var(--bg-hover);
	text-decoration: none;
}
.pagination .current, .paging .current {
	color: #fff;
	background: var(--accent);
	border-color: var(--accent);
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
	margin-top: auto;
	background: rgba(255, 255, 255, 0.65);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
	border-top: 1px solid rgba(229, 233, 240, 0.7);
	box-shadow: 0 -1px 2px rgba(15, 23, 42, 0.03);
}
.site-footer-inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 40px 24px 20px;
}
.site-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 40px;
	margin-bottom: 28px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--border);
}
.site-footer-brand {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}
.site-footer-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	font-weight: 600;
	color: var(--text);
}
.site-footer-logo:hover { color: var(--text); text-decoration: none; }
.site-footer-tagline {
	margin: 0;
	font-size: 13px;
	color: var(--text-muted);
	line-height: 1.5;
}
.site-footer-social {
	display: flex;
	gap: 8px;
	margin-top: 4px;
}
.site-footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	color: var(--text-muted);
	background: var(--bg-muted);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	transition: all 150ms ease;
}
.site-footer-social a:hover {
	color: #fff;
	background: var(--accent);
	border-color: var(--accent);
	transform: translateY(-1px);
	text-decoration: none;
}

.site-footer-col {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}
.site-footer-heading {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text);
}
.site-footer-link {
	font-size: 13px;
	color: var(--text-muted);
	transition: color 150ms ease;
}
.site-footer-link:hover {
	color: var(--accent);
	text-decoration: none;
}

.site-footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	font-size: 12px;
	color: var(--text-subtle);
}
.site-footer-copy { color: var(--text-muted); }
.site-footer-credit { color: var(--text-subtle); font-weight: 500; }

@media (max-width: 760px) {
	.site-footer-inner { padding: 28px 20px 16px; }
	.site-footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 24px;
	}
	.site-footer-brand { grid-column: 1 / -1; }
	.site-footer-bottom { justify-content: center; text-align: center; }
}

/* ============================================================
   Loginbox / sidebar (sunrise partials, restyled clean)
   ============================================================ */

.loginbox,
.sidebar,
.side-menu {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 20px;
	margin-bottom: 20px;
}
.loginbox-admin-menu a,
.sidebar a,
.side-menu a {
	display: block;
	padding: 6px 8px;
	color: var(--text-muted);
	border-radius: var(--radius-sm);
	font-size: 13px;
}
.loginbox-admin-menu a:hover,
.sidebar a:hover,
.side-menu a:hover {
	color: var(--text);
	background: var(--bg-hover);
	text-decoration: none;
}

/* ============================================================
   Sub-menu / page-menu strip
   ============================================================ */

.sub-menu, .page-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 12px 16px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	margin-bottom: 20px;
}

/* ============================================================
   Inherited sunrise partials (main/index, loginbox, sidebar,
   submenu, pagemenu) — Sunrise-specific class names restyled
   with the rclassic design tokens.
   ============================================================ */

/* --- Home: hero --- */
.home-hero {
	position: relative;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 24px;
	align-items: stretch;
	background: linear-gradient(135deg, var(--accent-soft) 0%, var(--bg-card) 100%);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	padding: 40px 40px 0;
	margin-bottom: 24px;
	overflow: hidden;
	min-height: 440px;
}
.home-hero-text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: left;
	padding-bottom: 96px;
	min-width: 0;
}
.home-hero-cta {
	position: absolute;
	left: 40px;
	bottom: 28px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	z-index: 1;
}
.home-hero-text {
	min-width: 0;
}
.home-hero-badge {
	position: absolute;
	top: 24px;
	left: 40px;
	z-index: 2;
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent);
	background: #ffffff;
	border: 1px solid rgba(99, 91, 255, 0.35);
	border-radius: 999px;
	padding: 4px 12px;
	margin: 0;
	animation: hero-badge-glow 2.4s ease-in-out infinite;
}
@keyframes hero-badge-glow {
	0%, 100% {
		box-shadow:
			0 0 0 1px rgba(99, 91, 255, 0.10),
			0 0 10px rgba(99, 91, 255, 0.35),
			0 0 22px rgba(99, 91, 255, 0.18);
	}
	50% {
		box-shadow:
			0 0 0 1px rgba(99, 91, 255, 0.25),
			0 0 18px rgba(99, 91, 255, 0.65),
			0 0 36px rgba(99, 91, 255, 0.30);
	}
}
@media (prefers-reduced-motion: reduce) {
	.home-hero-badge { animation: none; }
}
.home-hero-title {
	font-size: 44px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--text);
	margin: 0 0 8px;
	line-height: 1.1;
}
.home-hero-sub {
	font-size: 16px;
	color: var(--text-muted);
	margin: 0;
	line-height: 1.5;
}
.home-hero-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.home-hero-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 42px;
	min-width: 180px;
	padding: 0 18px;
	font-size: 14px;
	font-weight: 600;
	border-radius: var(--radius-sm);
	border: 1px solid transparent;
	transition: all 150ms ease;
}
.home-hero-btn-primary {
	background: var(--accent);
	color: #fff;
}
.home-hero-btn-primary:hover {
	background: var(--accent-hover);
	color: #fff;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(99, 91, 255, 0.3);
}
.home-hero-btn-ghost {
	background: rgba(255, 255, 255, 0.7);
	color: var(--text);
	border-color: var(--border);
}
.home-hero-btn-ghost:hover {
	background: var(--bg-card);
	border-color: var(--border-strong);
	color: var(--text);
	text-decoration: none;
}
.home-hero-art {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	align-self: end;
}
.home-hero-art img {
	max-height: 420px;
	max-width: none;
	width: auto;
	height: auto;
	display: block;
	filter: drop-shadow(0 -4px 24px rgba(15, 23, 42, 0.12));
}

/* --- Home: stats row --- */
.home-stats {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	padding: 10px 14px;
	margin-bottom: 16px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}
.home-stat {
	flex: 1 1 120px;
	min-width: 0;
	text-align: center;
	padding: 2px 10px;
}
.home-stat + .home-stat { border-left: 1px solid var(--border); }
.home-stat-value {
	display: block;
	font-size: 16px;
	font-weight: 700;
	color: var(--accent);
	letter-spacing: -0.01em;
	line-height: 1.2;
}
.home-stat-label {
	display: block;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-subtle);
	margin-top: 2px;
}

/* --- Home: cards grid --- */
.home-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 24px;
}
.home-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	transition: box-shadow 150ms ease, border-color 150ms ease;
}
.home-card:hover {
	box-shadow: var(--shadow-md);
	border-color: var(--border-strong);
}
.home-card-wide { grid-column: 1 / -1; }
.home-card-header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px 20px;
	border-bottom: 1px solid var(--border);
	background: var(--bg-card);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-muted);
}
.home-card-header svg { color: var(--accent); flex-shrink: 0; }
.home-card-body { padding: 20px; }

/* --- Home: server info grid --- */
.home-info-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}
.home-info-item {
	background: var(--bg-muted);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 12px 14px;
	text-align: center;
	transition: border-color 150ms ease;
}
.home-info-item:hover { border-color: var(--border-strong); }
.home-info-label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-subtle);
	margin-bottom: 4px;
}
.home-info-value {
	display: block;
	font-size: 16px;
	font-weight: 700;
	color: var(--text);
	letter-spacing: -0.01em;
}

/* --- Home: quick links grid --- */
.home-links-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}
.home-link-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	color: var(--text-muted);
	font-size: 14px;
	font-weight: 500;
	transition: all 150ms ease;
}
.home-link-item:hover {
	background: var(--bg-hover);
	border-color: var(--border-strong);
	color: var(--text);
	text-decoration: none;
}
.home-link-item svg { color: var(--text-subtle); flex-shrink: 0; transition: color 150ms ease; }
.home-link-item:hover svg { color: var(--accent); }
.home-link-accent {
	background: var(--accent-soft);
	border-color: var(--accent-soft);
	color: var(--accent);
}
.home-link-accent:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}
.home-link-accent:hover svg { color: #fff; }

/* --- Home: news --- */
.home-news-item {
	padding: 14px 0;
	border-bottom: 1px solid var(--border);
}
.home-news-item:last-child { border-bottom: 0; padding-bottom: 0; }
.home-news-item:first-child { padding-top: 0; }
.home-news-meta {
	display: flex;
	gap: 10px;
	margin-bottom: 4px;
	align-items: center;
}
.home-news-author { font-size: 13px; font-weight: 600; color: var(--accent); }
.home-news-date { font-size: 12px; color: var(--text-subtle); }
.home-news-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--text);
	margin: 0 0 6px;
}
.home-news-body {
	font-size: 14px;
	color: var(--text-muted);
	line-height: 1.6;
}
.home-news-link {
	display: inline-block;
	margin-top: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--accent);
}
.home-news-link:hover { color: var(--accent-hover); text-decoration: underline; }
.home-empty {
	color: var(--text-subtle);
	font-size: 14px;
	text-align: center;
	padding: 24px;
}

/* --- Loginbox (main/loginbox.php) --- */
.loginbox-user {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px;
	margin-bottom: 12px;
	background: var(--bg-muted);
	border-radius: var(--radius-sm);
}
.loginbox-avatar {
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--accent);
	color: #fff;
	border-radius: 999px;
	font-weight: 600;
	font-size: 14px;
}
.loginbox-username {
	font-size: 14px;
	font-weight: 600;
	color: var(--text);
}
.loginbox-server {
	font-size: 12px;
	color: var(--text-muted);
	margin-bottom: 8px;
}
.loginbox-serverswitch {
	width: 100%;
	margin-bottom: 8px;
}
.loginbox-admin {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--border);
}

/* --- Sidebar (main/sidebar.php) --- */
.sidebar-section { margin-bottom: 16px; }
.sidebar-section:last-child { margin-bottom: 0; }
.sidebar-heading {
	display: block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-subtle);
	padding: 0 8px 6px;
	margin: 0;
}
.sidebar-nav {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 0;
	list-style: none;
}
.sidebar-link {
	display: block;
	padding: 7px 10px;
	font-size: 13px;
	color: var(--text-muted);
	border-radius: var(--radius-sm);
	transition: color 150ms ease, background 150ms ease;
}
.sidebar-link:hover {
	color: var(--text);
	background: var(--bg-hover);
	text-decoration: none;
}

/* --- Submenu / pagemenu (main/submenu.php, main/pagemenu.php) --- */
.sub-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--border);
}
.sub-nav-link {
	padding: 10px 16px;
	font-size: 13px;
	font-weight: 500;
	color: var(--text-muted);
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	transition: color 150ms ease, border-color 150ms ease;
}
.sub-nav-link:hover {
	color: var(--text);
	text-decoration: none;
}
.sub-nav-active,
.sub-nav-link.sub-nav-active {
	color: var(--accent);
	border-bottom-color: var(--accent);
}
.sub-nav-active:hover {
	color: var(--accent);
	text-decoration: none;
}

.page-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-bottom: 20px;
}
.page-nav-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-subtle);
	margin-right: 4px;
}
.page-nav-link {
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 500;
	color: var(--text-muted);
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	transition: all 150ms ease;
}
.page-nav-link:hover {
	color: var(--accent);
	background: var(--accent-soft);
	border-color: var(--accent-soft);
	text-decoration: none;
}

/* --- Home: redesigned Server Information card --- */
.home-srv {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	margin-bottom: 16px;
}
.home-srv-hdr {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 16px;
	border-bottom: 1px solid var(--border);
	background: linear-gradient(to right, var(--accent-soft), var(--bg-card) 60%);
}
.home-srv-hdr-left {
	display: flex;
	align-items: center;
	gap: 8px;
}
.home-srv-hdr-left svg { color: var(--accent); flex-shrink: 0; width: 14px; height: 14px; }
.home-srv-title {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--text);
	letter-spacing: -0.005em;
}
.home-srv-mode {
	display: inline-flex;
	align-items: center;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--accent);
	background: var(--accent-soft);
	padding: 2px 8px;
	border-radius: 999px;
	white-space: nowrap;
}
.home-srv-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}
.home-srv-section {
	padding: 12px 16px;
	border-right: 1px solid var(--border);
}
.home-srv-section:last-child { border-right: 0; }
.home-srv-section-label {
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-subtle);
	margin-bottom: 8px;
}
.home-srv-pairs {
	display: flex;
	gap: 18px;
}
.home-srv-pair {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.home-srv-num {
	font-size: 18px;
	font-weight: 700;
	color: var(--accent);
	letter-spacing: -0.01em;
	line-height: 1.1;
}
.home-srv-label {
	font-size: 11px;
	color: var(--text-muted);
	margin-top: 2px;
}

/* --- Home responsive --- */
@media (max-width: 860px) {
	.home-hero {
		grid-template-columns: 1fr;
		text-align: center;
		padding: 56px 20px 0;
		min-height: 0;
	}
	.home-hero-badge { left: 20px; top: 18px; }
	.home-hero-title { font-size: 32px; }
	.home-hero-sub { font-size: 15px; }
	.home-hero-text {
		text-align: center;
		padding-bottom: 16px;
		align-items: center;
	}
	.home-hero-cta {
		position: static;
		justify-content: center;
		margin-top: 16px;
	}
	.home-hero-art { align-self: center; justify-content: center; margin-top: 8px; }
	.home-hero-art img { max-height: 260px; max-width: 100%; }
	.home-srv-grid { grid-template-columns: 1fr; }
	.home-srv-section { border-right: 0; border-bottom: 1px solid var(--border); }
	.home-srv-section:last-child { border-bottom: 0; }
	.home-hero-title { font-size: 26px; }
	.home-stats { gap: 0; }
	.home-stat + .home-stat { border-left: 0; border-top: 1px solid var(--border); }
	.home-stat { flex-basis: 100%; padding: 12px; }
}
@media (max-width: 520px) {
	.home-srv-pairs { gap: 16px; }
	.home-srv-num { font-size: 24px; }
}

/* ============================================================
   Auth pages (account/login.php, account/create.php,
   account/changepass.php, account/resetpass.php, etc.)
   ============================================================ */

.auth-wrapper {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 24px 16px;
}
.auth-card {
	width: 100%;
	max-width: 420px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	overflow: hidden;
}
.auth-card-wide { max-width: 580px; }
.auth-card-accent {
	height: 3px;
	background: var(--accent);
}
.auth-card-inner { padding: 32px 28px; }

.auth-header { text-align: center; margin-bottom: 24px; }
.auth-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 20px;
	margin-bottom: 12px;
}
.auth-title {
	font-size: 20px;
	font-weight: 600;
	color: var(--text);
	letter-spacing: -0.01em;
	margin: 0 0 4px;
}
.auth-sub {
	font-size: 13px;
	color: var(--text-muted);
}

.auth-error {
	background: var(--danger-bg);
	border: 1px solid var(--danger-border);
	border-left: 3px solid var(--danger);
	color: var(--danger-text);
	padding: 10px 14px;
	margin-bottom: 16px;
	border-radius: var(--radius-sm);
	font-size: 13px;
}

.auth-notes {
	background: var(--bg-muted);
	border: 1px solid var(--border);
	padding: 12px 14px;
	margin-bottom: 16px;
	border-radius: var(--radius-sm);
	font-size: 13px;
	color: var(--text-muted);
	line-height: 1.6;
}
.auth-notes a { color: var(--accent); }

.auth-field {
	margin-bottom: 16px;
	flex: 1;
	min-width: 0;
}
.auth-field label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-muted);
	margin-bottom: 6px;
}
.auth-field input[type="text"],
.auth-field input[type="password"],
.auth-field input[type="email"],
.auth-field select {
	width: 100%;
	max-width: 100%;
	padding: 10px 12px;
	font-size: 14px;
}

.auth-row {
	display: flex;
	gap: 14px;
}
.auth-gender {
	display: flex;
	gap: 18px;
	padding: 8px 0;
}
.auth-radio {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: var(--text);
	cursor: pointer;
}
.auth-radio input[type="radio"] {
	width: auto;
	accent-color: var(--accent);
}

.auth-link-small {
	display: inline-block;
	margin-top: 6px;
	font-size: 12px;
	color: var(--accent);
}

.auth-tos {
	font-size: 12px;
	color: var(--text-muted);
	margin-bottom: 16px;
	line-height: 1.6;
}
.auth-tos a { color: var(--accent); }

.auth-submit {
	width: 100%;
	height: 42px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.auth-footer {
	text-align: center;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--border);
}
.auth-footer-text { font-size: 13px; color: var(--text-muted); }
.auth-footer-link {
	font-size: 13px;
	font-weight: 600;
	color: var(--accent);
	margin-left: 6px;
}
.auth-footer-link:hover { color: var(--accent-hover); }
.auth-footer-row { margin-bottom: 6px; }
.auth-footer-row:last-child { margin-bottom: 0; }
.auth-footer-link-dim { font-size: 12px; color: var(--text-muted); }
.auth-footer-link-dim:hover { color: var(--accent); }
.auth-footer-sep { font-size: 12px; color: var(--text-subtle); margin: 0 6px; }

@media (max-width: 600px) {
	.auth-card-inner { padding: 24px 18px; }
	.auth-card-wide { max-width: 100%; }
	.auth-row { flex-direction: column; gap: 0; }
}

/* ============================================================
   Server info page (server/info.php)
   ============================================================ */

.info-page { max-width: 940px; margin: 0 auto; }
.info-two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 16px;
}
.info-box {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	margin-bottom: 16px;
}
.info-box-hdr {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px 18px;
	border-bottom: 1px solid var(--border);
}
.info-box-hdr svg { color: var(--accent); flex-shrink: 0; }
.info-box-hdr h3 {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-muted);
}

.info-rows { padding: 4px 0; }
.info-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 18px;
	border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: 0; }
.info-row:hover { background: var(--bg-hover); }
.info-lbl { font-size: 13px; color: var(--text-muted); }
.info-val {
	font-size: 14px;
	font-weight: 600;
	color: var(--text);
	letter-spacing: -0.005em;
}

.info-classes-grid,
.info-features-grid,
.info-commands-grid {
	display: grid;
	gap: 10px;
	padding: 18px;
}
.info-classes-grid { grid-template-columns: repeat(3, 1fr); }
.info-features-grid { grid-template-columns: repeat(2, 1fr); }
.info-commands-grid { grid-template-columns: repeat(2, 1fr); }

.info-class-item,
.info-feature-box,
.info-cmd-item {
	background: var(--bg-muted);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 12px 14px;
	transition: border-color 150ms ease;
}
.info-class-item:hover,
.info-feature-box:hover,
.info-cmd-item:hover { border-color: var(--border-strong); }

.info-class-name { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.info-class-count { font-size: 12px; color: var(--text-muted); }

.info-feature-name {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--text);
	margin-bottom: 4px;
}
.info-feature-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.info-cmd {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 600;
	color: var(--accent);
	background: var(--accent-soft);
	padding: 2px 8px;
	border-radius: 4px;
	margin-bottom: 6px;
}
.info-cmd-desc { font-size: 13px; color: var(--text-muted); }

.info-sub-title {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-muted);
	padding: 14px 18px 6px;
	margin: 0;
}

/* Legacy rule classes kept as a fallback for any inherited markup */
.info-rules { padding: 4px 0; }
.info-rule-item {
	display: flex;
	gap: 12px;
	padding: 12px 18px;
	border-bottom: 1px solid var(--border);
}
.info-rule-item:last-child { border-bottom: 0; }
.info-rule-item:hover { background: var(--bg-hover); }
.info-rule-num {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	color: var(--accent);
	background: var(--accent-soft);
	border-radius: 999px;
}
.info-rule-text { font-size: 14px; color: var(--text); line-height: 1.5; }
.info-rule-section {
	padding: 14px 18px;
	border-top: 1px solid var(--border);
}
.info-rule-section:first-child { border-top: 0; }

/* Redesigned Server Rules — sectioned cards with icons + numbered badges */
.rules-card .info-box-hdr { padding: 16px 20px; }
.rules-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 16px 18px 20px;
}
.rules-section {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: border-color 150ms ease, box-shadow 150ms ease;
}
.rules-section:hover {
	border-color: var(--border-strong);
	box-shadow: var(--shadow-sm);
}
.rules-section-hdr {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	background: linear-gradient(to right, var(--accent-soft) 0%, var(--bg-muted) 70%);
	border-bottom: 1px solid var(--border);
}
.rules-section-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: var(--radius-sm);
	background: var(--bg-card);
	color: var(--accent);
	flex-shrink: 0;
	border: 1px solid var(--accent-soft);
}
.rules-section-title {
	margin: 0;
	flex: 1;
	font-size: 14px;
	font-weight: 600;
	color: var(--text);
	letter-spacing: -0.005em;
}
.rules-section-count {
	flex-shrink: 0;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--accent);
	background: var(--bg-card);
	border: 1px solid var(--accent-soft);
	padding: 3px 10px;
	border-radius: 999px;
}
.rules-section-list {
	list-style: none;
	margin: 0;
	padding: 6px 0;
	counter-reset: rule;
}
.rules-item {
	display: flex;
	gap: 14px;
	padding: 10px 16px;
	transition: background 150ms ease;
}
.rules-item + .rules-item {
	border-top: 1px dashed var(--border);
}
.rules-item:hover { background: var(--bg-hover); }
.rules-item-num {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	font-size: 11px;
	font-weight: 700;
	color: var(--accent);
	background: var(--accent-soft);
	border-radius: 999px;
	margin-top: 1px;
}
.rules-item-text {
	flex: 1;
	font-size: 13px;
	line-height: 1.65;
	color: var(--text);
}

@media (max-width: 760px) {
	.info-two-col,
	.info-classes-grid,
	.info-features-grid,
	.info-commands-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Downloads page (downloads/index.php)
   ============================================================ */

.dl-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
	margin-bottom: 24px;
}
.dl-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	transition: box-shadow 150ms ease, border-color 150ms ease;
}
.dl-card:hover {
	box-shadow: var(--shadow-md);
	border-color: var(--border-strong);
}
.dl-card-top {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px;
	border-bottom: 1px solid var(--border);
}
.dl-icon {
	width: 42px;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--accent-soft);
	border-radius: var(--radius-sm);
	flex-shrink: 0;
}
.dl-icon svg { color: var(--accent); }
.dl-name {
	font-size: 15px;
	font-weight: 600;
	color: var(--text);
	margin: 0;
}
.dl-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 2px 8px;
	border-radius: var(--radius-sm);
	background: var(--bg-muted);
	color: var(--text-muted);
	margin-left: 8px;
}
.dl-desc {
	font-size: 13px;
	color: var(--text-muted);
	padding: 14px 18px;
	line-height: 1.5;
}
.dl-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 18px 18px;
	padding: 10px 14px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	background: var(--accent);
	border-radius: var(--radius-sm);
	transition: background 150ms ease;
}
.dl-btn:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
.dl-btn svg { flex-shrink: 0; }

.dl-steps { padding: 8px 18px 18px; }
.dl-step {
	display: flex;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid var(--border);
}
.dl-step:last-child { border-bottom: 0; }
.dl-step-num {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	color: #fff;
	background: var(--accent);
	border-radius: 999px;
	font-size: 13px;
}
.dl-step-title { font-size: 14px; font-weight: 600; color: var(--text); margin: 0 0 4px; }
.dl-step-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ============================================================
   Rankings page (ranking/*.php)
   ============================================================ */

.rank-filter-select {
	padding: 6px 10px;
	font-size: 13px;
	max-width: 200px;
}
.rank-filter-btn {
	padding: 6px 14px;
	font-size: 13px;
	height: auto;
}

.rank-podium {
	display: flex;
	justify-content: center;
	align-items: flex-end;
	gap: 16px;
	margin-bottom: 24px;
	padding: 20px 0;
}
.rank-podium-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	text-align: center;
	padding: 20px 16px;
	width: 200px;
	transition: box-shadow 150ms ease;
}
.rank-podium-card:hover { box-shadow: var(--shadow-md); }
.rank-gold   { border-color: #f59e0b; box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.3), var(--shadow-md); }
.rank-silver { border-color: #94a3b8; box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.3), var(--shadow-md); }
.rank-bronze { border-color: #b45309; box-shadow: 0 0 0 1px rgba(180, 83, 9, 0.25), var(--shadow); }

.rank-podium-medal { font-size: 22px; margin-bottom: 8px; }
.rank-podium-sprite {
	width: 80px;
	height: 80px;
	margin: 0 auto 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.rank-podium-sprite img { max-width: 100%; max-height: 100%; image-rendering: pixelated; }
.rank-podium-name {
	font-size: 14px;
	font-weight: 600;
	color: var(--text);
	margin-bottom: 2px;
}
.rank-podium-name a { color: var(--text); }
.rank-podium-name a:hover { color: var(--accent); }
.rank-podium-class { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.rank-podium-stats {
	font-size: 13px;
	font-weight: 700;
	color: var(--accent);
	letter-spacing: -0.005em;
	margin-bottom: 6px;
}
.rank-podium-guild {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	font-size: 12px;
	color: var(--text-muted);
}
.rank-guild-emblem { width: 14px; height: 14px; }

.rank-num {
	font-weight: 700;
	font-size: 14px;
	text-align: center;
	min-width: 30px;
	color: var(--text-muted);
}
.rank-gold-text   { color: #b45309; }
.rank-silver-text { color: #475569; }
.rank-bronze-text { color: #78350f; }
.rank-sprite-cell { width: 32px; padding: 4px !important; }
.rank-head-sprite { width: 28px; height: 28px; image-rendering: pixelated; display: block; }
.top-ranked td { background: rgba(99, 91, 255, 0.04); }

@media (max-width: 640px) {
	.rank-podium { flex-direction: column; align-items: center; }
	.rank-podium-card { width: 100%; max-width: 240px; }
}

/* ============================================================
   Wiki module (wiki/*.php)
   ============================================================ */

.wiki-app {
	display: flex;
	gap: 16px;
	min-height: 600px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
}
.wiki-sidebar {
	flex: 0 0 240px;
	display: flex;
	flex-direction: column;
	border-right: 1px solid var(--border);
	background: var(--bg-muted);
}
.wiki-sidebar-hdr {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	border-bottom: 1px solid var(--border);
}
.wiki-sidebar-title {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-muted);
}
.wiki-btn-new,
.wiki-add-btn {
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	color: var(--accent);
	background: var(--accent-soft);
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	cursor: pointer;
	padding: 0;
}
.wiki-btn-new:hover,
.wiki-add-btn:hover { background: var(--accent); color: #fff; }
.wiki-add-menu {
	position: absolute;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-md);
	padding: 8px;
	min-width: 160px;
	z-index: 50;
}
.wiki-add-menu-title {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-subtle);
	padding: 4px 8px 8px;
}

.wiki-sidebar-search {
	margin: 8px 12px;
	padding: 7px 10px;
	font-size: 13px;
	background: var(--bg-card);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	width: auto;
}
.wiki-sidebar-pages { flex: 1; overflow-y: auto; padding: 4px 0; }
.wiki-sidebar-cat { margin-bottom: 4px; }
.wiki-sidebar-cat-name {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-subtle);
	padding: 8px 16px 4px;
}
.wiki-sidebar-link {
	display: block;
	padding: 6px 16px 6px 24px;
	font-size: 13px;
	color: var(--text-muted);
	border-left: 2px solid transparent;
	transition: color 150ms ease, background 150ms ease;
}
.wiki-sidebar-link:hover {
	background: var(--bg-hover);
	color: var(--text);
	text-decoration: none;
}
.wiki-sidebar-link.active {
	color: var(--accent);
	background: var(--accent-soft);
	border-left-color: var(--accent);
}
.wiki-sidebar-empty {
	padding: 20px 16px;
	font-size: 13px;
	color: var(--text-subtle);
	text-align: center;
}

.wiki-main {
	flex: 1;
	min-width: 0;
	padding: 24px;
	overflow-y: auto;
	background: var(--bg-card);
}
.wiki-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 300px;
	color: var(--text-subtle);
	gap: 12px;
}
.wiki-placeholder p { font-size: 14px; }

.wiki-view-hdr,
.wiki-edit-actions {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--border);
	margin-bottom: 16px;
	gap: 12px;
}
.wiki-view-title {
	font-size: 22px;
	font-weight: 600;
	color: var(--text);
	margin: 0;
	letter-spacing: -0.01em;
}
.wiki-view-cat {
	font-size: 11px;
	color: var(--accent);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.wiki-meta {
	font-size: 12px;
	color: var(--text-subtle);
	margin-top: 4px;
}
.wiki-view-actions { display: flex; gap: 8px; flex-shrink: 0; border: 0; padding: 0; margin: 0; }

.wiki-action-btn,
.wiki-save-btn,
.wiki-cancel-btn {
	padding: 6px 14px;
	font-size: 13px;
	height: auto;
}
.wiki-cancel-btn {
	background: var(--bg-card);
	color: var(--text-muted);
	border: 1px solid var(--border-strong);
}
.wiki-cancel-btn:hover { background: var(--bg-hover); color: var(--text); }

.wiki-content {
	font-size: 14px;
	color: var(--text);
	line-height: 1.7;
}
.wiki-content h1,
.wiki-content h2,
.wiki-content h3 { margin-top: 24px; }
.wiki-content table { margin: 12px 0; }
.wiki-content code { font-size: 13px; }

.wiki-edit-fields { margin-bottom: 12px; }
.wiki-edit-row { display: flex; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.wiki-edit-field { display: flex; flex-direction: column; flex: 1; min-width: 200px; }
.wiki-edit-field label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-muted);
	margin-bottom: 4px;
}
.wiki-edit-field input { width: 100%; max-width: none; }

.wiki-toolbar,
.wiki-editor-toolbar {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 6px 8px;
	background: var(--bg-muted);
	border: 1px solid var(--border);
	border-bottom: 0;
	border-radius: var(--radius-sm) var(--radius-sm) 0 0;
	flex-wrap: wrap;
}
.wiki-toolbar button,
.wiki-editor-toolbar button {
	width: 30px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	color: var(--text-muted);
	background: transparent;
	border: 1px solid transparent;
	border-radius: 4px;
	cursor: pointer;
	padding: 0;
}
.wiki-toolbar button:hover,
.wiki-editor-toolbar button:hover {
	background: var(--bg-card);
	color: var(--accent);
	border-color: var(--border);
}
.wiki-tb-sep { width: 1px; height: 18px; background: var(--border); margin: 0 4px; }
.wiki-tb-table-btn { font-size: 11px; width: auto; padding: 0 6px; }

.wiki-ce-editor,
.wiki-source-editor {
	min-height: 400px;
	padding: 18px 20px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 0 0 var(--radius-sm) var(--radius-sm);
	color: var(--text);
	font-size: 14px;
	line-height: 1.7;
	outline: none;
}
.wiki-source-editor { font-family: var(--font-mono); font-size: 13px; }
.wiki-editor-wrap { margin-bottom: 16px; }

@media (max-width: 760px) {
	.wiki-app { flex-direction: column; }
	.wiki-sidebar { flex-basis: auto; border-right: 0; border-bottom: 1px solid var(--border); }
}

/* ============================================================
   Itemshop & cart (purchase/, itemshop/)
   ============================================================ */

.shop-table { margin-bottom: 20px; }
.shop-table td { vertical-align: middle; }
.shop-item-image {
	width: 48px;
	text-align: center;
}
.shop-item-image img {
	max-width: 40px;
	max-height: 40px;
	border-radius: 4px;
	background: var(--bg-muted);
	padding: 2px;
}
.shop-item-name { font-weight: 600; color: var(--text); }
.shop-item-info { font-size: 12px; color: var(--text-muted); display: block; }
.shop-item-cost,
.shop-item-cost-qty {
	font-family: var(--font-mono);
	font-weight: 600;
	color: var(--accent);
}
.shop-item-qty { width: 60px; text-align: center; }
.shop-item-action a, .shop-item-action button {
	padding: 6px 12px;
	font-size: 13px;
	height: auto;
}
.shop-server-name {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-muted);
}
.current-shop-category {
	font-weight: 600;
	color: var(--accent);
}

.cart-items-text,
.cart-info-text,
.cart-total-text,
.cart-item-name,
.cart-item-count,
.cart-sub-total { font-size: 14px; color: var(--text); }
.cart-total-text,
.cart-sub-total { font-weight: 600; color: var(--accent); font-family: var(--font-mono); }

.checkout-text,
.checkout-info-text { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.checkout-text a { color: var(--accent); font-weight: 500; }

/* Donate / credit conversions */
.donation-amount-text,
.credit-amount-text,
.reset-amount-text {
	font-size: 13px;
	color: var(--text-muted);
	margin-right: 6px;
}
.donation-amount,
.credit-amount,
.balance-amount,
.credit-balance,
.remaining-balance {
	font-family: var(--font-mono);
	font-weight: 600;
	color: var(--accent);
}
.enter-donation-amount { font-size: 13px; color: var(--text-muted); }
.money-input,
.credit-input { width: 120px; text-align: right; }

/* ============================================================
   Admin / panel / cms generic surfaces
   ============================================================ */

.admin-section {
	padding: 20px 0;
	border-bottom: 1px solid var(--border);
}
.admin-section:last-of-type { border-bottom: 0; padding-bottom: 0; }
.admin-section-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--text);
	margin: 0 0 6px;
}
.admin-section-desc {
	font-size: 13px;
	color: var(--text-muted);
	margin: 0 0 12px;
	line-height: 1.5;
}

.panel {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	margin-bottom: 20px;
}
.panel-heading {
	padding: 12px 18px;
	background: var(--bg-muted);
	border-bottom: 1px solid var(--border);
}
.panel-title {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--text);
}
.panel-body { padding: 18px; }

.cms-page-preview {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 16px;
	margin-bottom: 12px;
}
.cms-page-preview-content {
	font-size: 14px;
	color: var(--text);
	line-height: 1.6;
}

/* ============================================================
   Generic FluxCP utility / form helpers
   ============================================================ */

.forms { display: flex; flex-direction: column; gap: 16px; }
.form-group { margin-bottom: 14px; }
.form-control { width: 100%; }

.text-muted { color: var(--text-muted) !important; }
.note,
.notice,
.reason,
.request { font-size: 13px; color: var(--text-muted); }
.cost,
.qty,
.time { font-family: var(--font-mono); color: var(--text); font-size: 13px; }

.empty-row td,
.empty-row {
	text-align: center;
	color: var(--text-subtle);
	font-style: italic;
	padding: 24px !important;
}
.child-row td { background: var(--bg-muted); padding-left: 32px; }
.nav-placement-row { background: var(--bg-muted); }

.broken.yes { color: var(--danger-text); }
.broken.no { color: var(--success-text); }
.equipped { color: var(--success-text); font-weight: 600; }
.refineable.yes { color: var(--success-text); }
.refineable.no { color: var(--text-subtle); }
.normalslotted { color: var(--text); }
.overslotted { color: var(--warning-text); font-weight: 600; }
.not-applicable { color: var(--text-subtle); font-style: italic; }
.mvp { color: var(--warning-text); font-weight: 600; }
.monster-mode { color: var(--text-muted); font-size: 12px; }
.item_name { font-weight: 500; }
.item-drop- { color: var(--text-muted); }

.toggler {
	cursor: pointer;
	color: var(--accent);
	font-weight: 500;
}
.toggler:hover { color: var(--accent-hover); }

.module-name {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--text-muted);
	background: var(--bg-muted);
	padding: 2px 6px;
	border-radius: 4px;
}
.fs-path {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--text-muted);
}
.keyword {
	background: var(--accent-soft);
	color: var(--accent);
	padding: 0 4px;
	border-radius: 3px;
	font-weight: 500;
}

.g-recaptcha,
.no-recaptcha { margin: 12px 0; }

.security-code { display: flex; align-items: center; gap: 12px; }

.action,
.button-action {
	display: inline-flex;
	gap: 6px;
	align-items: center;
}
.td-action { white-space: nowrap; }

.unban-cb { width: auto; margin-right: 6px; }
.short { width: 80px; }
.hold-hours { width: 80px; }
.edit_reason { width: 100%; min-height: 60px; }

.raw-txn-log {
	font-family: var(--font-mono);
	font-size: 12px;
	background: var(--bg-muted);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 12px;
	white-space: pre-wrap;
	overflow-x: auto;
}

.siteconfig-editor {
	width: 100%;
	min-height: 400px;
	font-family: var(--font-mono);
	font-size: 13px;
}

.link-fields { display: flex; flex-direction: column; gap: 8px; }

/* ============================================================
   Mobile
   ============================================================ */

@media (max-width: 880px) {
	.nav-menu {
		display: none;
		position: absolute;
		top: 60px;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px;
		background: var(--bg-card);
		border-bottom: 1px solid var(--border);
		box-shadow: var(--shadow-md);
	}
	.nav-menu.open { display: flex; }
	.nav-top-link, .nav-group-label {
		display: block;
		padding: 10px 12px;
		border-radius: var(--radius-sm);
	}
	.nav-group { width: 100%; }
	.nav-dropdown {
		position: static;
		display: none;
		box-shadow: none;
		border: 0;
		padding: 4px 0 4px 12px;
		margin: 0;
	}
	.nav-group:hover .nav-dropdown { display: block; }
	.nav-toggle { display: inline-flex; }
	.topbar-inner { gap: 12px; }
	.content { padding: 20px 16px 32px; }
	.status-bar-inner { gap: 8px; padding: 0 12px; }

	table, table thead, table tbody, table tr, table td, table th { display: block; }
	table thead { display: none; }
	table tr { border-bottom: 1px solid var(--border); padding: 12px 0; }
	table tr:last-child { border-bottom: 0; }
	table td { border: 0; padding: 4px 16px; }
	table.vertical-table { display: table; }
	table.vertical-table thead { display: table-header-group; }
	table.vertical-table tbody { display: table-row-group; }
	table.vertical-table tr { display: table-row; padding: 0; }
	table.vertical-table th,
	table.vertical-table td { display: table-cell; padding: 10px 12px; }
}

/* ============================================================
   Donation Guide
   ============================================================ */

.donate-guide { max-width: 760px; margin: 0 auto; }

.dg-hero {
	text-align: center;
	padding: 28px 20px 24px;
	margin-bottom: 16px;
	background: linear-gradient(to bottom, var(--accent-soft) 0%, var(--bg-card) 100%);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
}
.dg-hero-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 12px;
	font-size: 26px;
	line-height: 1;
	color: var(--accent);
	background: var(--bg-card);
	border: 1px solid var(--accent-soft);
	border-radius: 999px;
	box-shadow: var(--shadow-sm);
}
.dg-hero-title {
	margin: 0 0 6px;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--text);
}
.dg-hero-sub {
	margin: 0 auto;
	max-width: 520px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--text-muted);
}

.dg-why { padding: 16px 18px; font-size: 14px; line-height: 1.65; color: var(--text); }
.dg-why p { margin: 0; }

.dg-rate-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 16px;
}
.dg-rate-cell {
	text-align: center;
	padding: 16px 12px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}
.dg-rate-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-subtle);
	margin-bottom: 8px;
}
.dg-rate-value { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.dg-rate-sub { margin-top: 4px; font-size: 12px; color: var(--text-muted); }

.dg-steps { list-style: none; margin: 0; padding: 6px 0; counter-reset: dg-step; }
.dg-step { display: flex; gap: 14px; padding: 14px 18px; }
.dg-step + .dg-step { border-top: 1px dashed var(--border); }
.dg-step-num {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	background: var(--accent);
	border-radius: 999px;
}
.dg-step-body { flex: 1; }
.dg-step-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.dg-step-text { font-size: 13px; line-height: 1.6; color: var(--text-muted); }

.dg-methods {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 14px 18px;
	margin-bottom: 16px;
	background: var(--bg-muted);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}
.dg-methods-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--text-muted);
	margin-right: 4px;
}
.dg-method-tag {
	font-size: 12px;
	font-weight: 600;
	color: var(--text);
	background: var(--bg-card);
	border: 1px solid var(--border-strong);
	border-radius: 999px;
	padding: 4px 12px;
}

.dg-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 20px;
	margin-bottom: 16px;
	background: linear-gradient(to right, var(--accent-soft) 0%, var(--bg-card) 80%);
	border: 1px solid var(--accent-soft);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}
.dg-cta-title { font-size: 15px; font-weight: 700; color: var(--text); }
.dg-cta-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.dg-cta-btn { flex-shrink: 0; height: 40px; padding: 0 20px; font-weight: 600; }

.dg-terms { margin: 0; padding: 14px 18px 16px 36px; }
.dg-terms li { font-size: 13px; line-height: 1.7; color: var(--text-muted); }

.dg-closed {
	padding: 16px 18px;
	text-align: center;
	font-size: 14px;
	color: var(--warning-text);
	background: var(--warning-bg);
	border: 1px solid var(--warning-border);
	border-radius: var(--radius);
}

@media (max-width: 600px) {
	.dg-rate-row { grid-template-columns: 1fr; }
	.dg-cta { flex-direction: column; align-items: stretch; text-align: center; }
	.dg-cta-btn { width: 100%; }
}
