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

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.container {
	background: white;
	border-radius: 20px;
	padding: 40px;
	max-width: 500px;
	width: 100%;
	box-shadow: 0 20px 60px rgba(0,0,0,0.3);
	text-align: center;
}

.icon {
	font-size: 80px;
	margin-bottom: 20px;
	animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-20px); }
}

h1 {
	color: #333;
	margin-bottom: 15px;
	font-size: 28px;
}

p {
	color: #666;
	line-height: 1.6;
	margin-bottom: 25px;
}

.install-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.8);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	padding: 20px;
	animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.install-modal.show {
	display: flex;
}

.modal-content {
	background: white;
	border-radius: 20px;
	padding: 40px;
	max-width: 400px;
	width: 100%;
	text-align: center;
	animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
	from { transform: translateY(50px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

.modal-icon {
	font-size: 60px;
	margin-bottom: 20px;
}

.modal-content h2 {
	color: #333;
	margin-bottom: 15px;
	font-size: 24px;
}

.modal-content p {
	color: #666;
	margin-bottom: 25px;
	font-size: 14px;
}

.button-group {
	display: flex;
	gap: 10px;
	justify-content: center;
}

button {
	background: #667eea;
	color: white;
	border: none;
	padding: 15px 30px;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s;
	flex: 1;
}

button:hover {
	background: #5568d3;
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

button.secondary {
	background: transparent;
	color: #667eea;
	border: 2px solid #667eea;
}

button.secondary:hover {
	background: #f0f0f0;
}

.status {
	padding: 15px;
	border-radius: 10px;
	margin: 20px 0;
	font-weight: 500;
}

.success {
	background: #d4edda;
	color: #155724;
	border: 2px solid #c3e6cb;
}

.info {
	background: #d1ecf1;
	color: #0c5460;
	border: 2px solid #bee5eb;
}

.warning {
	background: #fff3cd;
	color: #856404;
	border: 2px solid #ffeaa7;
}

.offline-banner {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: #f44336;
	color: white;
	padding: 12px 20px;
	text-align: center;
	font-weight: 600;
	z-index: 9999;
	transform: translateY(-100%);
	transition: transform 0.3s ease-out;
}

.offline-banner.show {
	transform: translateY(0);
}

.offline-banner.online {
	background: #4CAF50;
}

.ios-instructions {
	text-align: left;
	background: #f8f9fa;
	padding: 20px;
	border-radius: 10px;
	margin-top: 20px;
	font-size: 14px;
	line-height: 1.6;
}

.ios-instructions h3 {
	color: #667eea;
	margin-bottom: 10px;
}

.ios-instructions ol {
	margin-left: 20px;
}

.ios-instructions li {
	margin: 8px 0;
}

.features {
	text-align: left;
	background: #f8f9fa;
	padding: 20px;
	border-radius: 10px;
	margin: 20px 0;
	font-size: 14px;
}

.features h3 {
	color: #667eea;
	margin-bottom: 15px;
	text-align: center;
}

.feature-item {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 12px 0;
	padding: 10px;
	background: white;
	border-radius: 8px;
}

.feature-icon {
	font-size: 24px;
}

.toast {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: #333;
	color: white;
	padding: 15px 25px;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.3);
	z-index: 10001;
	animation: slideUp 0.3s ease-out;
}

.offline-content {
	display: none;
}

body.offline .offline-content {
	display: block;
}

body.offline .online-content {
	display: none;
}
