 * {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
} 

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	padding: 0;
}

.app-wrapper {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.main-header {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	padding: 15px 30px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 15px;
	position: sticky;
	top: 0;
	z-index: 100;
}

.logo-area {
	display: flex;
	align-items: center;
	gap: 10px;
}

.logo-area i {
	font-size: 28px;
	background: linear-gradient(135deg, #667eea, #764ba2);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.logo-area span {
	font-weight: 700;
	font-size: 1.3rem;
	color: #333;
}

.lang-switch {
	display: flex;
	gap: 8px;
	background: #f0f0f0;
	padding: 5px 12px;
	border-radius: 40px;
}

.lang-btn {
	background: none;
	border: none;
	font-size: 1.3rem;
	cursor: pointer;
	padding: 5px 8px;
	border-radius: 30px;
	transition: all 0.2s;
	opacity: 0.6;
}

.lang-btn.active {
	opacity: 1;
	background: white;
	box-shadow: 0 2px 6px rgba(0,0,0,0.1);
	transform: scale(1.05);
}

.lang-btn:hover {
	opacity: 1;
	background: rgba(102, 126, 234, 0.2);
}

.logout-btn {
	background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
	border: none;
	padding: 10px 24px;
	border-radius: 40px;
	color: white;
	font-weight: 600;
	cursor: pointer;
	transition: 0.2s;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	font-family: inherit;
	
}
.btn-add {
	background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
	border: none;
	padding: 10px 24px;
	border-radius: 40px;
	color: white;
	font-weight: 600;
	cursor: pointer;
	transition: 0.2s;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	font-family: inherit;
	
}


.logout-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 14px rgba(245, 87, 108, 0.4);
}

.logout-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
	
}

.main-content {
	flex: 1;
	max-width: 1300px;
	width: 100%;
	margin: 40px auto;
	padding: 0 25px;
}

.balance-card {
	background: white;
	border-radius: 32px;
	padding: 30px;
	text-align: center;
	margin-bottom: 40px;
	box-shadow: 0 20px 35px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s;
}

.balance-label {
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #7c8ba0;
	font-weight: 600;
}

.balance-amount {
	font-size: 3.5rem;
	font-weight: 800;
	color: #2d3561;
	margin: 15px 0;
	word-break: break-word;
}

.balance-amount span {
	font-size: 1.8rem;
	font-weight: 500;
}

.btn-recharge {
	background: linear-gradient(90deg, #667eea, #764ba2);
	border: none;
	padding: 14px 40px;
	border-radius: 60px;
	font-size: 1.2rem;
	font-weight: bold;
	color: white;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	transition: all 0.25s;
	margin-top: 10px;
	box-shadow: 0 6px 14px rgba(102, 126, 234, 0.3);
}

.btn-recharge:hover {
	transform: scale(1.02);
	box-shadow: 0 12px 22px rgba(102, 126, 234, 0.5);
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 28px;
	margin-top: 20px;
}

.feature-card {
	background: white;
	border-radius: 28px;
	padding: 28px 20px;
	transition: all 0.3s;
	cursor: pointer;
	text-align: center;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 25px 35px rgba(0, 0, 0, 0.15);
}

.feature-icon {
	font-size: 3rem;
	background: linear-gradient(135deg, #667eea, #764ba2);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	margin-bottom: 18px;
}

.feature-card h3 {
	font-size: 1.6rem;
	margin-bottom: 10px;
	color: #2d3561;
}

.feature-card p {
	color: #6c757d;
	font-size: 0.9rem;
}

.main-footer {
	background: #1e1e2f;
	color: #ccc;
	text-align: center;
	padding: 25px 20px;
	margin-top: 40px;
	font-size: 0.85rem;
}

.footer-links {
	display: flex;
	justify-content: center;
	gap: 30px;
	flex-wrap: wrap;
	margin-bottom: 15px;
}

.footer-links a {
	color: #bbb;
	text-decoration: none;
	transition: 0.2s;
}

.footer-links a:hover {
	color: white;
}

.toast-msg {
	position: fixed;
	bottom: 30px;
	right: 30px;
	background: #323232;
	color: white;
	padding: 12px 20px;
	border-radius: 40px;
	font-size: 0.9rem;
	z-index: 200;
	opacity: 0;
	transition: 0.2s;
	pointer-events: none;
	box-shadow: 0 5px 12px black;
}
.toast-msg.show {
	opacity: 1;
}

.modal-confirm {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.5);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 10000;
}

.modal-confirm-content {
	background: white;
	border-radius: 10px;
	padding: 25px;
	min-width: 320px;
	max-width: 450px;
	text-align: center;
	box-shadow: 0 5px 20px rgba(0,0,0,0.3);
	animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
	from {
		opacity: 0;
		transform: scale(0.9);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.modal-confirm-buttons {
	display: flex;
	gap: 15px;
	justify-content: center;
	margin-top: 20px;
}

.modal-confirm-btn {
	padding: 8px 25px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-size: 14px;
	transition: 0.2s;
}

.modal-confirm-btn.ok {
	background: #2ecc71;
	color: white;
}

.modal-confirm-btn.ok:hover {
	background: #27ae60;
}

.modal-confirm-btn.cancel {
	background: #e74c3c;
	color: white;
}

.modal-confirm-btn.cancel:hover {
	background: #c0392b;
}


@media (max-width: 680px) {
	.main-header {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}
	.lang-switch {
		justify-content: center;
	}
	.logout-btn {
		justify-content: center;
		text-align: center;
		
	}
	.btn-add {
		justify-content: center;
		text-align: center;
		
	}
	.balance-amount {
		font-size: 2.2rem;
	}
	
	.main-header > div:last-child {
		flex-direction: row;  /* В строку, а не в колонку */
		width: 100%;
		gap: 10px;
	}
	
	.main-header > div:last-child button {
		flex: 1;  /* Равная ширина */
		width: auto;
		justify-content: center;
		text-align: center;
	}
}