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

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

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

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

@keyframes AnimateArrow {
	0% { transform: translate(-50%, -6px); }
	25% { transform: translate(-50%, -15px); }
	50% { transform: translate(-50%, -15px); }
	100% { transform: translate(-50%, -6px); }
}

@media (max-width: 600px) {
	.download-row {
		flex-direction: column;
		gap: 10px;
	}
	.download-btn-multi {
		width: 90vw;
		min-width: unset;
		font-size: 0.95rem;
	}
}

.download-multi-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: auto;
	margin: 0;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.5s;
	z-index: 3;
}

.download-multi-wrapper.show {
	opacity: 1;
	pointer-events: auto;
}

.download-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 10px;
}

/* Make each download button occupy its own line */
.download-row .download-btn-multi {
    box-sizing: border-box;
    flex: 0 0 100%;
    max-width: 100%;
}

/* Optional: allow 2 per line on wide screens */
@media (min-width: 900px) {
    .download-row .download-btn-multi {
        flex: 0 1 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

.download-btn-multi {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 12px 28px 12px 18px;
	border-radius: 100px;
	background: #000;
	color: #fff;
	font-family: 'Title', Arial, sans-serif;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	margin: 10px;
	min-width: 290px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.18);
	transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
	overflow: hidden;
	z-index: 0;
}

.download-btn-multi::before {
	content: "";
	position: absolute;
	inset: 0;
	padding: 3px;
	border-radius: 100px;
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	mask-composite: exclude;
	-webkit-mask-composite: xor;
	z-index: -1;
}

.download-btn-opera::before {
	background: linear-gradient(270deg, #ff1b2d, #b50418, #ff4b4b, #ff1b2d);
	background-size: 400% 400%;
	animation: gradient-opera 4s linear infinite alternate;
}

.download-btn-mozilla::before {
	background: linear-gradient(
		270deg,
		#ffec46, #fdaa51, #f47f62, #ef6671,
		#ff3b41, #e10665, #e60371,
		#a92dd5, #973fe5, #6965e9,
		#6e28b6, #ffec46
	);
	background-size: 1200% 1200%;
	animation: gradient-mozilla 8s linear infinite alternate;
}

.download-btn-google::before {
	background: linear-gradient(
		90deg,
		#e43e2b,
		#f0b501,
		#2ba24c,
		#3b7ded,
		#e43e2b
	);
	background-size: 600% 600%;
	animation: gradient-google 6s linear infinite alternate;
}

.download-btn-multi:hover {
	transform: scale(1.05);
	box-shadow: 0 12px 32px rgba(0,0,0,0.22);
	filter: brightness(1.08);
}

.download-btn-multi .download-logo {
	height: 32px;
	width: auto;
	margin-right: 10px;
}

.download-btn-multi .download-text {
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.download-wrapper {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 8px;
	position: relative;
	z-index: 2;
	pointer-events: none;
}

.download-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 12px 28px 12px 18px;
	border-radius: 100px;
	background: linear-gradient(135deg, #52ff84, #0aa95c, #003d1f);
	background-size: 200% 200%;
	box-shadow: 0 14px 30px rgba(7, 100, 35, 0.45);
	color: #fff;
	font-family: 'Title', Arial, sans-serif;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	animation: GradiantColor 4s ease infinite alternate;
	pointer-events: auto;
	user-select: none;
	border: 3px solid #000;
	transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease;
}

.download-btn:hover {
	border-color: #00ff9d;
}

.download-btn.fade-out {
	opacity: 0;
	transform: translateY(6px) scale(0.98);
	pointer-events: none;
	box-shadow: none;
}

.download-visual {
	position: relative;
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.download-bottom {
	width: 40px;
	margin-top: 15px;
	pointer-events: none;
}

.download-arrow {
	position: absolute;
	left: 50%;
	top: 15px;
	width: 26px;
	transform: translate(-50%, -6px);
	animation: AnimateArrow 2.5s ease-in-out infinite;
	pointer-events: none;
}

.bubble-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.5);
	z-index: 1;
	border-radius: 16px;
	pointer-events: none;
}

.bubble {
	flex: 1;
	margin: 0 80px;
	background-color: rgba(0,0,0,0.5);
	border: 3px solid #fff;
	border-radius: 16px;
	padding: 24px 18px;
	color: #fff;
	display: flex;
	flex-direction: column;
	min-width: 280px;
	max-width: 400px;
	position: relative;
	overflow: hidden;
	text-align: justify;
	transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
	box-sizing: border-box;
	will-change: transform;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	transform: translateZ(0);
}

.bubble:hover {
	transform: scale(1.05);
	box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.bubble-header {
	display: flex;
	align-items: center;
	margin-bottom: 12px;
	z-index: 2;
}

.bubble-icon {
	width: 32px;
	margin-right: 10px;
	pointer-events: none;
}

.bubble-title {
	font-size: 1.3rem;
	font-weight: bold;
	font-family: 'Title', Arial, sans-serif;
}

.bubble-description {
	font-size: 1rem;
	line-height: 1.6;
	font-family: 'Description', Arial, sans-serif;
	position: relative;
	z-index: 2;
}

.bubble-description a {
	color: inherit;
	text-decoration: none;
}

.bubble-chat:hover {
	border-color: #c295e8;
	color: #c295e8;
	filter: drop-shadow(0 0 4px #c295e8);
}

.bubble-safe:hover {
	border-color: #36d483;
	color: #36d483;
	filter: drop-shadow(0 0 4px #36d483);
}

.diep-link {
	color: #00c8ff;
	text-decoration: none;
	padding: 1px 6px;
	border: 2px solid #0085a8;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.link-icon {
	width: 15px;
}