body { 
	font-family: 'Inter', sans-serif; 
	background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
	min-height: 100vh;
}
.glass-card {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}
.view { display: none; }
.view.active { display: block; animation: fadeIn 0.3s ease-in; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.chart-container { position: relative; width: 100%; max-width: 800px; margin: auto; height: 320px; }
.auth-form { max-width: 480px; margin: 5rem auto; }
.stat-card { transition: all 0.3s ease; }
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.promo-item { transition: all 0.2s ease; }
.promo-item:hover { background-color: #f9fafb; }
.loading-spinner {
	border: 3px solid rgba(255,255,255,0.3);
	border-top: 3px solid white;
	border-radius: 50%;
	width: 24px;
	height: 24px;
	animation: spin 1s linear infinite;
	display: inline-block;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- Help Icon and Balloon Styles --- */
.help-icon {
    width: 20px;
    height: 20px;
    background-color: #cbd5e1; /* cool-gray-300 */
    color: #475569; /* cool-gray-600 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none; /* Prevent text selection */
    flex-shrink: 0; /* Prevent shrinking in flex layouts */
}
.help-icon:hover {
    background-color: #94a3b8; /* cool-gray-400 */
    color: #1e293b; /* cool-gray-800 */
}
.help-balloon {
    display: none; /* Hidden by default */
    position: relative;
    background-color: #1e293b; /* cool-gray-800 */
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
/* Triangle/caret for the balloon */
.help-balloon::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 20px; /* Position the triangle */
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 6px solid #1e293b; /* cool-gray-800 */
}
/* Active state, toggled by JS */
.help-balloon.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* --- Added General Purpose Modal Styles --- */
#modal-container {
	/* Uses Tailwind classes in HTML: fixed inset-0 bg-black bg-opacity-60 hidden items-center justify-center z-50 p-4 backdrop-blur-sm */
    transition: opacity 0.2s ease-in-out;
}
#modal-content {
    /* Uses Tailwind classes in HTML: relative glass-card p-8 rounded-2xl shadow-2xl w-full max-w-md mx-auto */
    opacity: 0;
    transform: scale(0.95);
	transition: all 0.2s ease-in-out;
}
#modal-container.flex {
    opacity: 1;
}
#modal-container.flex #modal-content {
    opacity: 1;
    transform: scale(1);
}