:root {
	--bg: #070b12;
	--ink: #e8f3fb;
	--muted: #93a8be;
	--cyan: #3ee0ff;
	--orange: #ff8a1e;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

body {
	margin: 0;
	min-height: 100vh;
	color: var(--ink);
	font-family: Manrope, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.5;
	background:
		radial-gradient(900px 420px at 85% -10%, rgba(20, 150, 190, 0.22), transparent 55%),
		radial-gradient(640px 360px at 0% 100%, rgba(255, 138, 30, 0.1), transparent 50%),
		var(--bg);
}

.background {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px 16px;
}

.box {
	position: relative;
	width: min(460px, 100%);
	padding: 28px 26px 24px;
	text-align: center;
	border: 1px solid rgba(62, 224, 255, 0.45);
	border-radius: 28px;
	background: linear-gradient(180deg, rgba(10, 20, 34, 0.92), rgba(6, 10, 18, 0.94));
	box-shadow: 0 0 0 1px rgba(62, 224, 255, 0.12), 0 0 36px rgba(62, 224, 255, 0.16);
}

.hex {
	position: absolute;
	top: -14px;
	width: 26px;
	height: 28px;
	filter: drop-shadow(0 0 6px rgba(62, 224, 255, 0.45));
}
.hex-l { left: 28px; filter: drop-shadow(0 0 6px rgba(255, 138, 30, 0.45)); }
.hex-r { right: 28px; }

.brand {
	display: inline-flex;
	align-items: center;
	
	margin-bottom: 16px;
	color: #fff;
	text-decoration: none;
	font-family: Oxanium, Manrope, sans-serif;
	font-weight: 700;
	font-size: 1.15rem;
}
.brand img { height: 38px; width: auto; margin-right: 10px; }
.brand span { color: var(--cyan); }

.kicker {
	margin: 0 0 8px;
	color: var(--cyan);
	font-family: Oxanium, Manrope, sans-serif;
	font-size: 0.74rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

h1 {
	margin: 0 0 18px;
	font-family: Oxanium, Manrope, sans-serif;
	font-size: 1.55rem;
	font-weight: 600;
	line-height: 1.2;
}

.filename {
	margin-top: 6px;
	overflow: hidden;
	color: var(--ink);
	font-size: 0.95rem;
	text-align: left;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.file-title {
	margin-bottom: 4px;
	font-weight: 700;
	word-break: break-word;
}

.size, .expire { color: var(--muted); font-size: 0.85rem; }
.size { margin-bottom: 18px; }
.expire { margin-top: 14px; }

.info_pub { margin-bottom: 18px; color: var(--cyan); font-size: 0.92rem; }
.result { min-height: 1.2em; margin-bottom: 12px; color: #ffb089; font-size: 0.9rem; }
.locked { margin-bottom: 8px; color: var(--orange); font-size: 0.9rem; }

textarea, input[type="password"] {
	width: 100%;
	border: 1px solid rgba(62, 224, 255, 0.28);
	border-radius: 12px;
	background: rgba(4, 10, 18, 0.85);
	color: var(--ink);
	font: inherit;
	transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
textarea {
	height: 84px;
	margin-bottom: 14px;
	padding: 10px 12px;
	resize: vertical;
}
input[type="password"] {
	margin-bottom: 12px;
	padding: 12px;
	text-align: center;
}
textarea:focus, input[type="password"]:focus {
	outline: none;
	border-color: var(--cyan);
	box-shadow: 0 0 0 3px rgba(62, 224, 255, 0.14);
}

#uploadFile {
	display: block;
	min-height: 118px;
	margin: 0 0 16px;
	padding: 18px 12px;
	border: 1px dashed rgba(62, 224, 255, 0.5);
	border-radius: 18px;
	background: rgba(4, 12, 22, 0.55);
	cursor: pointer;
	transition: border-color 0.35s var(--ease), background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
#uploadFile input[type="file"] { display: none; }
#uploadFile strong { color: var(--cyan); }
#textStart { color: var(--muted); }
#uploadFile.dragging {
	border-color: var(--orange);
	background: rgba(255, 138, 30, 0.08);
	box-shadow: 0 0 24px rgba(255, 138, 30, 0.16);
}
.hint { margin-top: 6px; color: var(--muted); font-size: 0.75rem; }

.button {
	display: block;
	width: 100%;
	max-width: 240px;
	min-height: 48px;
	margin: 0 auto;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(180deg, #67ebff, #1ec8ee);
	color: #04131b;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 0 22px rgba(62, 224, 255, 0.28);
	transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), filter 0.35s var(--ease), opacity 0.35s var(--ease);
}
.button:hover:not(:disabled) {
	transform: translateY(-2px);
	filter: brightness(1.06);
	box-shadow: 0 10px 28px rgba(62, 224, 255, 0.32);
}
.button:disabled {
	opacity: 0.45;
	cursor: default;
	box-shadow: none;
}

.progressBox {
	position: relative;
	height: 16px;
	margin-top: 6px;
	overflow: hidden;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
}
.progressBox > div {
	height: 100%;
	background: linear-gradient(90deg, #1498c4, var(--cyan));
	transition: width 0.25s var(--ease);
}
.progressBox > span {
	position: absolute;
	inset: 0;
	color: var(--ink);
	font-size: 0.68rem;
	line-height: 16px;
	text-align: center;
}

.empty { color: #ffb089; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; }
}
