/* ── Midnight Template ───────────────────────────────────── */
:root {
	--dlk-primary:   #6C63FF;
	--dlk-secondary: #FF6584;
}

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

html, body { height: 100%; }

.dlk-page {
	min-height: 100vh;
	background: linear-gradient(135deg, #0f0f1a 0%, #1a0f2e 50%, #0a1628 100%);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
	color: #ffffff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
}

/* Particles canvas */
#dlk-particles {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

.dlk-overlay {
	position: fixed;
	inset: 0;
	background: radial-gradient(ellipse at 20% 50%, rgba(108,99,255,.08) 0%, transparent 60%),
	            radial-gradient(ellipse at 80% 20%, rgba(255,101,132,.06) 0%, transparent 60%);
	pointer-events: none;
	z-index: 1;
}

.dlk-container {
	position: relative;
	z-index: 10;
	max-width: 680px;
	width: 100%;
	padding: 48px 32px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
}

/* Logo */
.dlk-logo img { max-width: 100%; height: auto; display: block; margin: 0 auto; filter: brightness(1.1); }

/* Mode Badge */
.dlk-mode-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 18px;
	background: rgba(108,99,255,.18);
	border: 1px solid rgba(108,99,255,.35);
	border-radius: 30px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #a5a0ff;
	backdrop-filter: blur(8px);
}

/* Headline */
.dlk-headline {
	font-size: clamp(42px, 8vw, 72px);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.15;
	padding-bottom: 0.1em;
	background: linear-gradient(135deg, #ffffff 30%, rgba(255,255,255,.6) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.dlk-subheadline {
	font-size: clamp(15px, 2.5vw, 19px);
	color: rgba(255,255,255,.6);
	line-height: 1.6;
	max-width: 480px;
}

.dlk-description {
	font-size: 15px;
	color: rgba(255,255,255,.45);
	line-height: 1.7;
	max-width: 480px;
}

/* Countdown */
.dlk-countdown {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
}

.dlk-countdown-unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	min-width: 80px;
}

.dlk-countdown-number {
	font-size: clamp(36px, 7vw, 60px);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	color: #fff;
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.1);
	border-radius: 14px;
	padding: 16px 22px;
	min-width: 90px;
	text-align: center;
	backdrop-filter: blur(12px);
	box-shadow: 0 4px 24px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.08);
}

.dlk-countdown-sep {
	font-size: clamp(28px, 5vw, 48px);
	font-weight: 800;
	color: rgba(255,255,255,.25);
	line-height: 1;
	margin-bottom: 22px;
	align-self: flex-start;
	padding-top: 16px;
}

.dlk-countdown-label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .12em;
	color: rgba(255,255,255,.35);
}

.dlk-countdown-expired {
	font-size: 18px;
	color: rgba(255,255,255,.7);
}

/* Progress Bar */
.dlk-progress-wrap { width: 100%; max-width: 420px; }
.dlk-progress-header { display: flex; justify-content: space-between; margin-bottom: 10px; }
.dlk-progress-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.dlk-progress-pct   { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.6); }
.dlk-progress-track {
	height: 6px;
	background: rgba(255,255,255,.1);
	border-radius: 6px;
	overflow: hidden;
}
.dlk-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--dlk-primary), var(--dlk-secondary));
	border-radius: 6px;
	transition: width .9s cubic-bezier(.34,1.56,.64,1);
}

/* Email Form */
.dlk-email-form { width: 100%; max-width: 480px; }

.dlk-email-row {
	display: flex;
	gap: 0;
	background: rgba(255,255,255,.07);
	border: 1px solid rgba(255,255,255,.12);
	border-radius: 50px;
	overflow: hidden;
	backdrop-filter: blur(12px);
}

.dlk-email-row input {
	flex: 1;
	background: transparent;
	border: none;
	outline: none;
	padding: 14px 22px;
	font-size: 14px;
	color: #fff;
	min-width: 0;
}

.dlk-email-row input::placeholder { color: rgba(255,255,255,.35); }

.dlk-email-row button {
	padding: 12px 26px;
	background: var(--dlk-primary);
	color: #fff;
	border: none;
	border-radius: 46px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	margin: 4px;
	transition: background .15s, transform .1s;
	white-space: nowrap;
}

.dlk-email-row button:hover { background: var(--dlk-secondary); transform: scale(1.03); }
.dlk-email-row button:disabled { opacity: .6; transform: none; cursor: wait; }

.dlk-form-message {
	margin-top: 12px;
	padding: 10px 16px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 500;
	text-align: center;
}
.dlk-form-success { background: rgba(56,161,105,.2); color: #9ae6b4; border: 1px solid rgba(56,161,105,.3); }
.dlk-form-error   { background: rgba(229,62,62,.2); color: #feb2b2; border: 1px solid rgba(229,62,62,.3); }

/* Social */
.dlk-social { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.dlk-social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: rgba(255,255,255,.07);
	border: 1px solid rgba(255,255,255,.1);
	color: rgba(255,255,255,.6);
	text-decoration: none;
	transition: all .2s;
}
.dlk-social-link svg { width: 18px; height: 18px; }
.dlk-social-link:hover { background: var(--dlk-primary); border-color: var(--dlk-primary); color: #fff; transform: translateY(-2px); }

/* Footer */
.dlk-footer {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	text-align: center;
	padding: 16px;
	font-size: 12px;
	color: rgba(255,255,255,.25);
	z-index: 10;
}

/* Responsive */
@media (max-width: 540px) {
	.dlk-container { padding: 32px 20px; gap: 22px; }
	.dlk-countdown-number { min-width: 64px; padding: 12px 16px; }
	.dlk-countdown-unit { min-width: 64px; }
	.dlk-email-row { flex-direction: column; border-radius: 16px; padding: 8px; gap: 8px; }
	.dlk-email-row input { padding: 12px 14px; }
	.dlk-email-row button { border-radius: 10px; margin: 0; padding: 14px; }
}
