:root {
	--bg: #0b1020;
	--panel: #131a2e;
	--panel-2: #1a2440;
	--text: #eef2ff;
	--muted: #a8b1d1;
	--line: rgba(255,255,255,0.08);
	--accent: #7dd3fc;
	--accent-2: #a78bfa;
	--good: #86efac;
	--warn: #fcd34d;
	--danger: #fca5a5;
	--shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* --------------------------------- */
/* Admin login gate */
/* --------------------------------- */

body.admin-locked {
	overflow: hidden;
}

.admin-app[hidden] {
	display: none !important;
}

.admin-gate {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100vw;
	min-height: 100vh;
	padding: 24px;
	background: #060b18;
}

.admin-gate.hidden {
	display: none !important;
}

.admin-gate-card {
	width: min(440px, 100%);
	background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
	border: 1px solid var(--line);
	border-radius: 24px;
	box-shadow: var(--shadow);
	padding: 28px;
	text-align: center;
}

.admin-gate-logo {
	height: 88px;
	width: auto;
	display: block;
	margin: 0 auto 14px;
	object-fit: contain;
}

.admin-gate-card h1 {
	margin: 0 0 8px;
	font-size: 2rem;
}

.admin-gate-card p {
	margin: 0 0 18px;
	color: var(--muted);
	line-height: 1.5;
}

.admin-gate-form {
	display: grid;
	gap: 12px;
}

* { box-sizing: border-box; }

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

body {
	font-family: Inter, Arial, sans-serif;
	background: radial-gradient(circle at top, #17203a 0, var(--bg) 35%);
	color: var(--text);
	min-height: 100vh;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

.container {
	width: min(1180px, calc(100% - 32px));
	margin: 0 auto;
}

.topbar {
	position: sticky;
	top: 0;
	z-index: 20;
	backdrop-filter: blur(14px);
	background: rgba(11,16,32,0.82);
	border-bottom: 1px solid var(--line);
}

.topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
}

.brand {
	display: flex;
	align-items: center;
	gap: 16px;
	text-decoration: none;
}

.brand-logo {
	width: 88px;
	height: 88px;
	object-fit: contain;
	display: block;
	filter: drop-shadow(0 0 12px rgba(0, 255, 170, 0.28));
}

.brand-lockup {
	display: flex;
	flex-direction: column;
	line-height: 1.05;
}

.brand-name {
	font-size: 1.28rem;
	font-weight: 800;
	color: var(--text);
	letter-spacing: 0.01em;
}

.brand-sub {
	font-size: 0.86rem;
	color: var(--muted);
}

.topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	min-height: 112px;
}

.hero-primary {
	position: relative;
	overflow: hidden;
}

.hero-primary::after {
	content: "";
	position: absolute;
	inset: auto -80px -80px auto;
	width: 220px;
	height: 220px;
	background: radial-gradient(circle, rgba(125,211,252,0.16), rgba(167,139,250,0.02) 65%);
	pointer-events: none;
}

.hero-mini-note {
	margin-top: 16px;
	font-size: 0.9rem;
	color: var(--muted);
}

.brand-mark {
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	box-shadow: var(--shadow);
}

.nav {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.nav a {
	text-decoration: none;
	color: var(--muted);
	padding: 10px 12px;
	border-radius: 10px;
}

.nav a:hover,
.nav a.active {
	color: var(--text);
	background: rgba(255,255,255,0.05);
}

.hero {
	padding: 56px 0 24px;
}

.hero-grid {
	display: grid;
	grid-template-columns: 1.3fr .9fr;
	gap: 22px;
	align-items: stretch;
}

.hero-card,
.panel {
	background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
	border: 1px solid var(--line);
	border-radius: 24px;
	box-shadow: var(--shadow);
}

.hero-card {
	padding: 28px;
}

.kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--good);
	background: rgba(134,239,172,.08);
	padding: 8px 12px;
	border-radius: 999px;
}

.hero h1 {
	margin: 16px 0 10px;
	font-size: clamp(2rem, 4vw, 3.8rem);
	line-height: 1.02;
}

.hero p {
	color: var(--muted);
	font-size: 1.05rem;
	line-height: 1.6;
}

.hero-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 18px;
}

.button-logo {
	width: 24px;
	height: 24px;
	object-fit: contain;
	border-radius: 4px;
}

.button,
button,
input,
select,
textarea {
	font: inherit;
}

.button,
button {
	border: none;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 16px;
	border-radius: 14px;
	font-weight: 700;
	transition: transform .14s ease, opacity .14s ease, border-color .14s ease, background .14s ease;
}

.button:hover,
button:hover {
	transform: translateY(-1px);
}

.button:disabled,
button:disabled {
	cursor: not-allowed;
	opacity: .55;
	transform: none;
}

.button-primary {
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	color: #08111f;
}

.button-secondary {
	background: rgba(255,255,255,0.06);
	color: var(--text);
	border: 1px solid var(--line);
}

.button-danger {
	background: rgba(252,165,165,0.12);
	color: var(--danger);
	border: 1px solid rgba(252,165,165,0.26);
}

.button-good {
	background: rgba(134,239,172,0.12);
	color: var(--good);
	border: 1px solid rgba(134,239,172,0.22);
}

.stat-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
	padding: 18px;
}

.stat {
	background: rgba(255,255,255,0.04);
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 18px;
}

.stat-label {
	color: var(--muted);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .12em;
}

.stat-value {
	font-size: 1.7rem;
	font-weight: 800;
	margin-top: 10px;
}

.section {
	padding: 22px 0 32px;
}

.section-head {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 16px;
	margin-bottom: 18px;
}

.section-head h2 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 1.6rem;
}

.section-title-logo {
	width: 34px;
	height: 34px;
	object-fit: contain;
	border-radius: 6px;
	filter: drop-shadow(0 0 8px rgba(0, 255, 170, 0.22));
}

.section-head p {
	margin: 6px 0 0;
	color: var(--muted);
}

.toolbar {
	display: grid;
	grid-template-columns: 1.4fr .9fr .9fr .8fr;
	gap: 12px;
	margin-bottom: 18px;
}

.field,
.toolbar input,
.toolbar select,
textarea {
	width: 100%;
	background: rgba(255,255,255,0.05);
	border: 1px solid var(--line);
	color: var(--text);
	padding: 12px 14px;
	border-radius: 14px;
}

select,
.field:is(select),
.toolbar select {
	background-color: #11182c;
	color: var(--text);
	border-color: rgba(255,255,255,0.16);
}

select option {
	background-color: #11182c;
	color: #eef2ff;
}

.field:focus,
textarea:focus,
.toolbar input:focus,
.toolbar select:focus {
	outline: none;
	border-color: rgba(125,211,252,0.45);
	box-shadow: 0 0 0 3px rgba(125,211,252,0.08);
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
	gap: 20px;
	align-items: start;
}

.deal-card {
	background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
	border: 1px solid var(--line);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: var(--shadow);
	display: grid;
	align-items: stretch;
	min-height: 0;
	transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.deal-card:hover {
	transform: translateY(-2px);
	border-color: rgba(125,211,252,0.2);
	box-shadow: 0 24px 52px rgba(0,0,0,0.34);
}

.deal-card.has-image {
	grid-template-columns: 176px 1fr;
}

.deal-card.no-image {
	grid-template-columns: 1fr;
}

.deal-image-wrap {
	background: linear-gradient(180deg, #1f2945, #101829);
	height: 100%;
	min-height: 100%;
	overflow: hidden;
	display: block;
	position: relative;
}

.deal-image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
	transition: transform .22s ease;
}

.deal-card:hover .deal-image-wrap img {
	transform: scale(1.03);
}

.deal-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 16px;
	min-width: 0;
}

.badges {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.badge-good {
	background: rgba(134,239,172,.1);
	color: var(--good);
}

.badge-warn {
	background: rgba(252,211,77,.11);
	color: var(--warn);
}

.badge-danger {
	background: rgba(252,165,165,.11);
	color: var(--danger);
}

.badge-dark {
	background: rgba(255,255,255,.05);
	color: var(--muted);
}

.deal-title {
	margin: 0;
	font-size: 1.26rem;
	line-height: 1.18;
	max-width: 22ch;
}

.deal-title a {
	color: inherit;
	text-decoration: none;
}

.deal-title a:hover {
	color: var(--accent);
}

.deal-subline {
	margin-top: 7px;
	color: #d7def7;
	font-size: 0.94rem;
	font-weight: 600;
}

.deal-posted {
	margin-top: 7px;
	color: var(--muted);
	font-size: 0.88rem;
}

.deal-note {
	margin-top: 10px;
	color: #d5ddfa;
	font-size: 0.92rem;
	line-height: 1.5;
	opacity: 0.88;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.deal-metrics {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.metric-box {
	background: rgba(255,255,255,0.04);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 13px 14px;
}

.price-hero {
	font-size: 1.55rem;
	font-weight: 800;
	margin-top: 4px;
	line-height: 1;
}

.deal-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 2px;
}

.deal-actions .button {
	min-width: 104px;
}

.empty,
.notice,
.panel-inner {
	padding: 18px;
}

.notice {
	border-radius: 18px;
	background: rgba(125,211,252,0.08);
	border: 1px solid rgba(125,211,252,0.18);
	color: var(--text);
}

.footer {
	padding: 36px 0 50px;
	color: var(--muted);
}

.detail-layout {
	display: grid;
	grid-template-columns: .8fr 1.2fr;
	gap: 22px;
}

.detail-card-image {
	border-radius: 24px;
	overflow: hidden;
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
}

.detail-panel {
	padding: 24px;
}

.detail-panel h1 {
	margin-top: 0;
	font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.kv {
	display: grid;
	grid-template-columns: repeat(2, minmax(0,1fr));
	gap: 14px;
	margin: 18px 0;
}

.kv-item {
	background: rgba(255,255,255,0.05);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 14px;
}

.kv-label {
	font-size: 12px;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: .1em;
}

.kv-value {
	margin-top: 8px;
	font-size: 1.15rem;
	font-weight: 800;
}

.admin-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
	align-items: start;
}

.form-grid {
	display: grid;
	gap: 12px;
}

.label {
	display: block;
	font-size: 14px;
	color: var(--muted);
	margin: 0 0 6px;
}

textarea {
	min-height: 110px;
	resize: vertical;
}

.code {
	background: rgba(0,0,0,0.3);
	border: 1px solid var(--line);
	padding: 12px;
	border-radius: 12px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	overflow: auto;
}

.small {
	color: var(--muted);
	font-size: 13px;
}

.hidden {
	display: none !important;
}

/* --------------------------------- */
/* Radar */
/* --------------------------------- */

.radar-filter.active {
	background: linear-gradient(135deg, rgba(125,211,252,0.16), rgba(167,139,250,0.16));
	border-color: rgba(125,211,252,0.24);
	color: var(--text);
}

.radar-card {
	min-height: 215px;
}

.radar-card .deal-note {
	min-height: 48px;
}

.radar-card.is-hidden {
	display: none;
}

/* --------------------------------- */
/* Admin manager cards */
/* --------------------------------- */

.admin-card {
	position: relative;
}

.admin-card .deal-body {
	gap: 16px;
}

.admin-status-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.admin-edit-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 8px;
}

.admin-edit-grid .full {
	grid-column: 1 / -1;
}

.admin-inline-editor {
	background: rgba(255,255,255,0.035);
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 14px;
}

.admin-inline-editor .label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.admin-card .metric-box .small {
	display: block;
	margin-bottom: 4px;
}

.admin-card.is-editing {
	border-color: rgba(125,211,252,0.28);
	box-shadow: 0 20px 60px rgba(0,0,0,0.34), 0 0 0 1px rgba(125,211,252,0.12) inset;
}

.admin-card-header-line {
	display: flex;
	align-items: start;
	justify-content: space-between;
	gap: 12px;
}

.admin-card-id {
	font-size: 11px;
	color: var(--muted);
	word-break: break-all;
	opacity: 0.82;
}

.admin-manager-toolbar {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
}

.admin-section-empty {
	padding: 28px;
	text-align: center;
	color: var(--muted);
	background: rgba(255,255,255,0.03);
	border: 1px dashed var(--line);
	border-radius: 20px;
}

.theme-builder-header {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 12px;
	align-items: end;
}

.theme-field-head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 8px;
}

.theme-helper-btn {
	padding: 9px 12px;
	border-radius: 10px;
	font-size: 0.9rem;
	line-height: 1.1;
	align-self: flex-start;
}

.theme-selected-count {
	color: var(--good);
	font-weight: 700;
	padding-bottom: 10px;
}

.theme-deal-selector,
.theme-days-list,
.theme-nav-row {
	display: grid;
	gap: 12px;
}

.theme-deal-selector {
	max-height: 420px;
	overflow: auto;
	padding-right: 4px;
}

.theme-deal-option,
.theme-day-card {
	background: rgba(255,255,255,0.04);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 14px;
}

.theme-deal-option {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 12px;
	align-items: start;
	cursor: pointer;
}

.theme-deal-option input {
	margin-top: 3px;
}

.theme-deal-option-title {
	font-weight: 700;
}

.theme-deal-option-meta {
	margin-top: 6px;
	color: var(--muted);
	font-size: 0.92rem;
}

.theme-day-card h3 {
	margin: 0;
}

.status-published {
	color: var(--good);
}

.status-deleted {
	color: var(--danger);
}

.status-other {
	color: var(--warn);
}

/* --------------------------------- */
/* Logo helpers */
/* --------------------------------- */

.brand-logo {
	width: 88px;
	height: 88px;
	object-fit: contain;
	border-radius: 12px;
	box-shadow: var(--shadow);
	background: rgba(255,255,255,0.04);
	padding: 4px;
}

/* --------------------------------- */
/* Responsive */
/* --------------------------------- */

@media (max-width: 920px) {
	.hero-grid,
	.detail-layout,
	.admin-layout {
		grid-template-columns: 1fr;
	}

	.toolbar {
		grid-template-columns: 1fr;
	}

	.card-grid {
		grid-template-columns: 1fr;
	}

	.deal-card.has-image,
	.deal-card.no-image {
		grid-template-columns: 1fr;
	}

	.deal-image-wrap {
		min-height: 230px;
	}

	.deal-body {
		padding: 18px;
	}

	.deal-title {
		max-width: none;
		font-size: 1.18rem;
	}

	.deal-actions .button {
		flex: 1 1 calc(50% - 5px);
		min-width: 0;
	}

	.admin-edit-grid {
		grid-template-columns: 1fr;
	}

	.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(0,255,150,0.3));
}

.admin-gate {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(3, 8, 24, 0.88);
	backdrop-filter: blur(10px);
}

.admin-gate-card {
	width: min(440px, 100%);
	background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
	border: 1px solid var(--line);
	border-radius: 24px;
	box-shadow: var(--shadow);
	padding: 28px;
	text-align: center;
}

.admin-gate-logo {
	height: 88px;
	width: auto;
	display: block;
	margin: 0 auto 14px;
}

.admin-gate-card h1 {
	margin: 0 0 8px;
	font-size: 2rem;
}

.admin-gate-card p {
	margin: 0 0 18px;
	color: var(--muted);
}

.admin-gate-form {
	display: grid;
	gap: 12px;
}

}
