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;
}

.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;
}

.help-icon {
    width: 20px;
    height: 20px;
    background-color: #cbd5e1;
    color: #475569;
    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;
    flex-shrink: 0;
}

.help-icon:hover {
    background-color: #94a3b8;
    color: #1e293b;
}

.help-balloon {
    display: none;
    position: relative;
    background-color: #1e293b;
    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;
}

.help-balloon::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 6px solid #1e293b;
}

.help-balloon.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

#modal-container {
    transition: opacity 0.2s ease-in-out;
}

#modal-content {
    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);
}

/* --- Universal Notification Modal --- */
.notification-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 1s ease;
}

.notification-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
    background-color: rgba(0, 0, 0, 0.4);
}

.notification-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    width: 100%;
    max-width: 440px;
    text-align: center;
    color: #1f2937;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.notification-overlay:not(.hidden) .notification-content {
    transform: scale(1);
    opacity: 1;
}

.notification-overlay.fading-out {
    opacity: 0;
    background-color: rgba(0, 0, 0, 0);
}

.notification-overlay.fading-out .notification-content {
    transform: scale(0.95);
    opacity: 0;
}

.notification-text {
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0;
    margin-bottom: 1.5rem;
    color: #374151;
    word-wrap: break-word;
}

.notification-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.notification-btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-btn-primary {
    background-image: linear-gradient(to right, #667eea, #764ba2);
    color: white;
}

.notification-btn-primary:hover {
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.4);
    transform: translateY(-2px);
}

.notification-btn-secondary {
    background-color: #e5e7eb;
    color: #374151;
}

.notification-btn-secondary:hover {
    background-color: #d1d5db;
}

.sortable-header:hover {
    color: #0891b2; /* cyan-600 override */
}