:root {
	--bg: #070b16;
	--panel: rgba(15, 24, 45, .92);
	--line: rgba(123, 159, 230, .18);
	--text: #edf4ff;
	--muted: #91a2bf;
	--accent: #4f8cff;
	--accent-strong: #2563eb;
	--success: #39d98a;
	--danger: #ff6174;
	--radius: 16px;
}

* {
	box-sizing: border-box;
	scrollbar-width: thin;
	scrollbar-color: #6e75ee #090c17;
}

html {
	min-height: 100%;
	background: var(--bg);
	scrollbar-gutter: stable;
}

::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

::-webkit-scrollbar-track {
	background: #090c17;
}

::-webkit-scrollbar-thumb {
	border: 2px solid #090c17;
	border-radius: 5px;
	background: linear-gradient(180deg, #41cfff, #776dff 54%, #9d68ff);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(180deg, #6bdcff, #8a7cff 54%, #b37dff);
}

body { min-height: 100vh; margin: 0; color: var(--text); background: radial-gradient(circle at 15% 5%, rgba(37, 99, 235, .24), transparent 36rem), radial-gradient(circle at 90% 30%, rgba(124, 58, 237, .16), transparent 34rem), var(--bg); font: 15px/1.55 Inter, Segoe UI, Arial, sans-serif; }
a { color: #86adff; text-decoration: none; }
a:hover { color: #bfd2ff; }
img { max-width: 100%; }
.page-shell { width: min(1240px, calc(100% - 32px)); min-height: calc(100vh - 150px); margin: 32px auto 64px; }
.hero { display: grid; align-items: center; min-height: 64vh; padding: clamp(28px, 7vw, 90px); border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(135deg, rgba(18, 34, 67, .95), rgba(9, 15, 30, .8)); overflow: hidden; }
.hero-content { max-width: 700px; }
.eyebrow { color: #7fabff; font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.15; }
h1 { margin-bottom: 18px; font-size: clamp(36px, 6vw, 72px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
.lead { max-width: 720px; color: #b4c0d5; font-size: 18px; }
.button, button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 16px; border: 0; border-radius: 10px; color: white; background: linear-gradient(135deg, var(--accent), var(--accent-strong)); font: inherit; font-weight: 750; cursor: pointer; }
.button:hover, button:hover { color: white; filter: brightness(1.1); }
.button-quiet, button.quiet { border: 1px solid var(--line); background: rgba(255, 255, 255, .04); }
.button-danger, button.danger { background: linear-gradient(135deg, #f43f5e, #be123c); }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 36px 0 18px; }
.section-head h1, .section-head h2 { margin-bottom: 0; }
.muted { color: var(--muted); }
.danger-text { color: var(--danger); }
.success-text { color: var(--success); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 18px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: 0 16px 48px rgba(0, 0, 0, .16); }
.card-image { width: calc(100% + 44px); max-width: none; aspect-ratio: 16 / 9; margin: -22px -22px 18px; border-radius: var(--radius) var(--radius) 0 0; object-fit: cover; background: #0b1223; }
.metric { font-size: 34px; font-weight: 850; }
.price { font-size: 22px; font-weight: 850; }
.old-price { margin-right: 8px; color: var(--muted); text-decoration: line-through; }
.pill { display: inline-flex; padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; color: #b5c7e7; background: rgba(79, 140, 255, .08); font-size: 12px; }
.category-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.category-bar button.active { outline: 2px solid rgba(134, 173, 255, .45); }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr); gap: 24px; }
.product-cover { width: 100%; max-height: 620px; border-radius: var(--radius); object-fit: cover; background: #0b1223; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.gallery img { width: 100%; aspect-ratio: 16 / 10; border-radius: 9px; object-fit: cover; }
.product-aside { align-self: start; position: sticky; top: 96px; }
.content-html { overflow-wrap: anywhere; }
.content-html img { height: auto; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; background: var(--panel); }
th, td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: #a9bcdb; background: rgba(255, 255, 255, .025); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
tr:last-child td { border-bottom: 0; }
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-cell img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
form.stack, .stack { display: grid; gap: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 13px; }
label { display: grid; gap: 6px; color: #c6d3e8; font-weight: 650; }
input, select, textarea { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; outline: none; color: var(--text); background: rgba(4, 8, 18, .72); font: inherit; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79, 140, 255, .13); }
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: 18px; min-height: 18px; }
.admin-user-roles { display: grid; gap: 6px; min-width: 132px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.admin-nav a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, .03); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.admin-actions button, .admin-actions .button { min-height: 34px; padding: 6px 10px; font-size: 13px; }
.empty { padding: 34px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }
@media (max-width: 900px) { .product-layout { grid-template-columns: 1fr; } .product-aside { position: static; } }
@media (max-width: 560px) { .page-shell { width: min(100% - 20px, 1240px); margin-top: 16px; } .grid.two { grid-template-columns: 1fr; } .card { padding: 17px; } .card-image { margin: -17px -17px 15px; width: calc(100% + 34px); } }
