/* ==============================================
   Memory RO Theme - FluxCP
   Paleta: Azul escuro + Roxo + Gradientes
   ============================================== */

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

/* ---- Reset & Base ---- */
*, *::before, *::after {
	box-sizing: border-box;
}

:root {
	--bg-dark: #0a0a2e;
	--bg-darker: #06061f;
	--primary-blue: #3b82f6;
	--primary-purple: #7c3aed;
	--deep-purple: #6b21a8;
	--accent-blue: #60a5fa;
	--accent-yellow: #f59e0b;
	--accent-orange: #f97316;
	--glass-bg: rgba(255, 255, 255, 0.06);
	--glass-border: rgba(255, 255, 255, 0.1);
	--text-primary: #ffffff;
	--text-secondary: #a5b4cb;
	--text-muted: #6b7a92;
	--card-bg: rgba(15, 15, 60, 0.8);
	--input-bg: rgba(255, 255, 255, 0.08);
	--input-border: rgba(255, 255, 255, 0.15);
	--success: #22c55e;
	--danger: #ef4444;
	--radius: 12px;
	--radius-sm: 8px;
	--radius-lg: 20px;
	--shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	--shadow-glow: 0 0 30px rgba(123, 58, 237, 0.2);
	--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	--gradient-main: linear-gradient(135deg, #3b82f6 0%, #7c3aed 50%, #6b21a8 100%);
	--gradient-btn: linear-gradient(135deg, #3b82f6 0%, #7c3aed 100%);
	--gradient-hero: linear-gradient(180deg, rgba(10,10,46,0.3) 0%, rgba(10,10,46,0.95) 100%);
}

body {
	margin: 0;
	padding: 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 14px;
	color: var(--text-secondary);
	background: var(--bg-dark);
	background-image:
		radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
		radial-gradient(ellipse at 80% 20%, rgba(123, 58, 237, 0.08) 0%, transparent 50%),
		radial-gradient(ellipse at 50% 80%, rgba(107, 33, 168, 0.05) 0%, transparent 50%);
	min-height: 100vh;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--accent-blue);
	text-decoration: none;
	transition: var(--transition);
}

a:hover {
	color: var(--primary-blue);
}

a img {
	border: 0;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Poppins', sans-serif;
	color: var(--text-primary);
	margin-top: 0;
	line-height: 1.3;
}

h2 {
	font-size: 1.75rem;
	font-weight: 700;
	letter-spacing: -0.5px;
	margin-bottom: 1rem;
	background: var(--gradient-main);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

h3 {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--text-primary);
	border-bottom: 1px solid var(--glass-border);
	padding-bottom: 0.5rem;
}

p {
	margin: 0.5rem 0 1rem 0;
	padding: 0;
}

img {
	max-width: 100%;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
	width: 8px;
}
::-webkit-scrollbar-track {
	background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
	background: var(--primary-purple);
	border-radius: 4px;
}

/* ---- Navbar ---- */
.memoryro-navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	padding: 0.75rem 0;
	transition: var(--transition);
	background: transparent;
}

.memoryro-navbar.scrolled {
	background: rgba(10, 10, 46, 0.95);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-bottom: 1px solid var(--glass-border);
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 2rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.navbar-logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
}

.navbar-logo img {
	height: 64px;
	width: auto;
	border-radius: 10px;
	transition: var(--transition);
}

.navbar-logo:hover img {
	transform: scale(1.05);
	filter: drop-shadow(0 0 12px rgba(123, 58, 237, 0.4));
}


.navbar-menu {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.navbar-menu > li {
	position: relative;
}

.navbar-menu > li > a {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.5rem 1rem;
	color: var(--text-secondary);
	font-size: 0.9rem;
	font-weight: 500;
	border-radius: var(--radius-sm);
	transition: var(--transition);
	white-space: nowrap;
}

.navbar-menu > li > a:hover,
.navbar-menu > li:hover > a {
	color: var(--text-primary);
	background: var(--glass-bg);
}

.navbar-menu > li > a .caret {
	font-size: 0.6rem;
	opacity: 0.6;
}

/* Dropdown */
.navbar-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: rgba(15, 15, 55, 0.98);
	backdrop-filter: blur(20px);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius);
	padding: 0.5rem;
	padding-top: 0.75rem;
	margin: 0;
	box-shadow: var(--shadow);
	list-style: none;
	z-index: 1001;
}

.navbar-menu > li > .navbar-dropdown.open {
	display: block;
	animation: dropdownFadeIn 0.2s ease;
}

.navbar-dropdown li a {
	display: block;
	padding: 0.5rem 1rem;
	color: var(--text-secondary);
	font-size: 0.875rem;
	border-radius: var(--radius-sm);
	transition: var(--transition);
}

.navbar-dropdown li a:hover {
	color: var(--text-primary);
	background: var(--glass-bg);
}

@keyframes dropdownFadeIn {
	from { opacity: 0; transform: translateY(-8px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Navbar Actions */
.navbar-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.navbar-user-info {
	color: var(--text-secondary);
	font-size: 0.875rem;
}

.navbar-user-info strong a {
	color: var(--accent-blue);
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.6rem 1.5rem;
	font-family: 'Inter', sans-serif;
	font-size: 0.875rem;
	font-weight: 600;
	border: none;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: var(--transition);
	text-decoration: none;
	white-space: nowrap;
}

.btn-ghost {
	background: transparent;
	color: var(--text-secondary);
	border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
	color: var(--text-primary);
	background: var(--glass-bg);
	border-color: rgba(255,255,255,0.2);
}

.btn-primary {
	background: var(--gradient-btn);
	color: #fff;
	box-shadow: 0 4px 15px rgba(123, 58, 237, 0.3);
}

.btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 25px rgba(123, 58, 237, 0.4);
	color: #fff;
}

.btn-accent {
	background: var(--accent-yellow);
	color: #000;
	font-weight: 700;
	box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-accent:hover {
	background: #fbbf24;
	transform: translateY(-1px);
	box-shadow: 0 6px 25px rgba(245, 158, 11, 0.4);
	color: #000;
}

.btn-lg {
	padding: 0.85rem 2rem;
	font-size: 1rem;
	border-radius: var(--radius);
}

.btn-sm {
	padding: 0.4rem 1rem;
	font-size: 0.8rem;
}

.btn-discord {
	background: #5865F2;
	color: #fff;
}

.btn-discord:hover {
	background: #4752C4;
	color: #fff;
}

/* ---- Hero Section ---- */
.hero-section {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding: 8rem 2rem 4rem;
	overflow: hidden;
}

.hero-bg {
	position: absolute;
	inset: 0;
	background-image: var(--gradient-hero), url('../img/backgroound.png');
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
	z-index: 0;
	pointer-events: none;
}

.hero-particles {
	position: absolute;
	inset: 0;
	overflow: hidden;
	z-index: 0;
}

.hero-particles span {
	position: absolute;
	width: 3px;
	height: 3px;
	background: rgba(123, 58, 237, 0.4);
	border-radius: 50%;
	animation: particleFloat 8s infinite ease-in-out;
	pointer-events: none;
}

.hero-particles span:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 7s; }
.hero-particles span:nth-child(2) { left: 25%; top: 60%; animation-delay: 1s; animation-duration: 9s; }
.hero-particles span:nth-child(3) { left: 45%; top: 30%; animation-delay: 2s; animation-duration: 6s; }
.hero-particles span:nth-child(4) { left: 65%; top: 70%; animation-delay: 0.5s; animation-duration: 8s; }
.hero-particles span:nth-child(5) { left: 80%; top: 40%; animation-delay: 1.5s; animation-duration: 10s; }
.hero-particles span:nth-child(6) { left: 90%; top: 80%; animation-delay: 3s; animation-duration: 7s; }

@keyframes particleFloat {
	0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
	50% { transform: translateY(-40px) scale(1.5); opacity: 1; }
}

.hero-container {
	max-width: 1280px;
	margin: 0 auto;
	width: 100%;
	position: relative;
	z-index: 1;
}

.hero-content {
	max-width: 640px;
}

.hero-badge {
	display: inline-block;
	padding: 0.4rem 1.2rem;
	background: rgba(245, 158, 11, 0.15);
	border: 1px solid rgba(245, 158, 11, 0.3);
	color: var(--accent-yellow);
	font-size: 0.8rem;
	font-weight: 600;
	border-radius: 50px;
	margin-bottom: 1.5rem;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.hero-title {
	font-family: 'Poppins', sans-serif;
	font-size: 3.5rem;
	font-weight: 800;
	color: var(--text-primary);
	line-height: 1.15;
	margin-bottom: 1rem;
}

.hero-title em {
	font-style: normal;
	background: var(--gradient-main);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.hero-description {
	font-size: 1.1rem;
	color: var(--text-secondary);
	line-height: 1.7;
	margin-bottom: 2rem;
	max-width: 500px;
}

.hero-stats {
	display: flex;
	gap: 2.5rem;
	margin-bottom: 2.5rem;
}

.hero-stat-icon {
	width: 48px;
	height: 48px;
	margin: 0 auto 0.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	border-radius: 50%;
	font-size: 1.2rem;
}

.hero-stat-value {
	font-family: 'Poppins', sans-serif;
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--text-primary);
}

.hero-stat-label {
	font-size: 0.8rem;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.hero-buttons {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	position: relative;
	z-index: 2;
}

.hero-buttons .btn {
	position: relative;
	z-index: 2;
}

/* ---- Main Content ---- */
.main-wrapper {
	padding-top: 80px;
}

.content-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 2rem;
}

.content-card {
	background: var(--card-bg);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-lg);
	padding: 2rem;
	box-shadow: var(--shadow);
	backdrop-filter: blur(10px);
}

/* ---- Messages ---- */
.message {
	display: block;
	padding: 1rem 1.5rem;
	font-weight: 600;
	font-size: 1rem;
	color: var(--text-primary);
	background: rgba(59, 130, 246, 0.15);
	border: 1px solid rgba(59, 130, 246, 0.3);
	border-radius: var(--radius);
	margin-bottom: 1rem;
}

.notice {
	display: block;
	padding: 1rem 1.5rem;
	font-weight: 500;
	font-size: 1rem;
	color: var(--accent-yellow);
	background: rgba(245, 158, 11, 0.1);
	border: 1px solid rgba(245, 158, 11, 0.25);
	border-radius: var(--radius);
	margin-bottom: 1rem;
}

.red {
	display: block;
	padding: 1rem 1.5rem;
	font-weight: 600;
	font-size: 1rem;
	color: #fca5a5;
	background: rgba(239, 68, 68, 0.15);
	border: 1px solid rgba(239, 68, 68, 0.3);
	border-radius: var(--radius);
}

.green {
	display: block;
	padding: 1rem 1.5rem;
	font-weight: 600;
	font-size: 1rem;
	color: #86efac;
	background: rgba(34, 197, 94, 0.15);
	border: 1px solid rgba(34, 197, 94, 0.3);
	border-radius: var(--radius);
}

/* ---- Forms ---- */
input[type=text],
input[type=password],
input[type=email],
input[type=file],
input[type=number],
textarea,
select {
	font-family: 'Inter', sans-serif;
	padding: 0.7rem 1rem;
	font-size: 0.9rem;
	color: var(--text-primary);
	background: var(--input-bg);
	border: 1px solid var(--input-border);
	border-radius: var(--radius-sm);
	outline: none;
	transition: var(--transition);
	width: 100%;
	max-width: 400px;
}

input[type=text]:focus,
input[type=password]:focus,
input[type=email]:focus,
input[type=number]:focus,
textarea:focus,
select:focus {
	border-color: var(--primary-purple);
	background: rgba(255, 255, 255, 0.1);
	box-shadow: 0 0 0 3px rgba(123, 58, 237, 0.15);
}

select {
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a5b4cb' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	padding-right: 2rem;
}

select option {
	background: #1a1a4e;
	color: var(--text-primary);
}

label:hover {
	cursor: pointer;
}

input[type=submit],
button[type=submit] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.7rem 2rem;
	font-family: 'Inter', sans-serif;
	font-size: 0.9rem;
	font-weight: 600;
	color: #fff;
	background: var(--gradient-btn);
	border: none;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: var(--transition);
	box-shadow: 0 4px 15px rgba(123, 58, 237, 0.3);
}

input[type=submit]:hover,
button[type=submit]:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 25px rgba(123, 58, 237, 0.4);
}

input[type=radio],
input[type=checkbox] {
	accent-color: var(--primary-purple);
}

textarea {
	width: 100%;
	max-width: 500px;
	height: 120px;
	resize: vertical;
}

/* Generic Form */
.generic-form {
	padding: 2rem;
	background: var(--card-bg);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-lg);
	width: auto;
	box-shadow: var(--shadow);
}

.generic-form-div {
	padding: 2rem;
	background: var(--card-bg);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-lg);
	width: auto;
}

.generic-form-table {
	border-spacing: 0 0.75rem;
}

.generic-form-table th {
	text-align: right;
	padding-right: 1rem;
	vertical-align: middle;
	color: var(--text-secondary);
	font-weight: 500;
}

.generic-form-table th label {
	display: block;
	padding: 0.5rem;
}

.generic-form-table td div {
	display: block;
	padding: 0.4rem 0;
}

.generic-form-table td p {
	margin: 0.4rem 0.5rem;
	color: var(--text-secondary);
}

.generic-form-table td input[type=checkbox] {
	display: inline-block;
	margin-top: 0.4rem;
}

/* Security Code */
.security-code {
	margin: 0.5rem 0;
	text-align: left;
	width: 145px;
	height: 50px;
	border-radius: var(--radius-sm);
	overflow: hidden;
}

.action {
	color: var(--text-muted);
}

.action a,
.action span.anchor {
	color: var(--accent-blue);
	border-bottom: 1px solid transparent;
	cursor: pointer;
}

.action a:hover {
	border-bottom-color: var(--accent-blue);
}

/* ---- Tables ---- */
table {
	font-family: 'Inter', sans-serif;
	font-size: 0.875rem;
}

tr, td, th {
	vertical-align: top;
}

.horizontal-table {
	border-spacing: 0;
	border-collapse: collapse;
	width: 100%;
}

.horizontal-table th {
	padding: 0.75rem 1rem;
	background: rgba(123, 58, 237, 0.15);
	color: var(--text-primary);
	font-weight: 600;
	text-align: left;
}

.horizontal-table td {
	padding: 0.75rem 1rem;
	background: transparent;
	color: var(--text-secondary);
	border-bottom: 1px solid var(--glass-border);
}

.horizontal-table th,
.horizontal-table td {
	font-size: 0.875rem;
	border: 1px solid var(--glass-border);
}

.horizontal-table tr:hover td {
	background: var(--glass-bg);
}

.horizontal-table tr,
.horizontal-table td,
.horizontal-table th,
.vertical-table tr,
.vertical-table td,
.vertical-table th,
.generic-form-table tr,
.generic-form-table td {
	vertical-align: middle;
}

.vertical-table {
	border-spacing: 0;
	border-collapse: collapse;
}

.vertical-table th {
	padding: 0.75rem 1rem;
	background: rgba(123, 58, 237, 0.1);
	color: var(--text-primary);
	font-weight: 600;
}

.vertical-table td {
	padding: 0.75rem 1rem;
	background: transparent;
	color: var(--text-secondary);
}

.vertical-table th,
.vertical-table td {
	font-size: 0.875rem;
	border: 1px solid var(--glass-border);
}

.vertical-table label {
	display: block;
	padding: 0.35rem;
}

.vertical-table form {
	margin: 0;
	padding: 0;
}

/* ---- Submenu ---- */
#submenu {
	color: var(--text-muted);
	padding: 0.75rem 0;
	margin-bottom: 1rem;
	font-size: 0.9rem;
}

#submenu a {
	color: var(--accent-blue);
	transition: var(--transition);
}

#submenu a:hover {
	color: var(--primary-blue);
}

.current-sub-menu {
	font-weight: 600;
	color: var(--text-primary) !important;
}

/* ---- Page Menu ---- */
#pagemenu {
	margin-top: 0.5rem;
	padding: 0.75rem 0;
	font-size: 0.85rem;
	color: var(--text-muted);
	border-width: 1px 0;
	border-style: solid;
	border-color: var(--glass-border);
}

#pagemenu a {
	color: var(--accent-blue);
	text-decoration: none;
}

#pagemenu a:hover {
	color: var(--primary-blue);
}

/* ---- Login Box (user info bar) ---- */
.loginbox-bar {
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius);
	padding: 1rem 1.5rem;
	margin-bottom: 1.5rem;
	color: var(--text-secondary);
	backdrop-filter: blur(10px);
}

.loginbox-bar strong a {
	color: var(--accent-blue);
}

.loginbox-admin-menu {
	margin-top: 0.5rem;
	padding-top: 0.5rem;
	border-top: 1px solid var(--glass-border);
	color: var(--text-muted);
}

.loginbox-admin-menu a {
	color: var(--accent-blue);
}

/* ---- Sidebar (hidden in this theme - navigation in navbar) ---- */
#sidebar,
#admin_sidebar {
	display: none;
}

/* ---- Pages / Pagination ---- */
.pages {
	margin-top: 1.5rem;
	padding-top: 1rem;
	color: var(--text-muted);
	text-align: center;
	border-top: 1px solid var(--glass-border);
}

.pages .page-prev,
.pages .page-next {
	color: var(--accent-blue);
}

.pages .page-num {
	padding: 0 0.35rem;
}

.pages .current-page {
	color: var(--text-primary);
	font-weight: 700;
}

/* ---- Server Status ---- */
#server_status {
	border-spacing: 0;
	border-collapse: collapse;
	background: transparent;
	border: 1px solid var(--glass-border);
	border-radius: var(--radius);
	overflow: hidden;
	width: 100%;
}

#server_status th,
#server_status td {
	padding: 0.75rem 1rem;
	text-align: left;
	border-bottom: 1px solid var(--glass-border);
	color: var(--text-secondary);
}

#server_status th {
	background: rgba(123, 58, 237, 0.1);
	color: var(--text-primary);
}

#server_status .server {
	color: var(--text-primary);
}

.up {
	font-weight: bold;
	color: var(--success);
	text-transform: uppercase;
}

.down {
	color: var(--danger);
	text-transform: uppercase;
}

.online { color: var(--text-primary); }
.offline { color: var(--text-muted); }

/* ---- News ---- */
.newsDiv {
	margin-top: 1.5rem;
}

.newsDiv h4 {
	font-family: 'Poppins', sans-serif;
	font-size: 1.15rem;
	color: var(--text-primary);
	margin-bottom: 0.25rem;
}

.newsCont {
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius);
	padding: 1.25rem;
	margin-bottom: 1.25rem;
	transition: var(--transition);
}

.newsCont:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(123, 58, 237, 0.3);
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.newsDate {
	color: var(--text-muted);
	font-size: 0.8rem;
}

.news_link {
	color: var(--accent-blue);
}

/* ---- Copyright & Info ---- */
#copyright p,
.footer-copyright {
	margin-top: 0.5rem;
	margin-bottom: 0;
	font-style: italic;
	font-size: 0.75rem;
	color: var(--text-muted);
	text-align: center;
}

#info p {
	margin-top: 0.5rem;
	margin-bottom: 0;
	font-style: italic;
	font-size: 0.75rem;
	color: var(--text-muted);
	text-align: center;
}

/* ---- Footer ---- */
.memoryro-footer {
	background: var(--bg-darker);
	border-top: 1px solid var(--glass-border);
	padding: 3rem 2rem 1.5rem;
	margin-top: 3rem;
}

.footer-container {
	max-width: 1280px;
	margin: 0 auto;
}

.footer-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 2rem;
	margin-bottom: 2rem;
	flex-wrap: wrap;
}

.footer-brand {
	max-width: 300px;
}

.footer-brand-title {
	font-family: 'Poppins', sans-serif;
	font-size: 1.3rem;
	font-weight: 700;
	background: var(--gradient-main);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 0.5rem;
}

.footer-brand p {
	color: var(--text-muted);
	font-size: 0.85rem;
	line-height: 1.6;
}

.footer-links h4 {
	font-family: 'Poppins', sans-serif;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 0.75rem;
}

.footer-links ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-links ul li {
	margin-bottom: 0.4rem;
}

.footer-links ul li a {
	color: var(--text-muted);
	font-size: 0.85rem;
	transition: var(--transition);
}

.footer-links ul li a:hover {
	color: var(--accent-blue);
}

.footer-selectors {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	align-items: center;
}

.footer-selectors span {
	color: var(--text-muted);
	font-size: 0.85rem;
}

.footer-selectors select {
	max-width: 160px;
	padding: 0.4rem 0.75rem;
	font-size: 0.8rem;
}

.footer-bottom {
	border-top: 1px solid var(--glass-border);
	padding-top: 1.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
}

.footer-bottom p {
	color: var(--text-muted);
	font-size: 0.8rem;
	margin: 0;
}

.footer-bottom a {
	color: var(--accent-blue);
}

/* ---- Search Form ---- */
.search-form,
.search-form2 {
	display: none;
	margin: 0 0 1rem 0;
	padding: 1rem;
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius);
}

.search-form p,
.search-form2 p {
	margin: 0;
	padding: 0.5rem;
	color: var(--text-muted);
	text-align: left;
}

.search-form label,
.search-form2 label {
	display: inline-block;
	margin: 0 0 0.25rem 0;
	font-size: 0.8rem;
	color: var(--text-secondary);
}

.search-form input[type=text],
.search-form2 input[type=text] {
	display: inline-block;
	margin: 0 0 0.25rem 0;
	padding: 0.35rem 0.5rem;
	font-size: 0.8rem;
	width: 120px;
}

.search-form input[type=submit],
.search-form2 input[type=submit] {
	display: inline-block;
	font-size: 0.8rem;
	padding: 0.35rem 0.75rem;
}

.search-form select,
.search-form2 select {
	display: inline-block;
	margin: 0.15rem 0;
	font-size: 0.8rem;
	max-width: 140px;
}

/* ---- Shop ---- */
.shop-table {
	width: 100%;
	color: var(--text-secondary);
	border-spacing: 0 0.75rem;
	border-collapse: separate;
}

.shop-table td {
	padding: 1rem;
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius);
}

.shop-item-name {
	margin: 0 0 0.4rem 0;
	padding: 0 0 0.25rem 0;
	font-size: 1.2rem;
	font-family: 'Poppins', sans-serif;
	color: var(--text-primary);
	border-bottom: 1px solid var(--glass-border);
}

.cost {
	color: var(--accent-yellow);
	font-size: 1.1rem;
	font-weight: 700;
	text-transform: uppercase;
}

.shop-item-action a {
	color: var(--accent-blue);
	border-bottom: 1px solid transparent;
}

.shop-item-action a:hover {
	border-bottom-color: var(--accent-blue);
}

/* ---- Misc ---- */
.not-applicable {
	font-style: italic;
	color: var(--text-muted);
}

.state-pending { color: var(--accent-yellow); }
.state-banned { color: var(--danger); }
.state-permanently-banned { font-weight: bold; color: var(--danger); }

.info-text {
	margin-bottom: 0.5rem;
	padding: 0.75rem;
	color: var(--text-secondary);
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-sm);
	text-align: center;
}

.info-text-total { font-weight: bold; color: var(--text-primary); }
.info-text-results { font-weight: bold; color: var(--text-primary); }

.toggler { font-weight: bold; }
.toggler a { color: var(--accent-blue); }

.sortable {
	color: var(--text-primary);
	text-decoration: underline;
}

.sortable:hover {
	color: var(--accent-blue);
}

.block-link {
	display: block;
	padding: 0.25rem;
	color: var(--accent-blue);
	border-bottom: 1px solid var(--glass-border);
}

.button-action {
	padding: 0.5rem 0;
	text-align: left;
}

.note {
	padding: 0.75rem;
	color: var(--text-secondary);
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-sm);
	font-style: italic;
}

.keyword {
	color: var(--accent-yellow);
	font-style: italic;
}

.request, .fs-path {
	display: inline-block;
	padding: 0.2rem 0.5rem;
	font-family: 'Fira Code', Monaco, monospace;
	font-size: 0.8rem;
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	border-radius: 4px;
}

/* Credit Balance */
.credit-balance {
	float: right;
	padding: 1rem;
	color: var(--text-primary);
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius);
}

.credit-balance .balance-text {
	display: inline-block;
	margin-right: 0.5rem;
	color: var(--text-muted);
	text-transform: uppercase;
	font-size: 0.8rem;
}

.credit-balance .balance-amount {
	font-weight: bold;
	color: var(--accent-yellow);
}

/* Character Stats */
.character-stats {
	border-spacing: 0;
	border-collapse: collapse;
	color: var(--text-muted);
}

.character-stats td {
	padding: 0 0.75rem 0.35rem 0;
	border: 0;
	text-align: center;
}

.character-stats .stat-name { color: var(--text-secondary); }
.character-stats .stat-value { color: var(--text-primary); }

/* WoE Table */
.woe-table {
	border-spacing: 0;
	border-collapse: collapse;
	background: transparent;
	border: 1px solid var(--glass-border);
	border-radius: var(--radius);
	overflow: hidden;
}

.woe-table th,
.woe-table td {
	padding: 0.5rem 1rem;
	color: var(--text-secondary);
}

.woe-table th {
	font-weight: 500;
	border-bottom: 1px solid var(--glass-border);
	color: var(--text-primary);
}

.woe-table .server { font-weight: bold; color: var(--text-primary); }
.woe-table .time { font-style: italic; color: var(--text-secondary); }

/* Ranking */
.top-ranked td {
	font-weight: bold;
	color: var(--accent-yellow);
	background: rgba(245, 158, 11, 0.05);
}

.top-ranked a {
	color: var(--accent-yellow);
	border-bottom: 1px dotted rgba(245, 158, 11, 0.3);
}

/* Item Drops */
.item-drop-mvp td {
	color: var(--text-primary);
	background: rgba(239, 68, 68, 0.05);
}

.item-drop-card td {
	color: var(--text-primary);
	background: rgba(59, 130, 246, 0.05);
}

.mvp {
	font-size: 0.65rem;
	font-weight: bold;
	color: var(--danger);
	vertical-align: top;
}

/* Equipped */
.equipped td {
	background: rgba(59, 130, 246, 0.05);
}

/* Slots */
.overslotted1 { color: #22c55e; }
.overslotted2 { color: #38bdf8; }
.overslotted3 { color: #f59e0b; }
.overslotted4 { color: #a855f7; }

.hold-hours {
	color: var(--accent-yellow);
	font-style: italic;
}

/* Cart */
.cart-items-text {
	margin: 0 0 0.5rem 0;
	padding: 0.75rem;
	color: var(--text-secondary);
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius);
}

.cart-item-name {
	color: var(--text-primary);
	border-bottom: 1px dotted var(--glass-border);
}

.cart-item-count {
	font-size: 1.1rem;
	font-weight: bold;
	color: var(--text-primary);
}

/* Donation */
.donation-amount-text {
	margin: 0;
	padding: 0;
	font-size: 1.1rem;
	text-align: center;
	color: var(--text-primary);
}

.credit-amount-text {
	font-size: 0.75rem;
	text-transform: uppercase;
	color: var(--text-muted);
	text-align: center;
	letter-spacing: 1px;
}

.donation-amount { font-weight: bold; color: var(--accent-yellow); }
.credit-amount { color: var(--text-secondary); }
.exchange-rate { font-size: 1.1rem; font-weight: bold; color: var(--accent-yellow); }

.important {
	font-size: 1.1rem;
	color: var(--text-primary);
}

.important .server-name { font-weight: bold; }

/* Submit Button */
.submit_button {
	display: inline-block;
	margin: 0.75rem;
	padding: 0.5rem 1.5rem;
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-sm);
	color: var(--text-secondary);
	cursor: pointer;
	transition: var(--transition);
}

.submit_button:hover {
	color: var(--text-primary);
	background: var(--primary-purple);
	border-color: var(--primary-purple);
}

/* Install Table */
.install_table th,
.install_table td {
	padding: 0.5rem 1rem;
	border: 1px solid var(--glass-border);
}

.install_table th {
	background: rgba(123, 58, 237, 0.1);
	color: var(--text-primary);
}

.install_table td {
	width: 180px;
	text-align: center;
	color: var(--text-secondary);
}

.created { color: var(--success); width: 80px; }
.missing { color: var(--danger); width: 80px; }

/* Job Classes */
.job-classes {
	border-spacing: 0;
}

.job-classes td {
	padding-right: 0.75rem;
	border-right: 1px solid var(--glass-border);
}

/* Module Name */
.module-name {
	font-weight: bold;
	font-size: 1.1rem;
	color: var(--text-primary);
}

.empty-row { display: none; }

/* ReCaptcha fix */
.g-recaptcha {
	margin: 0.5rem 0;
}

/* ---- Modal ---- */
.modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(8px);
	z-index: 2000;
	align-items: center;
	justify-content: center;
}

.modal-overlay.active {
	display: flex;
	animation: modalFadeIn 0.3s ease;
}

.modal-box {
	background: rgba(15, 15, 55, 0.98);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-lg);
	padding: 2.5rem;
	max-width: 440px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), var(--shadow-glow);
	position: relative;
}

.modal-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	border-radius: 50%;
	color: var(--text-muted);
	font-size: 1.2rem;
	cursor: pointer;
	transition: var(--transition);
	line-height: 1;
}

.modal-close:hover {
	color: var(--text-primary);
	background: rgba(239, 68, 68, 0.2);
	border-color: rgba(239, 68, 68, 0.3);
}

.modal-title {
	font-family: 'Poppins', sans-serif;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 0.5rem;
}

.modal-subtitle {
	color: var(--text-muted);
	font-size: 0.9rem;
	margin-bottom: 1.5rem;
}

.modal-form-group {
	margin-bottom: 1rem;
}

.modal-form-group label {
	display: block;
	margin-bottom: 0.4rem;
	color: var(--text-secondary);
	font-size: 0.85rem;
	font-weight: 500;
}

.modal-form-group input {
	width: 100%;
	max-width: 100%;
}

.modal-form-group select {
	max-width: 100%;
}

.modal-form-actions {
	margin-top: 1.5rem;
}

.modal-form-actions input[type=submit],
.modal-form-actions button[type=submit] {
	width: 100%;
	padding: 0.85rem;
	font-size: 1rem;
}

.modal-link {
	text-align: center;
	margin-top: 1rem;
	color: var(--text-muted);
	font-size: 0.85rem;
}

.modal-link a {
	color: var(--accent-blue);
	font-weight: 500;
}

@keyframes modalFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.modal-box::-webkit-scrollbar {
	width: 6px;
}

.modal-box::-webkit-scrollbar-thumb {
	background: var(--primary-purple);
	border-radius: 3px;
}

/* ---- Mobile Nav Toggle ---- */
.navbar-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-sm);
	padding: 0.5rem;
	cursor: pointer;
}

.navbar-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--text-secondary);
	border-radius: 2px;
	transition: var(--transition);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
	.hero-title {
		font-size: 2.5rem;
	}

	.hero-stats {
		gap: 1.5rem;
	}
}

@media (max-width: 768px) {
	.navbar-toggle {
		display: flex;
	}

	.navbar-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		background: rgba(10, 10, 46, 0.98);
		backdrop-filter: blur(20px);
		border-top: 1px solid var(--glass-border);
		padding: 1rem;
		gap: 0;
	}

	.navbar-menu.active {
		display: flex;
	}

	.navbar-menu > li > a {
		padding: 0.75rem 1rem;
	}

	.navbar-dropdown {
		position: static;
		background: transparent;
		border: none;
		box-shadow: none;
		padding-left: 1rem;
		backdrop-filter: none;
	}

	.navbar-menu > li > .navbar-dropdown.open {
		animation: none;
	}

	.navbar-actions {
		flex-wrap: wrap;
	}

	.hero-section {
		padding: 6rem 1.5rem 3rem;
	}

	.hero-title {
		font-size: 2rem;
	}

	.hero-stats {
		flex-wrap: wrap;
		gap: 1.5rem;
	}

	.hero-buttons {
		flex-direction: column;
	}

	.hero-buttons .btn {
		justify-content: center;
	}

	.content-container {
		padding: 1rem;
	}

	.footer-top {
		flex-direction: column;
	}

	.footer-bottom {
		flex-direction: column;
		text-align: center;
	}

	.generic-form {
		padding: 1.25rem;
	}

	.generic-form-table th {
		text-align: left;
		display: block;
		padding: 0;
	}

	.generic-form-table td {
		display: block;
	}

	.generic-form-table th label {
		padding: 0.25rem 0;
	}

	input[type=text],
	input[type=password],
	input[type=email],
	input[type=number],
	select {
		max-width: 100%;
	}
}

@media (max-width: 480px) {
	.hero-title {
		font-size: 1.75rem;
	}

	.hero-description {
		font-size: 0.95rem;
	}

	.modal-box {
		padding: 1.5rem;
	}
}

/* ---- Animations ---- */
.fade-in {
	animation: fadeInUp 0.6s ease both;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ---- MonsterMode / misc lists ---- */
.monster-mode {
	margin: 0;
	padding: 0;
	list-style: square inside;
}

.monster-mode li {
	padding: 0.15rem;
	border-bottom: 1px dotted var(--glass-border);
	color: var(--text-secondary);
}

.raw-txn-log {
	padding: 0.75rem;
	font-family: 'Fira Code', Monaco, monospace;
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-sm);
	width: 96%;
	overflow: auto;
	color: var(--text-secondary);
}

.emblem-server {
	margin: 0 0 0.25rem 0;
	padding: 0 0 0.25rem 0;
	font-size: 1.1rem;
	border-bottom: 1px solid var(--glass-border);
	color: var(--text-primary);
}

.emblem-server label {
	display: block;
}

.block {
	display: block;
	width: 80%;
	height: 40px;
}

.script-line {
	font-family: 'Fira Code', Monaco, monospace;
}

.script-line-num {
	display: inline-block;
	padding: 0.35rem;
	background: var(--glass-bg);
	border-right: 1px solid var(--glass-border);
	color: var(--text-muted);
}

.script-line-code {
	display: inline-block;
	padding: 0.35rem;
	color: var(--text-secondary);
}

.multi-select { width: 100%; }
.script { width: 98%; }

.jump-to-page {
	margin-top: 0.5rem;
	font-size: 0.8rem;
	text-align: center;
	color: var(--text-muted);
}

.jump-to-page input {
	padding: 0.2rem 0.4rem;
	font-size: 0.8rem;
}

.current-shop-category {
	font-weight: bold;
	color: var(--text-primary);
}

.center { text-align: center; }
.td-checkbox { text-align: center; }
.td-action { color: var(--text-muted); text-align: center; }
.vertical-table .td-action { text-align: right; }

.clear { clear: both; }

/* Service Desk */
.no-recaptcha {
	color: var(--danger) !important;
}

/* ---- Features Section ---- */
.features-section {
	padding: 4rem 0;
}

.features-title {
	text-align: center;
	font-family: 'Poppins', sans-serif;
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.features-subtitle {
	text-align: center;
	color: var(--text-muted);
	font-size: 1rem;
	margin-bottom: 3rem;
	max-width: 500px;
	margin-left: auto;
	margin-right: auto;
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
}

.feature-card {
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-lg);
	padding: 2rem;
	transition: var(--transition);
	position: relative;
	overflow: hidden;
}

.feature-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--gradient-main);
	opacity: 0;
	transition: var(--transition);
}

.feature-card:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(123, 58, 237, 0.3);
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
	opacity: 1;
}

.feature-icon {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(123, 58, 237, 0.12);
	border: 1px solid rgba(123, 58, 237, 0.2);
	border-radius: var(--radius);
	font-size: 1.5rem;
	margin-bottom: 1.25rem;
}

.feature-card h3 {
	font-family: 'Poppins', sans-serif;
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 0.5rem;
	border: none;
	padding: 0;
}

.feature-card p {
	color: var(--text-muted);
	font-size: 0.9rem;
	line-height: 1.6;
	margin: 0;
}

/* ---- Hero stat improved ---- */
.hero-stat {
	text-align: center;
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius);
	padding: 1.25rem 1.5rem;
	transition: var(--transition);
	min-width: 120px;
}

.hero-stat:hover {
	border-color: rgba(123, 58, 237, 0.3);
	background: rgba(255, 255, 255, 0.08);
}

/* ============================================
   LANDING PAGE
   ============================================ */

.landing-page {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 2rem 1.5rem;
	position: relative;
	overflow: hidden;
}

/* Rising Particles Background */
.landing-particles {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 0;
	overflow: hidden;
}

.landing-particles span {
	position: absolute;
	bottom: -20px;
	display: block;
	width: 8px;
	height: 8px;
	background: rgba(123, 58, 237, 0.15);
	border-radius: 50%;
	animation: particleRise linear infinite;
}

.landing-particles span:nth-child(1)  { left: 5%;  width: 6px;  height: 6px;  animation-duration: 12s; animation-delay: 0s; background: rgba(123, 58, 237, 0.12); }
.landing-particles span:nth-child(2)  { left: 15%; width: 10px; height: 10px; animation-duration: 18s; animation-delay: 2s; background: rgba(59, 130, 246, 0.10); }
.landing-particles span:nth-child(3)  { left: 25%; width: 5px;  height: 5px;  animation-duration: 14s; animation-delay: 4s; background: rgba(123, 58, 237, 0.18); }
.landing-particles span:nth-child(4)  { left: 35%; width: 12px; height: 12px; animation-duration: 20s; animation-delay: 1s; background: rgba(59, 130, 246, 0.08); }
.landing-particles span:nth-child(5)  { left: 45%; width: 7px;  height: 7px;  animation-duration: 15s; animation-delay: 3s; background: rgba(123, 58, 237, 0.14); }
.landing-particles span:nth-child(6)  { left: 55%; width: 9px;  height: 9px;  animation-duration: 22s; animation-delay: 5s; background: rgba(59, 130, 246, 0.12); }
.landing-particles span:nth-child(7)  { left: 65%; width: 4px;  height: 4px;  animation-duration: 11s; animation-delay: 0.5s; background: rgba(123, 58, 237, 0.20); }
.landing-particles span:nth-child(8)  { left: 75%; width: 11px; height: 11px; animation-duration: 19s; animation-delay: 6s; background: rgba(59, 130, 246, 0.09); }
.landing-particles span:nth-child(9)  { left: 85%; width: 6px;  height: 6px;  animation-duration: 16s; animation-delay: 2.5s; background: rgba(123, 58, 237, 0.16); }
.landing-particles span:nth-child(10) { left: 92%; width: 8px;  height: 8px;  animation-duration: 13s; animation-delay: 7s; background: rgba(59, 130, 246, 0.11); }
.landing-particles span:nth-child(11) { left: 10%; width: 5px;  height: 5px;  animation-duration: 17s; animation-delay: 1.5s; background: rgba(123, 58, 237, 0.10); }
.landing-particles span:nth-child(12) { left: 30%; width: 8px;  height: 8px;  animation-duration: 21s; animation-delay: 4.5s; background: rgba(59, 130, 246, 0.13); }
.landing-particles span:nth-child(13) { left: 50%; width: 6px;  height: 6px;  animation-duration: 14s; animation-delay: 3.5s; background: rgba(123, 58, 237, 0.17); }
.landing-particles span:nth-child(14) { left: 70%; width: 10px; height: 10px; animation-duration: 23s; animation-delay: 0.8s; background: rgba(59, 130, 246, 0.07); }
.landing-particles span:nth-child(15) { left: 90%; width: 4px;  height: 4px;  animation-duration: 10s; animation-delay: 5.5s; background: rgba(123, 58, 237, 0.22); }

@keyframes particleRise {
	0% {
		transform: translateY(0) translateX(0) scale(1);
		opacity: 0;
	}
	10% {
		opacity: 1;
	}
	90% {
		opacity: 1;
	}
	100% {
		transform: translateY(-110vh) translateX(30px) scale(0.3);
		opacity: 0;
	}
}

.landing-page > *:not(.landing-particles) {
	position: relative;
	z-index: 1;
}

/* Logo */
.landing-logo {
	text-align: center;
	margin-bottom: 2rem;
}

.landing-logo img {
	height: 180px;
	width: auto;
	border-radius: 16px;
	filter: drop-shadow(0 8px 30px rgba(123, 58, 237, 0.3));
	transition: var(--transition);
}

.landing-logo img:hover {
	transform: scale(1.05);
	filter: drop-shadow(0 12px 40px rgba(123, 58, 237, 0.45));
}

/* Card */
.landing-card {
	background: var(--card-bg);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-lg);
	padding: 2.5rem;
	width: 100%;
	max-width: 560px;
	box-shadow: var(--shadow), var(--shadow-glow);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.landing-card-title {
	font-family: 'Poppins', sans-serif;
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--text-primary);
	text-align: center;
	margin-bottom: 0.35rem;
}

.landing-card-subtitle {
	color: var(--text-muted);
	font-size: 0.9rem;
	text-align: center;
	margin-bottom: 1.75rem;
}

/* Form Groups */
.landing-form-group {
	margin-bottom: 1rem;
	flex: 1;
	min-width: 0;
}

.landing-form-group label {
	display: block;
	margin-bottom: 0.4rem;
	color: var(--text-secondary);
	font-size: 0.85rem;
	font-weight: 500;
}

.landing-form-group input[type=text],
.landing-form-group input[type=password],
.landing-form-group input[type=email],
.landing-form-group select {
	width: 100%;
	max-width: 100%;
}

/* Two-column row */
.landing-form-row {
	display: flex;
	gap: 1rem;
}

/* Gender options */
.landing-gender-options {
	display: flex;
	gap: 1.5rem;
	padding: 0.6rem 0;
}

.landing-gender-options label {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	cursor: pointer;
	color: var(--text-secondary);
	font-size: 0.9rem;
	margin-bottom: 0;
}

/* Form Actions */
.landing-form-actions {
	margin-top: 1.5rem;
	text-align: center;
	display: flex;
	justify-content: center;
	gap: 1rem;
}

.landing-submit {
	width: 100%;
	justify-content: center;
}

/* External Buttons (Discord / Wiki) */
.landing-buttons {
	display: flex;
	gap: 1rem;
	margin-top: 1.75rem;
	width: 100%;
	max-width: 560px;
	justify-content: center;
}

.landing-btn-external {
	flex: 1;
	justify-content: center;
	font-size: 1rem;
	padding: 0.9rem 1.5rem;
	border-radius: var(--radius);
	transition: var(--transition);
}

.landing-btn-external:hover {
	transform: translateY(-2px);
}

/* Wiki Button */
.btn-wiki {
	background: linear-gradient(135deg, #059669 0%, #10b981 100%);
	color: #fff;
	box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-wiki:hover {
	background: linear-gradient(135deg, #047857 0%, #059669 100%);
	box-shadow: 0 6px 25px rgba(16, 185, 129, 0.4);
	color: #fff;
}

/* Download Button */
.btn-download {
	background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
	color: #fff;
	box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-download:hover {
	background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
	box-shadow: 0 6px 25px rgba(245, 158, 11, 0.4);
	color: #fff;
}

/* Landing Footer */
.landing-footer {
	margin-top: 2.5rem;
	text-align: center;
}

.landing-footer p {
	color: var(--text-muted);
	font-size: 0.75rem;
	margin: 0;
}

/* Landing Page Message */
.landing-page > .message {
	max-width: 560px;
	width: 100%;
}

/* Tabs */
.landing-tabs {
	display: flex;
	gap: 0;
	max-width: 560px;
	width: 100%;
	margin-bottom: 0;
	border-radius: var(--radius-lg) var(--radius-lg) 0 0;
	overflow: hidden;
	border: 1px solid var(--glass-border);
	border-bottom: none;
}

.landing-tab {
	flex: 1;
	padding: 0.85rem 1.5rem;
	font-size: 0.95rem;
	font-weight: 600;
	font-family: 'Poppins', sans-serif;
	cursor: pointer;
	border: none;
	background: rgba(255, 255, 255, 0.03);
	color: var(--text-muted);
	transition: var(--transition);
	letter-spacing: 0.02em;
}

.landing-tab:hover {
	background: rgba(255, 255, 255, 0.06);
	color: var(--text-secondary);
}

.landing-tab.active {
	background: var(--card-bg);
	color: var(--accent);
	box-shadow: inset 0 -2px 0 var(--accent);
}

.landing-tabs + .landing-card {
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

/* ---- Landing Responsive ---- */
@media (max-width: 600px) {
	.landing-card {
		padding: 1.5rem;
	}

	.landing-form-row {
		flex-direction: column;
		gap: 0;
	}

	.landing-buttons {
		flex-direction: column;
	}

	.landing-logo img {
		height: 130px;
	}

	.landing-card-title {
		font-size: 1.3rem;
	}
}

/* ============================================
   ACCOUNT VIEW / PLAYER AREA
   ============================================ */

/* Wider card for account view */
.landing-card + .landing-card {
	margin-top: 1.25rem;
}

.landing-page .landing-card:has(.account-info-grid),
.landing-page .landing-card:has(.char-list),
.landing-page .landing-card:has(.storage-table-wrapper) {
	max-width: 680px;
}

/* Account Info Grid */
.account-info-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.account-info-item {
	display: flex;
	flex-direction: column;
	padding: 0.75rem;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: var(--radius);
}

.account-info-label {
	font-size: 0.75rem;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 0.25rem;
}

.account-info-value {
	font-size: 0.95rem;
	color: var(--text-primary);
	font-weight: 500;
}

/* Account Actions */
.account-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Character List */
.char-list {
	margin-top: 1rem;
}

.char-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.75rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	transition: var(--transition);
}

.char-row:last-of-type {
	border-bottom: none;
}

.char-row:hover {
	background: rgba(255, 255, 255, 0.03);
	border-radius: var(--radius);
}

.char-main {
	flex: 1;
	min-width: 0;
}

.char-name {
	font-weight: 600;
	font-size: 1rem;
	color: var(--text-primary);
	margin-bottom: 0.3rem;
}

.char-name a {
	color: var(--accent);
	text-decoration: none;
}

.char-name a:hover {
	text-decoration: underline;
}

.char-details {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	font-size: 0.8rem;
}

.char-details span {
	color: var(--text-muted);
}

.char-class {
	color: var(--text-secondary) !important;
	font-weight: 500;
}

.char-level {
	color: var(--accent-light) !important;
}

.char-zeny {
	color: #f59e0b !important;
}

.char-guild {
	color: #10b981 !important;
}

.char-status.online {
	color: #10b981 !important;
	font-weight: 600;
}

.char-status.offline {
	color: var(--text-muted) !important;
}

.char-actions {
	display: flex;
	gap: 0.35rem;
	flex-shrink: 0;
}

.char-total {
	text-align: right;
	padding: 0.75rem;
	color: var(--text-secondary);
	font-size: 0.9rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	margin-top: 0.5rem;
}

/* Small buttons */
.btn-xs {
	padding: 0.3rem 0.6rem;
	font-size: 0.75rem;
	border-radius: 6px;
}

.btn-sm {
	padding: 0.45rem 1rem;
	font-size: 0.85rem;
}

/* Storage Table */
.storage-table-wrapper {
	overflow-x: auto;
	margin-top: 1rem;
}

.storage-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.85rem;
}

.storage-table thead th {
	text-align: left;
	padding: 0.6rem 0.75rem;
	color: var(--text-muted);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.storage-table tbody td {
	padding: 0.5rem 0.75rem;
	color: var(--text-secondary);
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.storage-table tbody tr:hover {
	background: rgba(255, 255, 255, 0.03);
}

/* Muted helper text */
.text-muted {
	color: var(--text-muted);
}

/* Account view responsive */
@media (max-width: 600px) {
	.account-info-grid {
		grid-template-columns: 1fr;
	}

	.char-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}

	.char-actions {
		width: 100%;
		justify-content: flex-start;
	}
}

/* ============================================
   MODALS
   ============================================ */

.modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(6px);
	display: flex;
	align-items: center;
	justify-content: center;
	animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.modal-box {
	background: var(--card-bg);
	border: 1px solid var(--card-border);
	border-radius: var(--radius-lg);
	padding: 2rem 2.5rem;
	max-width: 400px;
	width: 90%;
	text-align: center;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	animation: modalSlideIn 0.25s ease;
}

@keyframes modalSlideIn {
	from { transform: translateY(-20px) scale(0.95); opacity: 0; }
	to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-icon {
	margin-bottom: 1rem;
}

.modal-title {
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 0.5rem;
}

.modal-text {
	font-size: 0.9rem;
	color: var(--text-muted);
	margin-bottom: 1.5rem;
	line-height: 1.5;
}

.modal-actions {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
}

.modal-actions .btn {
	min-width: 100px;
}

/* Remember-me checkbox */
.landing-remember {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0.5rem 0 0.25rem;
	font-size: 0.85rem;
	color: var(--text-secondary);
}

.landing-remember input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--accent);
	cursor: pointer;
}

.landing-remember label {
	cursor: pointer;
}

@media (max-width: 480px) {
	.modal-box {
		padding: 1.5rem;
	}

	.modal-actions {
		flex-direction: column;
	}

	.modal-actions .btn {
		width: 100%;
	}
}
