* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
	min-height: 100vh;
	color: #333;
	overflow-x: hidden;
}
#root {
	min-height: 100vh;
	padding: 20px;
}

/* App.css (Layout and Auth) */
.app {
	max-width: 1400px;
	margin: 0 auto;
}
.loading-screen, .auth-screen {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	color: white;
}
.loading-screen h2 {
	color: white;
	margin-top: 20px;
}
.loading-spinner {
	font-size: 80px;
	animation: spin 2s linear infinite;
}
@keyframes spin {
	from {
		transform: rotate(0deg);
	} to {
		transform: rotate(360deg);
	}
}
.auth-container {
	text-align: center;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	padding: 60px 40px;
	border-radius: 30px;
	border: 2px solid rgba(255, 255, 255, 0.2);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	max-width: 500px;
}
.auth-title {
	font-size: 48px;
	background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}
.auth-subtitle {
	font-size: 20px;
	color: rgba(255, 255, 255, 0.8);
	margin-bottom: 30px;
}
.auth-button {
	padding: 15px 30px;
	font-size: 20px;
	font-weight: bold;
	border-radius: 15px;
	border: none;
	cursor: pointer;
	background: #667eea;
	color: white;
	transition: background 0.3s;
}
.auth-button:hover {
	background: #5a67d8;
}
.auth-info {
	margin-top: 30px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.6);
}

.user-profile {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 15px;
	margin-bottom: 20px;
	color: white;
	font-size: 14px;
}
.logout-button {
	background: #e53e3e;
	color: white;
	border: none;
	padding: 8px 15px;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.3s;
}
.logout-button:hover {
	background: #c53030;
}

.token-balances-bar {
	background: rgba(255, 255, 255, 0.95);
	padding: 15px 30px;
	border-radius: 15px;
	display: flex;
	justify-content: space-around;
	margin-bottom: 20px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	font-weight: bold;
	color: #1a1a2e;
}
.token-balances-bar span {
	display: flex;
	align-items: center;
	gap: 8px;
}

.tabs-container {
	display: flex;
	justify-content: center;
	margin-bottom: 30px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 15px;
	padding: 10px;
}
.tab-button {
	background: none;
	border: none;
	padding: 10px 20px;
	margin: 0 5px;
	cursor: pointer;
	font-size: 16px;
	font-weight: bold;
	color: rgba(255, 255, 255, 0.7);
	border-radius: 10px;
	transition: all 0.3s;
}
.tab-button.active {
	background: #667eea;
	color: white;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.content-container {
	padding: 0 20px;
}
.city-view h2, .businesses-section h2, .upgrades-section h2, .fee-stats-card h3 {
	color: #667eea;
	font-size: 28px;
	margin-bottom: 20px;
	text-align: center;
}
.city-view p {
	color: rgba(255, 255, 255, 0.8);
	text-align: center;
	margin-bottom: 30px;
}

.businesses-list, .upgrades-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
}

.loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	color: white;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 30px;
	font-weight: bold;
	z-index: 1000;
}
.notification-modal {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	padding: 15px 30px;
	border-radius: 15px;
	font-weight: bold;
	z-index: 1001;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
	color: white;
}
.notification-modal.success {
	background: #48bb78;
}
.notification-modal.error {
	background: #e53e3e;
}

/* Header.css */
.header {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 20px;
	padding: 30px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	margin-bottom: 20px;
}
.title {
	text-align: center;
	font-size: 42px;
	margin-bottom: 20px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	-webkit-background-clip: text;
	/*
	-webkit-text-fill-color: transparent;
	*/
	background-clip: text;
}
.stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 15px;
}
.stat-card {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	padding: 20px;
	border-radius: 15px;
	text-align: center;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	cursor: pointer;
}
.stat-label {
	color: rgba(255, 255, 255, 0.8);
	font-size: 14px;
	margin-bottom: 5px;
}
.stat-value {
	color: white;
	font-size: 24px;
	font-weight: bold;
}

/* CityScene.css (Simplified) */
.city-scene-container {
	position: relative;
	width: 100%;
	height: 300px;
	margin: 20px 0;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
	background: linear-gradient(to top, #3a506b, #1c2541);
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: center;
	gap: 5px;
	padding-bottom: 10px;}
.building {
	background-color: #f5f7fa;
	border-top-left-radius: 3px;
	border-top-right-radius: 3px;
	margin: 0 1px;
	transition: all 0.5s ease;
	animation: appear 0.5s ease-out;
}
@keyframes appear {
	from {
		opacity: 0;
		transform: scaleY(0);
	} to {
		opacity: 1;
		transform: scaleY(1);
	}
}
.city-label {
	position: absolute;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(26, 26, 46, 0.9);
	backdrop-filter: blur(10px);
	padding: 10px 25px;
	border-radius: 25px;
	font-size: 20px;
	font-weight: bold;
	color: #ffd700;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	pointer-events: none;
}

/* FeeStats.css */
.fee-stats-container {
	margin: 20px 0;
}
.fee-stats-card {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 20px;
	padding: 25px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	margin-bottom: 20px;
}
.fee-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 15px;
	margin-bottom: 20px;
}
.fee-stat {
	background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
	padding: 20px;
	border-radius: 15px;
	display: flex;
	align-items: center;
	gap: 15px;
}
.fee-stat-icon {
	font-size: 30px;
	color: #764ba2;
}
.fee-stat-label {
	font-size: 14px;
	color: #666;
}
.fee-stat-value {
	font-size: 20px;
	font-weight: bold;
	color: #333;
}
.fee-info {
	padding: 15px;
	background: #f0f4ff;
	border-radius: 10px;
	color: #4a5568;
	font-size: 14px;
}

/* Leaderboard.css */
.leaderboard-container {
	max-width: 900px;
	margin: 0 auto;
}
.leaderboard-title {
	font-size: 48px;
	background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 10px;
	text-align: center;
}
.leaderboard-list {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 20px;
	padding: 20px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.leaderboard-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px;
	border-bottom: 1px solid #e2e8f0;
}
.player-info {
	display: flex;
	align-items: center;
	gap: 20px;
}
.player-rank {
	font-size: 24px;
	font-weight: bold;
	color: #667eea;
	min-width: 40px;
	text-align: center;
}
.player-name {
	font-size: 16px;
	font-weight: bold;
	color: #333;
}
.player-stats {
	display: flex;
	gap: 20px;
	font-size: 14px;
	color: #666;
}
.your-rank-card {
	background: rgba(102, 126, 234, 0.2);
	border-radius: 20px;
	padding: 30px;
	margin-top: 30px;
	text-align: center;
	color: white;
}
.your-rank-card h3 {
	font-size: 24px;
	margin-bottom: 20px;
	color: #ffd700;
}
.your-stats {
	display: flex;
	justify-content: space-around;
}
.your-stat-label {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
}
.your-stat-value {
	font-size: 24px;
	font-weight: bold;
}











/* --- BusinessCard.css Styles --- */
.businesses-section h2, .upgrades-section h2 {
    text-align: center;
    color: #667eea;
    font-size: 28px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}
.business-card, .upgrade-card {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 15px;
	background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
	border-radius: 15px;
	transition: all 0.3s ease;
	border: 2px solid transparent;
	margin-bottom: 10px;
}
.business-card:hover, .upgrade-card:hover {
	transform: translateX(5px);
	border-color: #667eea;
}
.business-card.disabled, .upgrade-card.disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
.business-icon, .upgrade-icon {
	font-size: 48px;
	min-width: 60px;
	text-align: center;
}
.business-info, .upgrade-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.business-name, .upgrade-name {
	font-size: 18px;
	font-weight: bold;
	color: #333;
}
.business-stats, .upgrade-stats {
	display: flex;
	gap: 15px;
	font-size: 13px;
	color: #555;
	margin-top: 5px;
}
.business-income, .upgrade-income {
	color: #27ae60;
	font-weight: bold;
}
.business-owned, .upgrade-owned {
	color: #667eea;
	font-weight: bold;
}
.buy-button {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 10px 15px;
	background: #667eea;
	color: white;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.3s ease;
	width: 100px;
}
.buy-button:hover:not(:disabled) {
	background: #5a66d0;
}
.buy-button:disabled {
	background: #ccc;
	cursor: not-allowed;
}
.buy-cost {
	font-size: 18px;
	font-weight: bold;
	margin-bottom: 2px;
}
.buy-text {
	font-size: 12px;
}