/* MOBILE MODAL */
.mobileModal {
	display: none;
	position: fixed;
	z-index: 6700;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(8px);
	animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.modal-content {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
	border-top-left-radius: 24px;
	border-top-right-radius: 24px;
	padding: 32px 24px 40px;
	box-shadow: 0 -12px 40px rgba(0, 51, 103, 0.15);
	animation: slideUp 0.4s ease-out;
	max-width: 500px;
	margin: 0 auto;
}

@keyframes slideUp {
	from {
		transform: translateY(100%);
	}
	to {
		transform: translateY(0);
	}
}

.modal-header {
	text-align: center;
	margin-bottom: 28px;
}

.modal-header h3 {
	font-size: 1.5rem;
	font-weight: 700;
	color: #003367;
	margin: 0 0 8px 0;
	line-height: 1.3;
	font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.modal-header p {
	font-size: 1rem;
	color: #6b7280;
	margin: 0;
	line-height: 1.4;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.modal-actions {
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: center;
}

.download-button {
	width: 100%;
	max-width: 280px;
	padding: 16px 24px;
	background: linear-gradient(135deg, #003367 0%, #0079cc 100%);
	color: white;
	border: none;
	border-radius: 12px;
	font-size: 1.1rem;
	font-weight: 600;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 16px rgba(0, 51, 103, 0.2);
	position: relative;
	overflow: hidden;
}

.download-button::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.6s ease;
}

.download-button:hover::before {
	left: 100%;
}

.download-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 51, 103, 0.3);
}

.download-button:active {
	transform: translateY(0);
	box-shadow: 0 4px 16px rgba(0, 51, 103, 0.2);
}

.download-text {
	position: relative;
	z-index: 1;
}

.dismiss-button {
	background: none;
	border: none;
	color: #9ca3af;
	font-size: 0.9rem;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	cursor: pointer;
	padding: 8px 16px;
	transition: all 0.2s ease;
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
}

.dismiss-button:hover {
	color: #6b7280;
	text-decoration-thickness: 2px;
}

.dismiss-button:active {
	transform: scale(0.98);
}

/* Handle safe area for devices with notches */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
	.modal-content {
		padding-bottom: calc(40px + env(safe-area-inset-bottom));
	}
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
	.modal-content {
		background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
		box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.3);
	}
	
	.modal-header h3 {
		color: #f9fafb;
	}
	
	.modal-header p {
		color: #9ca3af;
	}
	
	.dismiss-button {
		color: #6b7280;
	}
	
	.dismiss-button:hover {
		color: #9ca3af;
	}
}

/* Small screen adjustments */
@media (max-width: 400px) {
	.modal-content {
		padding: 28px 20px 36px;
	}
	
	.modal-header h3 {
		font-size: 1.3rem;
	}
	
	.modal-header p {
		font-size: 0.9rem;
	}
	
	.download-button {
		font-size: 1rem;
		padding: 14px 20px;
	}
}
