/* ========================================
   BASE / RESET / THEME FOUNDATION
======================================== */

:root {
	--bg: #0f1117;
	--bg-soft: #141821;
	--bg-elevated: #161b25;
	--bg-input: #11161f;
	--bg-hover: #1b2230;

	--text: #eef2f7;
	--text-soft: #c7cfdb;
	--text-muted: #8d98aa;

	--accent: #cea649;
	--accent-hover: #dbb55a;
	--accent-contrast: #111;

	--border: rgba(255, 255, 255, 0.06);
	--border-strong: rgba(255, 255, 255, 0.1);

	--shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.14);
	--shadow-md: 0 8px 24px rgba(0, 0, 0, 0.18);
	--shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.2);

	--radius-sm: 10px;
	--radius-md: 14px;
	--radius-lg: 18px;
	--radius-xl: 22px;

	--container-max: 1680px;

	--font-base: "Segoe UI", Arial, Helvetica, sans-serif;
	--font-size-base: 16px;
	--line-height-base: 1.6;
}

/* ========================================
   GLOBAL RESET
======================================== */

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

html,
body {
	min-height: 100%;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
	margin: 0;
}

ul,
ol {
	padding: 0;
}

img,
picture,
svg,
video,
canvas {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

img[width][height] {
	height: auto;
}

iframe {
	max-width: 100%;
	border: 0;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

input,
button,
textarea,
select {
	font: inherit;
	color: inherit;
}

button {
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

a {
	color: inherit;
	text-decoration: none;
}

hr {
	border: 0;
	border-top: 1px solid var(--border);
	margin: 20px 0;
}

/* ========================================
   HTML / BODY
======================================== */

body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-base);
	font-size: var(--font-size-base);
	line-height: var(--line-height-base);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.page-body {
	background:
		radial-gradient(circle at top center, rgba(206, 166, 73, 0.05), transparent 22%),
		var(--bg);
}

.site-wrap {
	min-height: 100dvh;
	overflow: clip;
}

/* ========================================
   TYPOGRAPHY
======================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 800;
	line-height: 1.2;
	color: #fff;
}

p {
	color: var(--text-soft);
}

strong,
b {
	font-weight: 700;
}

small {
	font-size: 0.875em;
}

mark {
	padding: 0.1em 0.3em;
	background: rgba(206, 166, 73, 0.16);
	color: #fff3cf;
	border-radius: 4px;
}

/* ========================================
   DEFAULT LINKS
======================================== */

a {
	transition:
		color 0.2s ease,
		background 0.2s ease,
		border-color 0.2s ease,
		opacity 0.2s ease;
}

a:hover {
	color: var(--accent);
}

/* ========================================
   SELECTION / FOCUS
======================================== */

::selection {
	background: rgba(206, 166, 73, 0.28);
	color: #fff;
}

:focus-visible {
	outline: 2px solid rgba(206, 166, 73, 0.85);
	outline-offset: 2px;
}

/* ========================================
   MEDIA
======================================== */

svg {
	fill: currentColor;
}

figure {
	margin: 0;
}

/* ========================================
   FORMS
======================================== */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="number"],
textarea,
select {
	width: 100%;
	min-width: 0;
	background: var(--bg-input);
	border: 1px solid var(--border-strong);
	border-radius: 12px;
	color: var(--text);
	padding: 12px 14px;
	outline: none;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		background 0.2s ease;
}

input::placeholder,
textarea::placeholder {
	color: var(--text-muted);
}

input:focus,
textarea:focus,
select:focus {
	border-color: rgba(206, 166, 73, 0.45);
	box-shadow: 0 0 0 3px rgba(206, 166, 73, 0.12);
	background: #11161f;
}

textarea {
	min-height: 140px;
	resize: vertical;
}

label {
	display: inline-block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 700;
	color: var(--text);
}

/* ========================================
   BUTTON SYSTEM
======================================== */

.btn,
button[type="submit"],
input[type="submit"] {
	--btn-bg: var(--accent);
	--btn-bg-hover: var(--accent-hover);
	--btn-color: var(--accent-contrast);
	--btn-border: rgba(206, 166, 73, 0.35);
	--btn-shadow: none;

	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 16px;
	background: var(--btn-bg);
	border: 1px solid var(--btn-border);
	border-radius: 12px;
	color: var(--btn-color);
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	box-shadow: var(--btn-shadow);
	transition:
		transform 0.2s ease,
		background 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease,
		box-shadow 0.2s ease;
}

.btn:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
	background: var(--btn-bg-hover);
	border-color: var(--btn-border);
	color: var(--btn-color);
	transform: translateY(-1px);
	box-shadow: var(--btn-shadow);
	text-decoration: none;
}

.btn:focus-visible,
button[type="submit"]:focus-visible,
input[type="submit"]:focus-visible {
	outline: 2px solid rgba(206, 166, 73, 0.85);
	outline-offset: 2px;
}

.btn:active,
button[type="submit"]:active,
input[type="submit"]:active {
	transform: translateY(0);
}

/* ----------------------------------------
   VARIANTS
---------------------------------------- */

.btn--primary {
	--btn-bg: var(--accent);
	--btn-bg-hover: var(--accent-hover);
	--btn-color: #111;
	--btn-border: rgba(206, 166, 73, 0.35);
	--btn-shadow: 0 6px 18px rgba(206, 166, 73, 0.18);
}

.btn--secondary {
	--btn-bg: rgba(255, 255, 255, 0.04);
	--btn-bg-hover: rgba(255, 255, 255, 0.08);
	--btn-color: var(--text);
	--btn-border: var(--border-strong);
	--btn-shadow: none;
}

.btn--dark {
	--btn-bg: #1a202c;
	--btn-bg-hover: #212a3b;
	--btn-color: #eef2f7;
	--btn-border: rgba(255, 255, 255, 0.08);
	--btn-shadow: none;
}

.btn--ghost {
	--btn-bg: transparent;
	--btn-bg-hover: rgba(255, 255, 255, 0.06);
	--btn-color: var(--text);
	--btn-border: rgba(255, 255, 255, 0.08);
	--btn-shadow: none;
}

/* ----------------------------------------
   SIZES
---------------------------------------- */

.btn--sm {
	min-height: 38px;
	padding: 0 12px;
	font-size: 13px;
	border-radius: 10px;
}

.btn--lg {
	min-height: 48px;
	padding: 0 20px;
	font-size: 15px;
	border-radius: 14px;
}

.btn--block {
	width: 100%;
}

/* ========================================
   LISTS / CONTENT DEFAULTS
======================================== */

ul,
ol {
	margin-left: 20px;
}

li + li {
	margin-top: 4px;
}

blockquote {
	margin: 18px 0;
	padding: 16px 18px;
	background: rgba(255, 255, 255, 0.04);
	border-left: 3px solid var(--accent);
	border-radius: 10px;
	color: var(--text);
}

code,
kbd,
samp,
pre {
	font-family: Consolas, Monaco, "Courier New", monospace;
	font-size: 0.95em;
}

code,
kbd,
samp {
	padding: 0.15em 0.35em;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 6px;
}

pre {
	overflow-x: auto;
	padding: 16px;
	background: #0c1017;
	border: 1px solid var(--border);
	border-radius: 12px;
	color: var(--text);
}

/* ========================================
   TABLES
======================================== */

.table-responsive {
	overflow-x: auto;
}

table {
	width: 100%;
	background: var(--bg-soft);
	border: 1px solid var(--border);
	border-radius: 14px;
	overflow: hidden;
}

th,
td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--border);
	text-align: left;
	vertical-align: top;
}

th {
	background: rgba(255, 255, 255, 0.03);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
}

td {
	color: var(--text-soft);
}

tr:last-child td {
	border-bottom: 0;
}

/* ========================================
   EMBEDS / LAZY / HELPERS
======================================== */

.embed-responsive {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 16px;
}

.embed-responsive::before {
	content: "";
	display: block;
	padding-top: 56.25%;
}

.embed-responsive > iframe,
.embed-responsive > video,
.embed-responsive > embed,
.embed-responsive > object {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.lazy-hidden {
	opacity: 0;
}

.lazy-loaded {
	opacity: 1;
	transition: opacity 0.25s ease;
}

/* ========================================
   COMMON UI HELPERS
======================================== */

.text-center {
	text-align: center;
}

.text-left {
	text-align: left;
}

.text-right {
	text-align: right;
}

.w-100 {
	width: 100%;
}

.d-block {
	display: block;
}

.d-inline-flex {
	display: inline-flex;
}

.hidden {
	display: none !important;
}

.overflow-hidden {
	overflow: hidden;
}

.rounded-sm {
	border-radius: var(--radius-sm);
}

.rounded-md {
	border-radius: var(--radius-md);
}

.rounded-lg {
	border-radius: var(--radius-lg);
}

.shadow-sm {
	box-shadow: var(--shadow-sm);
}

.shadow-md {
	box-shadow: var(--shadow-md);
}

.shadow-lg {
	box-shadow: var(--shadow-lg);
}

/* ========================================
   DLE / CONTENT MESSAGES
======================================== */

.message-info,
.message-error {
	padding: 16px 18px;
	background: var(--bg-soft);
	border: 1px solid var(--border);
	border-radius: 16px;
	box-shadow: var(--shadow-sm);
	color: var(--text);
}

.message-error {
	border-color: rgba(255, 90, 90, 0.22);
}

/* ========================================
   FOOTER DEFAULT TEXT HELPERS
======================================== */

.site-footer p,
.site-footer li,
.site-footer a {
	color: var(--text-soft);
}

/* ========================================
   ACCESSIBILITY
======================================== */

.visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* ========================================
   REDUCED MOTION
======================================== */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ========================================
   MOBILE BASE POLISH
======================================== */

@media (max-width: 639px) {
	body {
		font-size: 15px;
	}

	input[type="text"],
	input[type="email"],
	input[type="password"],
	input[type="search"],
	input[type="url"],
	input[type="number"],
	textarea,
	select {
		padding: 11px 12px;
		border-radius: 10px;
	}

	.btn,
	button[type="submit"],
	input[type="submit"] {
		min-height: 42px;
		padding: 0 14px;
		border-radius: 10px;
		font-size: 13px;
	}

	th,
	td {
		padding: 10px 12px;
	}
}