:root {
	--bg: #000b17;
	--card: #121826;
	--brand: #017af4;
	--text: #fff;
}
* {
	box-sizing: border-box;
}
body {
	background: var(--bg);
	color: var(--text);
	font-family: "Visby CF", system-ui;
	margin: 0;
}

main {
	position: relative;
	overflow: hidden;
	min-height: 100vh;
	padding: 1.5rem 1.5rem 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

.view {
	display: flex;
	flex-direction: column;
	max-width: 480px;
	width: 100%;
	min-height: auto;
	justify-content: center;
	text-align: center;
	/* background: rgba(18, 24, 38, 0.8); */
	/* border-radius: 24px; */
	/* padding: 2rem; */
	/* backdrop-filter: blur(10px); */
	/* border: 1px solid rgba(255, 255, 255, 0.1); */
}

.btn {
	width: 100%;
	padding: 16px 20px;
	border: 0;
	border-radius: 16px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(1, 114, 244, 0.3);
}
.btn.secondary {
	background: transparent;
	color: rgba(255, 255, 255, 0.66);
}
.avatar-wrap {
	display: flex;
	margin: 12px 0;
	justify-content: center;
	flex-direction: column;
	align-items: center;
}
img.avatar-bg {
	position: absolute;
	width: 100vw;
}
.avatar {
	width: 120px;
	height: 120px;
	border-radius: 999px;
	box-shadow: 0 0 0 4px rgba(58, 167, 255, 0.2);
	transition: transform 1s ease, opacity 1s ease, box-shadow 0.6s;
}
.avatar.fly-out {
	transform: scale(4) translateY(-180px);
	opacity: 0;
	box-shadow: 0 0 40px 8px rgba(58, 167, 255, 0.6);
}

.hidden {
	display: none;
}
.input {
	font-size: 16px;
}
.list {
	list-style: none;
	margin: 12px 0;
	padding: 0;
	overflow: auto;
}
.item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 12px;
	background: #0e1524;
	margin-bottom: 8px;
	cursor: pointer;
}
.item.disabled {
	opacity: 0.55;
	cursor: not-allowed;
}
.item .badge {
	margin-left: auto;
	background: #26324a;
	color: #cfeaff;
	border-radius: 10px;
	padding: 4px 8px;
	font-size: 12px;
}
.item.add-new {
	background: #0a1b2e;
	border: 1px solid #0172f4;
	transition: all 0.2s ease;
}
.item.add-new:hover {
	background: #0e2540;
	transform: translateY(-1px);
}
.button-group {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: center;
	margin-top: 10px;
	flex-direction: column;
}
.input {
	width: 100%;
	padding: 16px 20px;
	border-radius: 16px;
	border: 2px solid rgba(255, 255, 255, 0.1);
	background: rgba(14, 21, 36, 0.8);
	color: #e9eef7;
	font-size: 16px;
	transition: all 0.3s ease;
}

.input:focus {
	outline: none;
	border-color: #0172f4;
	background: rgba(14, 21, 36, 1);
	box-shadow: 0 0 20px rgba(1, 114, 244, 0.3);
}
.subtitle {
	opacity: 0.8;
	margin: 8px 0 0;
}
.note {
	opacity: 0.7;
	font-size: 12px;
	margin-top: 6px;
}

/* --- Inline micro-animations and helper states for the check-in sequence --- */
magic-button[data-subtitle]::after {
	content: attr(data-subtitle);
	display: block;
	font-size: 0.875rem;
	line-height: 1.25;
	opacity: 0.9;
}
.btn-busy {
	pointer-events: none;
}

/* Avatar micro-reactions */
.avatar.awake {
	animation: avatarAwake 0.4s ease both;
}
@keyframes avatarAwake {
	from {
		transform: scale(0.98);
	}
	to {
		transform: scale(1);
	}
}

/* Simple fades */
.fade-out {
	animation: fadeOut 0.25s ease both;
}
.fade-in {
	animation: fadeIn 0.25s ease both;
}
@keyframes fadeOut {
	to {
		opacity: 0;
		transform: translateY(4px);
	}
}
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* Greeting paragraph styling */
.greeting {
	margin: 0.75rem 0 0;
	text-align: center;
	opacity: 0.95;
	line-height: 1.4;
}

/* Typing cursor effect */
.greeting.typing-cursor::after {
	content: "|";
	color: #0172f4;
	animation: blink-cursor 1s infinite;
	margin-left: 2px;
}

@keyframes blink-cursor {
	0%,
	50% {
		opacity: 1;
	}
	51%,
	100% {
		opacity: 0;
	}
}

/* Gradient shimmer animation */
.greeting.gradient-shimmer {
	background: linear-gradient(
		to right,
		#7953cd 20%,
		#00affa 30%,
		#0190cd 70%,
		#764ada 80%
	);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	text-fill-color: transparent;
	background-size: 500% auto;
	animation: textShine 5s ease-in-out infinite alternate;
}

@keyframes textShine {
	0% {
		background-position: 0% 50%;
	}
	100% {
		background-position: 100% 50%;
	}
}

/* Free-form options layout */
.options-container {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
	margin-top: 2rem;
	/* padding: 0 1rem; */
	display: grid;
	/* justify-content: center; */
	grid-template: 1 1 1 1;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: repeat(2, 1fr);
}

.option-btn {
	background: rgba(14, 21, 36, 0.8);
	border: 2px solid rgba(255, 255, 255, 0.1);
	border-radius: 20px;
	padding: 1rem 1.5rem;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	transition: all 0.3s ease;
	color: #fff;
	font-weight: 500;
	min-width: 120px;
	backdrop-filter: blur(10px);
	align-content: center;
	justify-content: center;
}

.option-btn:hover {
	transform: translateY(-3px) scale(1.05);
	border-color: #0172f4;
	box-shadow: 0 8px 25px rgba(1, 114, 244, 0.3);
	background: rgba(1, 114, 244, 0.1);
}

.option-icon {
	font-size: 1rem;
	margin-bottom: 0.25rem;
}

.option-btn span {
	font-size: 0.9rem;
	text-align: center;
}

/* Modal styles */
.modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 11, 23, 0.9);
	backdrop-filter: blur(10px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	padding: 1rem;
}

.modal.hidden {
	display: none !important;
}

.modal-content {
	background: rgba(18, 24, 38, 0.95);
	border-radius: 24px;
	padding: 1rem;
	max-width: 500px;
	max-height: 80vh;
	/* min-height: 70vh; */
	width: 100%;
	border: 1px solid rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(20px);
	overflow-y: hidden;
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
}

.modal-header h3 {
	margin: 0;
	color: #fff;
	font-size: 1.25rem;
}

.close-btn {
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.7);
	font-size: 1.5rem;
	cursor: pointer;
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: all 0.2s ease;
}

.close-btn:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

/* Drinks list */
.drinks-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	max-height: 70vh;
	overflow-y: auto;
}

.drink-category {
	margin-bottom: 1rem;
}

.drink-category h4 {
	margin: 0 0 0.5rem 0;
	color: #7dd3fc;
	font-size: 1.1rem;
	font-weight: 400;
	/* border-bottom: 1px solid rgba(125, 211, 252, 0.3); */
	padding-bottom: 0.25rem;
}

.drink-item {
	background: rgba(14, 21, 36, 0.6);
	padding: 0.75rem 1rem;
	border-radius: 8px;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.9rem;
	margin-bottom: 0.5rem;
	transition: all 0.2s ease;
}

.drink-item:hover {
	background: rgba(1, 114, 244, 0.1);
	border-color: rgba(1, 114, 244, 0.3);
}

/* Message form */
.message-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.message-form textarea {
	background: rgba(14, 21, 36, 0.8);
	border: 2px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	padding: 1rem;
	color: #fff;
	font-family: inherit;
	font-size: 1rem;
	resize: vertical;
	min-height: 200px;
	max-height: 300px;
}

.message-form textarea:focus {
	outline: none;
	border-color: #0172f4;
	box-shadow: 0 0 20px rgba(1, 114, 244, 0.3);
}

.message-form textarea::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

.btn-icon {
	margin-right: 8px;
	font-size: 1.1em;
}
.btn.primary {
	background: #0172f4;
	color: #fff;
}

.btn.ghost {
	background: transparent;
	border: 1px solid #2b3d55;
	color: #cfe6ff;
}

/* Scene blur/brighten during launch */
@keyframes scene-blur {
	0% {
		filter: blur(0) brightness(1);
	}
	20% {
		filter: blur(4px) brightness(1.7);
	}
	100% {
		filter: blur(0) brightness(1);
	}
}
.animate-scene-blur {
	animation: scene-blur 0.7s ease-out forwards 0.8s;
}

/* Debris arcs */
@keyframes debris-arc-1 {
	from {
		transform: translate(0, 0) scale(1);
		opacity: 0.8;
	}
	to {
		transform: translate(-50px, 40px) scale(0);
		opacity: 0;
	}
}
@keyframes debris-arc-2 {
	from {
		transform: translate(0, 0) scale(1);
		opacity: 0.9;
	}
	to {
		transform: translate(60px, 50px) scale(0);
		opacity: 0;
	}
}
@keyframes debris-arc-3 {
	from {
		transform: translate(0, 0) scale(1);
		opacity: 0.7;
	}
	to {
		transform: translate(20px, 70px) scale(0);
		opacity: 0;
	}
}
.animate-debris-1 {
	animation: debris-arc-1 0.6s ease-out forwards;
}
.animate-debris-2 {
	animation: debris-arc-2 0.7s ease-out forwards 0.05s;
}
.animate-debris-3 {
	animation: debris-arc-3 0.65s ease-out forwards 0.02s;
}
.debris-dot {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #94a3b8;
	transform: translate(-50%, -50%);
	pointer-events: none;
	z-index: 9;
}

/* === Circle animations (identical) === */
@keyframes charge-circle {
	0% {
		transform: scale(1);
		box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
	}
	60% {
		transform: scale(1.15);
		box-shadow: 0 0 70px 30px rgba(255, 255, 255, 0.9);
	}
	100% {
		transform: scale(1.05);
		box-shadow: 0 0 90px 40px rgba(255, 255, 255, 1);
	}
}
.animate-charge-circle {
	animation: charge-circle 1.5s ease-in-out forwards;
}

@keyframes launch-circle-and-blast {
	0% {
		transform: translateY(0) scale(1.05);
		opacity: 1;
		box-shadow: 0 0 90px 40px rgba(255, 255, 255, 1);
	}
	10% {
		transform: translateY(-2vh) scale(1.05);
		opacity: 1;
		box-shadow: 0 10px 40px 5px rgba(220, 255, 255, 1);
	}
	20% {
		transform: translateY(-5vh) scale(1.05);
		opacity: 1;
		box-shadow: 0 20px 50px 10px rgba(220, 255, 255, 1),
			0 30px 80px 20px rgba(125, 211, 252, 0.7);
	}
	75% {
		transform: translateY(-60vh) scale(0.8);
		opacity: 1;
		box-shadow: 0 150px 150px 60px rgba(220, 255, 255, 0.9),
			0 250px 300px 150px rgba(59, 130, 246, 0.8),
			0 350px 500px 250px rgba(94, 23, 235, 0.6);
	}
	100% {
		transform: translateY(-120vh) scale(0.5);
		opacity: 0;
		box-shadow: 0 200px 200px 100px rgba(220, 255, 255, 0),
			0 300px 400px 200px rgba(59, 130, 246, 0),
			0 400px 600px 300px rgba(94, 23, 235, 0);
	}
}
.animate-launch-circle {
	animation: launch-circle-and-blast 1.2s cubic-bezier(0.3, 0, 0.7, 1) forwards;
}
/* Fix: starfield should never block clicks */
main::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image: radial-gradient(1px 1px at 20% 30%, #fff, transparent),
		radial-gradient(1px 1px at 80% 60%, #fff, transparent),
		radial-gradient(2px 2px at 50% 50%, #fff, transparent),
		radial-gradient(1px 1px at 40% 80%, #fff, transparent),
		radial-gradient(1px 1px at 10% 90%, #fff, transparent),
		radial-gradient(2px 2px at 90% 10%, #fff, transparent),
		radial-gradient(1px 1px at 70% 20%, #fff, transparent);
	background-repeat: repeat;
	background-size: 400px 400px;
	opacity: 0.3;
	animation: pan-stars 60s linear infinite;
	pointer-events: none !important;
	z-index: -1 !important;
}
@keyframes pan-stars {
	from {
		background-position: 0 0;
	}
	to {
		background-position: -400px -400px;
	}
}

/* Ensure avatar animates exactly like the circle ref */
.avatar-wrap {
	position: relative;
	overflow: visible;
}
.avatar {
	display: block;
	width: 184px;
	height: 184px;
	object-fit: cover;
	border-radius: 999px;
	will-change: transform, box-shadow;
	backface-visibility: hidden;
	position: relative;
	transform-origin: center center;
}
.avatar {
	z-index: 2;
	position: relative;
}
.header-video {
	position: relative;
	display: block;
	height: auto;
	width: 100%;
}

.header-video-wrap {
	position: relative;
}

.header-video-wrap::before {
	content: "";
	background: radial-gradient(
		rgba(0, 0, 0, 0) 55%,
		rgb(1 11 23) 75%,
		rgb(1 11 23) 100%
	);
	opacity: 1; /* probaj 0.8 za suptilnije */
	height: auto;
	width: 100%;
	position: absolute;
	/* background: rebeccapurple; */
	z-index: 1;
	left: 0;
	top: 0;
}
