:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-color: #2563eb;
    --accent: #f59e0b;
    --bg-body: #f1f5f9;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border: #e2e8f0;
    --success: #10b981;
    --success-bg: #dcfce7;
    --danger: #ef4444;
    --warning: #f59e0b;
    --warning-bg: #fffbeb;
    --warning-border: #fcd34d;
    --warning-text: #92400e;
    --info-bg: #eff6ff;
    --info-border: #bfdbfe;
    --info-text: #1e40af;
    --premium-gold: #d97706;
    --premium-bg: #fffbeb;
    --bonus-purple: #8b5cf6;
    --bonus-bg: #f5f3ff;
    --bonus-text: #5b21b6;
    --max-width: 1200px;
    --secondary-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
    --white: #ffffff;
    --gray-100: #f9fafb;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --border-radius: 8px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

#avision-dashboard-root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-color: #2563eb;
    --accent: #f59e0b;
    --bg-body: #f1f5f9;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border: #e2e8f0;
    --success: #10b981;
    --success-bg: #dcfce7;
    --danger: #ef4444;
    --warning: #f59e0b;
    --warning-bg: #fffbeb;
    --warning-border: #fcd34d;
    --warning-text: #92400e;
    --info-bg: #eff6ff;
    --info-border: #bfdbfe;
    --info-text: #1e40af;
    --premium-gold: #d97706;
    --premium-bg: #fffbeb;
    --bonus-purple: #8b5cf6;
    --bonus-bg: #f5f3ff;
    --bonus-text: #5b21b6;
    --max-width: 1200px;
    --secondary-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
    --white: #ffffff;
    --gray-100: #f9fafb;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --border-radius: 8px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: var(--bg-body);
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    font-size: 16px;
    box-sizing: border-box;
    overflow-x: hidden;
}

#avision-dashboard-root *,
#avision-dashboard-root *::before,
#avision-dashboard-root *::after {
    box-sizing: border-box;
}

#avision-dashboard-root .container {
    max-width: var(--max-width);
    margin: 0 auto 60px auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

#avision-dashboard-root .spotlight-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 99999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

#avision-dashboard-root .spotlight-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

@keyframes avi-shake {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-10deg); }
    100% { transform: rotate(0deg); }
}

#avision-dashboard-root .pulse-button {
    animation: pulse-blue 2s infinite;
    border-color: var(--primary) !important;
    position: relative;
    z-index: 10;
}

#avision-dashboard-root .avi-shaking {
    animation: avi-shake 0.5s ease-in-out;
    animation-iteration-count: 3;
}

#avision-dashboard-root a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

#avision-dashboard-root a:hover {
    color: var(--primary-dark);
}

#avision-dashboard-root .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

#avision-dashboard-root .btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

#avision-dashboard-root .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

#avision-dashboard-root .btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
}

#avision-dashboard-root .btn-secondary:hover {
    background: #059669;
}

#avision-dashboard-root .btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

#avision-dashboard-root .btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

#avision-dashboard-root .btn-premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: var(--white);
}

#avision-dashboard-root .btn-premium:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
}

#avision-dashboard-root header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

#avision-dashboard-root .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

#avision-dashboard-root .logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

#avision-dashboard-root .logo span {
    color: var(--secondary-color);
}

#avision-dashboard-root nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

#avision-dashboard-root nav a {
    color: var(--gray-700);
    font-weight: 500;
}

#avision-dashboard-root nav a:hover {
    color: var(--primary-color);
}

#avision-dashboard-root .header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

#avision-dashboard-root .language-flags {
    display: flex;
    gap: 8px;
}

#avision-dashboard-root .flag-btn {
    background: none;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    padding: 2px;
    font-size: 20px;
    transition: var(--transition);
}

#avision-dashboard-root .flag-btn:hover,
#avision-dashboard-root .flag-btn.active {
    border-color: var(--primary-color);
}

#avision-dashboard-root .notification-bell {
    position: relative;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-600);
}

#avision-dashboard-root .notification-bell .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: var(--white);
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#avision-dashboard-root .notification-bell.subscribed::after {
    content: '✓';
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: var(--secondary-color);
    color: var(--white);
    font-size: 10px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#avision-dashboard-root .mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}

#avision-dashboard-root .hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 1.5rem 0;
    text-align: center;
}

#avision-dashboard-root .hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

#avision-dashboard-root .hero p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

#avision-dashboard-root .audit-form {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 0 auto;
}

#avision-dashboard-root .audit-form h3 {
    color: var(--gray-800);
    margin-bottom: 24px;
    font-size: 24px;
}

#avision-dashboard-root .form-group {
    margin-bottom: 20px;
}

#avision-dashboard-root .form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--gray-700);
    font-weight: 500;
}

#avision-dashboard-root .form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
}

#avision-dashboard-root .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#avision-dashboard-root .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

#avision-dashboard-root .audit-form .btn {
    width: 100%;
    padding: 16px;
    font-size: 18px;
}

#avision-dashboard-root .email-widget {
    background: var(--white);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 400px;
    margin: 30px auto 0;
}

#avision-dashboard-root .email-widget.connected {
    border: 2px solid var(--secondary-color);
}

#avision-dashboard-root .email-widget input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-size: 14px;
}

#avision-dashboard-root .email-widget .status {
    color: var(--secondary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

#avision-dashboard-root footer {
    background: var(--gray-800);
    color: var(--gray-300);
    padding: 1.5rem 0 1rem;
    margin-top: 60px;
}

#avision-dashboard-root .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

#avision-dashboard-root .footer-links {
    display: flex;
    gap: 30px;
}

#avision-dashboard-root .footer-links a {
    color: var(--gray-300);
}

#avision-dashboard-root .footer-links a:hover {
    color: var(--white);
}

#avision-dashboard-root .loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

#avision-dashboard-root .alert-box {
    padding: 16px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

#avision-dashboard-root .alert-box.warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
}

#avision-dashboard-root .alert-box.info {
    background: #dbeafe;
    border: 1px solid #3b82f6;
    color: #1e40af;
}

#avision-dashboard-root .alert-box.success {
    background: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
}

#avision-dashboard-root .alert-box .icon {
    font-size: 20px;
}

#avision-dashboard-root .badge-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

#avision-dashboard-root .badge {
    background: var(--white);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    box-shadow: var(--shadow);
}

#avision-dashboard-root .badge.premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: var(--white);
}
