/* ========================================
   SITEAUDIT - ФИОЛЕТОВО-ТЕМНАЯ ТЕМА
   ======================================== */

/* ========================================
   1. БАЗОВЫЕ СТИЛИ / RESET
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========================================
   2. ТИПОГРАФИКА И ШРИФТЫ
   ======================================== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #0B0724 0%, #0f0829 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #FFFFFF;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #FFFFFF;
}

/* ========================================
   3. HEADER / НАВИГАЦИЯ
   ======================================== */
.header {
    background: rgba(139, 92, 246, 0.1);
    backdrop-filter: blu(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    position: fixed;
    top: 12px;
    left: 16px;
    right: 16px;
    z-index: 1000;
    border-radius: 24px;
}

.header-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    transition: all 0.3s;
}

.logo:hover {
    opacity: 0.9;
    filter: brightness(1.1);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #C4B5FD;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-link:hover {
    color: #8B5CF6;
}

/* ========================================
   4. КНОПКИ / BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid #2E2A5A;
    color: #C4B5FD;
}

.btn-outline:hover {
    border-color: #8B5CF6;
    color: #8B5CF6;
    background: rgba(139, 92, 246, 0.1);
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
}

/* ========================================
   5. ОСНОВНОЙ КОНТЕНТ / MAIN
   ======================================== */
.main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
    padding-top: 100px; /* Отступ под фиксированную шапку */
    min-height: calc(100vh - 140px);
    background: transparent;
}

/* ========================================
   6. КАРТОЧКИ / CARDS
   ======================================== */
.card {
    background: rgba(25, 22, 58, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 10px 30px -15px rgba(139, 92, 246, 0.2);
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.35),
                0 0 20px -5px rgba(139, 92, 246, 0.2);
    background: rgba(33, 29, 78, 0.7);
    border-color: #8B5CF6;
}

.card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    color: #A1A1AA;
    font-size: 0.9rem;
}

/* ========================================
   7. ФОРМЫ / FORMS
   ======================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #FFFFFF;
    font-size: 0.875rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s;
    font-family: inherit;
    background: rgba(11, 7, 36, 0.6);
    backdrop-filter: blur(10px);
    color: #FFFFFF;
}

.form-input:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.form-input::placeholder {
    color: #6B7280;
}

/* ========================================
   8. АЛЕРТЫ / ALERTS
   ======================================== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(139, 92, 246, 0.1);
    color: #A855F7;
    border: 1px solid #8B5CF6;
}

.alert-error {
    background: rgba(220, 38, 38, 0.1);
    color: #F87171;
    border: 1px solid #DC2626;
}

.alert-info {
    background: rgba(139, 92, 246, 0.1);
    color: #C4B5FD;
    border: 1px solid #2E2A5A;
}

/* ========================================
   9. HERO SECTION
   ======================================== */
.hero {
    text-align: center;
    padding: 4rem 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #C4B5FD;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* ========================================
   10. БЕЙДЖИ / BADGES
   ======================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid;
}

.badge-pending {
    background: rgba(139, 92, 246, 0.15);
    color: #C4B5FD;
    border-color: #2E2A5A;
}

.badge-running {
    background: rgba(139, 92, 246, 0.2);
    color: #8B5CF6;
    border-color: #8B5CF6;
}

.badge-completed {
    background: rgba(168, 85, 247, 0.15);
    color: #A855F7;
    border-color: #A855F7;
}

.badge-failed {
    background: rgba(220, 38, 38, 0.15);
    color: #F87171;
    border-color: #DC2626;
}

.badge-warning {
    background: rgba(234, 179, 8, 0.15);
    color: #FCD34D;
    border-color: #EAB308;
}

.badge-info {
    background: rgba(139, 92, 246, 0.1);
    color: #C4B5FD;
    border-color: #2E2A5A;
}

/* ========================================
   11. ТАБЛИЦЫ / TABLES
   ======================================== */
.table-container {
    overflow-x: auto;
    border-radius: 8px;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    text-align: left;
    padding: 1rem;
    background: rgba(25, 22, 58, 0.6);
    backdrop-filter: blur(10px);
    font-weight: 600;
    color: #FFFFFF;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid rgba(139, 92, 246, 0.2);
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid #2E2A5A;
    color: #A1A1AA;
}

.table tbody tr:hover {
    background: rgba(25, 22, 58, 0.4);
}

/* ========================================
   12. АДМИН-ПАНЕЛЬ / ADMIN STYLES
   ======================================== */
.admin-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 40px;
    color: #FFFFFF;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-title {
    color: #FFFFFF;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.admin-card {
    background: rgba(25, 22, 58, 0.6);
    backdrop-filter: blur(10px);
    padding: 20px;
    margin: 15px 0;
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 10px 30px -15px rgba(139, 92, 246, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-card:hover {
    background: rgba(33, 29, 78, 0.7);
    border-color: #8B5CF6;
    box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.35);
}

.admin-card strong {
    color: #8B5CF6;
}

.admin-btn {
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    transition: all 0.3s;
}

.admin-btn-approve {
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
}

.admin-btn-approve:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.admin-btn-reject {
    background: rgba(220, 38, 38, 0.15);
    color: #F87171;
    border: 1px solid #DC2626;
}

.admin-btn-reject:hover {
    background: rgba(220, 38, 38, 0.25);
    transform: translateY(-2px);
}

.admin-hr {
    border: none;
    border-top: 1px solid #2E2A5A;
    margin: 15px 0;
}

/* ========================================
   13. ДОПОЛНИТЕЛЬНЫЕ СТИЛИ
   ======================================== */

/* Стили для разделителя в админке */
.request hr {
    border: none;
    border-top: 1px solid #2E2A5A;
    margin: 15px 0;
}

/* ========================================
   14. АДАПТИВНОСТЬ / RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .header {
        top: 8px;
        left: 12px;
        right: 12px;
        border-radius: 20px;
    }
    
    .header-content {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .nav {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .main {
        padding: 1rem;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .admin-body {
        margin: 20px;
    }
}

/* ========================================
   14. УТИЛИТЫ / UTILITIES
   ======================================== */
.text-center {
    text-align: center;
}

.text-secondary {
    color: #A1A1AA;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.w-full {
    width: 100%;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   15. HEADER NAV / НОВАЯ НАВИГАЦИЯ
   ======================================== */
.header-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #A78BFA;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.header-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
}

.header-btn-primary {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    border: none;
    color: white;
    padding: 0 20px;
    width: auto;
    font-weight: 600;
}

.header-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.lang-switcher {
    display: flex;
    align-items: center;
    background: rgba(11, 7, 36, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    padding: 2px;
}

.lang-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    color: #6B7280;
}

.lang-btn.active {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: white;
}

/* Админ-иконка слева */
.admin-gear-sidebar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 50%;
    border: 2px solid rgba(139, 92, 246, 0.5);
    color: #8B5CF6;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.admin-gear-sidebar:hover {
    background: rgba(139, 92, 246, 0.4);
    border-color: #8B5CF6;
    transform: translateY(-50%) scale(1.1) rotate(90deg);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.6);
}

/* ========================================
   16. HERO LANDING / ГЛАВНАЯ СТРАНИЦА
   ======================================== */
.hero-landing {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 2rem 2rem; /* Увеличено для шапки */
    position: relative;
    overflow: hidden;
    background: transparent;
}

.hero-landing-content {
    max-width: 900px;
    text-align: center;
    z-index: 10;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #A78BFA;
    margin-bottom: 1.5rem;
}

.hero-badge span {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title-landing {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #E9D5FF 50%, #C4B5FD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title-accent {
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 50%, #C084FC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle-landing {
    font-size: 1.1rem;
    color: #A1A1AA;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* Hero Form */
.hero-form {
    background: rgba(11, 7, 36, 0.4);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    padding: 8px;
    display: flex;
    gap: 8px;
    max-width: 650px;
    margin: 0 auto;
    backdrop-filter: blur(20px);
}

.hero-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0 16px;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.hero-input-icon {
    color: #6B7280;
    margin-right: 12px;
    font-size: 1.1rem;
}

.hero-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 16px 0;
    color: #FFFFFF;
    font-size: 1rem;
    outline: none;
    font-family: inherit;
}

.hero-input::placeholder {
    color: #6B7280;
}

.hero-btn {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 50%, #6D28D9 100%);
    border: none;
    color: white;
    padding: 16px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    text-decoration: none;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
}

.hero-btn span {
    transition: transform 0.3s ease;
}

.hero-btn:hover span {
    transform: translateX(4px);
}

/* Hero Features */
.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #A1A1AA;
    font-size: 0.9rem;
}

.hero-feature-icon {
    color: #8B5CF6;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 16px;
    padding: 12px 16px;
    backdrop-filter: blur(20px);
    font-size: 0.8rem;
    color: #A78BFA;
    z-index: 1;
}

.floating-card-1 {
    top: 25%; /* Увеличено чтобы не заходило под шапку */
    left: 8%;
    animation: float 6s ease-in-out infinite;
}

.floating-card-2 {
    top: 30%; /* Увеличено чтобы не заходило под шапку */
    right: 8%;
    animation: float 8s ease-in-out infinite;
}

.floating-card-3 {
    bottom: 30%;
    left: 10%;
    animation: float 7s ease-in-out infinite;
}

.floating-icon {
    font-size: 1.2rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: transparent;
}

.auth-card {
    background: rgba(25, 22, 58, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #A1A1AA;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* OAuth Buttons */
.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid;
    text-decoration: none;
}

.oauth-btn-google {
    background: #ffffff;
    color: #333;
    border-color: #ddd;
}

.oauth-btn-google:hover {
    background: #f8f9fa;
    border-color: #ccc;
}

.oauth-btn-yandex {
    background: #1c1c1c;
    color: #fff;
    border-color: #333;
}

.oauth-btn-yandex:hover {
    background: #2a2a2a;
}

.auth-divider {
    text-align: center;
    margin: 20px 0;
    color: #6B7280;
    font-size: 0.85rem;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: rgba(139, 92, 246, 0.2);
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.dashboard-title {
    margin: 0;
    font-size: 1.75rem;
}

/* User Menu */
.user-menu {
    display: none;
    width: auto;
    padding: 0 16px;
    gap: 8px;
}

.user-name {
    color: #A78BFA;
    font-weight: 500;
}

/* ========================================
   17. DASHBOARD / ЛИЧНЫЙ КАБИНЕТ
   ======================================== */

/* Отступ для фиксированной шапки */
main,
.main {
    padding-top: 100px !important; /* Увеличено для шапки с top: 12px */
}

@media (max-width: 768px) {
    main,
    .main {
        padding-top: 90px !important;
    }
}

.dashboard-header-section {
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #FFFFFF 0%, #E9D5FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-subtitle {
    color: #A1A1AA;
    font-size: 1rem;
    margin: 0;
}

.btn-dashboard-new {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 20px;
    background: #3B82F6;
    color: white;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-dashboard-new:hover {
    background: #2563EB;
}

.btn-dashboard-new span {
    font-size: 1.1rem;
    font-weight: 400;
}

/* Audit Grid */
.audit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.5rem;
}

/* Audit Card */
.audit-card {
    background: #151528;
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.audit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(139, 92, 246, 0.2);
}

/* Screenshot Area */
.audit-screenshot {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.audit-screenshot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="60" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.5;
}

.audit-screenshot-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.audit-icon {
    font-size: 3rem;
    opacity: 0.8;
}

.audit-favicon,
.audit-favicon-placeholder {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.audit-favicon {
    object-fit: cover;
}

/* Card Content */
.audit-card-content {
    padding: 1.25rem;
}

.audit-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.audit-url {
    font-size: 1rem;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0;
    word-break: break-all;
}

/* Status Badges */
.audit-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
}

.status-completed {
    background: rgba(34, 197, 94, 0.2);
    color: #22C55E;
}

.status-running {
    background: rgba(139, 92, 246, 0.2);
    color: #8B5CF6;
}

.status-queued,
.status-pending {
    background: rgba(234, 179, 8, 0.2);
    color: #EAB308;
}

.status-failed {
    background: rgba(220, 38, 38, 0.2);
    color: #EF4444;
}

/* Stats */
.audit-stats {
    margin-bottom: 0.5rem;
}

.audit-stat {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #9CA3AF;
    font-size: 0.85rem;
}

.audit-stat-icon {
    font-size: 0.9rem;
}

.audit-stat-text {
    color: #9CA3AF;
}

.audit-stat-critical {
    color: #EF4444;
}

/* Date */
.audit-date {
    color: #6B7280;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
}

/* View Button */
.audit-btn-view {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    color: #A78BFA;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.audit-btn-view:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    color: #C4B5FD;
}

.audit-btn-view:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.audit-btn-view span {
    transition: transform 0.3s ease;
}

.audit-btn-view:hover span {
    transform: translateX(4px);
}

/* Empty State */
.audit-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(25, 22, 58, 0.3);
    border-radius: 24px;
    border: 1px dashed rgba(139, 92, 246, 0.3);
}

.audit-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.audit-empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.audit-empty-text {
    color: #A1A1AA;
    margin-bottom: 1.5rem;
}

/* ============================================
   REPORT PAGE — Стили страницы отчёта аудита
   Вынесены из templates/report.html для оптимизации
   ============================================ */

/* ---------------------------------------------------------------------------
   1. PROGRESS INDICATOR — Индикатор загрузки аудита в реальном времени
   Отображает прогресс-бар, список источников и статус выполнения
   --------------------------------------------------------------------------- */
.audit-progress-container {
    background: linear-gradient(135deg, #19163A 0%, #0B0724 100%);
    border: 1px solid #2E2A5A;
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
}
.audit-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.audit-progress-title {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.audit-progress-status {
    color: #8B5CF6;
    font-size: 14px;
    font-weight: 500;
}
/* Полоска прогресса */
.audit-progress-bar-bg {
    height: 12px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
}
.audit-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #8B5CF6 0%, #6D28D9 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
    position: relative;
}
/* Анимированный блик на полоске прогресса */
.audit-progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
/* Phase indicator */
.audit-phase-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 16px;
    padding: 8px 0;
}
.audit-phase-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    z-index: 1;
}
.audit-phase-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.2);
    border: 2px solid rgba(139, 92, 246, 0.3);
    transition: all 0.4s ease;
}
.audit-phase-step.active .audit-phase-dot {
    background: #8B5CF6;
    border-color: #8B5CF6;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
    animation: phasePulse 1.5s infinite;
}
.audit-phase-step.completed .audit-phase-dot {
    background: #22C55E;
    border-color: #22C55E;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}
@keyframes phasePulse {
    0%, 100% { box-shadow: 0 0 6px rgba(139, 92, 246, 0.4); }
    50% { box-shadow: 0 0 16px rgba(139, 92, 246, 0.8); }
}
.audit-phase-label {
    font-size: 10px;
    color: #6B7280;
    white-space: nowrap;
    transition: color 0.3s;
    font-weight: 500;
}
.audit-phase-step.active .audit-phase-label {
    color: #C4B5FD;
}
.audit-phase-step.completed .audit-phase-label {
    color: #4ADE80;
}
.audit-phase-line {
    width: 32px;
    height: 2px;
    background: rgba(139, 92, 246, 0.15);
    margin: 0 2px;
    margin-bottom: 18px;
    transition: background 0.4s;
    border-radius: 1px;
}
.audit-phase-step.completed + .audit-phase-line {
    background: rgba(34, 197, 94, 0.4);
}

/* Список источников аудита */
.audit-progress-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
/* Тег источника (внутренний краулер, техническая проверка и т.д.) */
.audit-source-tag {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #C4B5FD;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}
.audit-source-tag.completed {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.4);
    color: #22C55E;
}
.audit-source-tag.error {
    background: rgba(220, 38, 38, 0.2);
    border-color: rgba(220, 38, 38, 0.4);
    color: #EF4444;
}
.audit-source-tag.running {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.4);
    color: #FBBF24;
}
/* Бейдж «Аудит завершён» */
.audit-complete-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.audit-pulse {
    animation: pulse 1.5s infinite;
}
/* Спиннер загрузки */
.audit-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-top-color: #8B5CF6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---------------------------------------------------------------------------
   2. AI EXECUTIVE SUMMARY — Карточка с AI-анализом от DeepSeek
   Верхняя карточка с кратким резюме и общей оценкой
   --------------------------------------------------------------------------- */
.ai-summary-card {
    background: linear-gradient(135deg, #1E1B4B 0%, #312E81 100%);
    border: 1px solid #4F46E5;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
/* Анимированная полоска сверху карточки */
.ai-summary-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8B5CF6, #6366F1, #8B5CF6);
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
}
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.ai-summary-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.ai-summary-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.ai-summary-title {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
}
.ai-summary-badge {
    background: rgba(139, 92, 246, 0.2);
    color: #A78BFA;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
.ai-summary-text {
    color: #E0E7FF;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
}
/* Блок с общей оценкой */
.ai-assessment {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}
.ai-assessment-label {
    color: #A5B4FC;
    font-size: 13px;
}
.ai-assessment-value {
    font-weight: 600;
    font-size: 15px;
}
.ai-assessment-value.critical { color: #EF4444; }
.ai-assessment-value.needs_attention { color: #F59E0B; }
.ai-assessment-value.good { color: #22C55E; }
.ai-assessment-value.excellent { color: #10B981; }

/* ---------------------------------------------------------------------------
   3. PLAIN-LANGUAGE SUMMARY — Понятная сводка для обычных пользователей
   Объясняет простым языком, что означает оценка сайта
   --------------------------------------------------------------------------- */
.plain-summary {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(16, 185, 129, 0.04) 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 24px;
}
.plain-summary h3 {
    color: #4ADE80;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.plain-summary p {
    color: #BBF7D0;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}
/* Состояние «требует внимания» (жёлтый) */
.plain-summary.warning-state {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(217, 119, 6, 0.04) 100%);
    border-color: rgba(245, 158, 11, 0.2);
}
.plain-summary.warning-state h3 { color: #FBBF24; }
.plain-summary.warning-state p { color: #FDE68A; }
/* Критическое состояние (красный) */
.plain-summary.critical-state {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(220, 38, 38, 0.04) 100%);
    border-color: rgba(239, 68, 68, 0.2);
}
.plain-summary.critical-state h3 { color: #FCA5A5; }
.plain-summary.critical-state p { color: #FECACA; }

/* ---------------------------------------------------------------------------
   4. ISSUES SECTION — Список найденных проблем, сгруппированных по категориям
   --------------------------------------------------------------------------- */
.issues-section {
    margin-bottom: 32px;
}
.issues-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.issues-title {
    color: #FFFFFF;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Счётчик проблем */
.issues-count {
    background: rgba(239, 68, 68, 0.2);
    color: #FCA5A5;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
}

/* ---------------------------------------------------------------------------
   4a. COMPACT FILTER BUTTONS — Компактные кнопки-пилюли для фильтрации
   Одна строка: сначала фильтры по severity, потом разделитель, потом по категориям
   --------------------------------------------------------------------------- */
.issues-filters {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.filter-btn {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #A78BFA;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.filter-btn:hover {
    background: rgba(139, 92, 246, 0.18);
    color: #C4B5FD;
}
.filter-btn.active {
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}
/* Вертикальный разделитель между группами фильтров */
.filter-separator {
    width: 1px;
    background: rgba(139, 92, 246, 0.2);
    margin: 0 4px;
    align-self: stretch;
}

/* ---------------------------------------------------------------------------
   4b. CATEGORY GROUP HEADER — Заголовок группы проблем (Технические, SEO, ...)
   --------------------------------------------------------------------------- */
.category-group-header {
    color: #C4B5FD;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}
.category-group-header:hover {
    color: #DDD6FE;
}
/* Бейдж с количеством проблем в категории */
.category-badge {
    background: rgba(139, 92, 246, 0.18);
    color: #A78BFA;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* ---------------------------------------------------------------------------
   4c. ISSUE CARD — Карточка отдельной проблемы
   Цвет левой границы зависит от severity: critical=красный, warning=жёлтый, info=синий
   --------------------------------------------------------------------------- */
.issue-card {
    background: linear-gradient(135deg, #19163A 0%, #0F0D2A 100%);
    border: 1px solid #2E2A5A;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}
.issue-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.issue-card.critical {
    border-left-color: #EF4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, #0F0D2A 100%);
}
.issue-card.warning {
    border-left-color: #F59E0B;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, #0F0D2A 100%);
}
.issue-card.info {
    border-left-color: #3B82F6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, #0F0D2A 100%);
}
.issue-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
/* Бейдж severity (КРИТИЧЕСКАЯ / ПРЕДУПРЕЖДЕНИЕ / РЕКОМЕНДАЦИЯ) */
.issue-severity-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}
.issue-severity-badge.critical {
    background: rgba(239, 68, 68, 0.2);
    color: #FCA5A5;
}
.issue-severity-badge.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #FCD34D;
}
.issue-severity-badge.info {
    background: rgba(59, 130, 246, 0.2);
    color: #93C5FD;
}
.issue-category {
    color: #A78BFA;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.issue-title {
    color: #FFFFFF;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}
.issue-description {
    color: #A1A1AA;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}
/* Блок с рекомендацией по исправлению */
.issue-recommendation {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 12px;
}
.issue-recommendation-title {
    color: #4ADE80;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.issue-recommendation-text {
    color: #86EFAC;
    font-size: 14px;
    line-height: 1.5;
}
/* Мета-информация: категория, сложность исправления */
.issue-meta {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}
.issue-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #A1A1AA;
    font-size: 13px;
}
.issue-meta-item .icon {
    font-size: 16px;
}
/* Звёздочки сложности исправления */
.issue-effort {
    display: flex;
    gap: 4px;
}
.effort-star {
    color: #FBBF24;
}
.effort-star.empty {
    color: #3F3F46;
}

/* ---------------------------------------------------------------------------
   5. PRIORITY PLAN — План приоритетных действий (немедленно / неделя / месяц)
   --------------------------------------------------------------------------- */
.priority-plan {
    background: linear-gradient(135deg, #19163A 0%, #0B0724 100%);
    border: 1px solid #2E2A5A;
    border-radius: 16px;
    padding: 24px;
    margin-top: 32px;
}
.priority-plan-title {
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.priority-phase {
    margin-bottom: 20px;
}
.priority-phase-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.priority-phase-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.priority-phase-icon.immediate { background: rgba(239, 68, 68, 0.2); }
.priority-phase-icon.week { background: rgba(245, 158, 11, 0.2); }
.priority-phase-icon.month { background: rgba(34, 197, 94, 0.2); }
.priority-phase-title {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
}
.priority-tasks {
    padding-left: 42px;
}
.priority-task {
    color: #C4B5FD;
    font-size: 14px;
    padding: 6px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.priority-task::before {
    content: '→';
    color: #8B5CF6;
}

/* ---------------------------------------------------------------------------
   6. COMPETITIVE ADVANTAGE — Сильные стороны сайта
   --------------------------------------------------------------------------- */
.advantage-card {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, #0F0D2A 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
}
.advantage-title {
    color: #4ADE80;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.advantage-text {
    color: #86EFAC;
    font-size: 14px;
    line-height: 1.6;
}

/* ---------------------------------------------------------------------------
   7. REPORT HEADER — Заголовок отчёта с URL и кнопкой «Поделиться»
   --------------------------------------------------------------------------- */
.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.report-title-group {
    flex: 1;
}
.report-title {
    color: #FFFFFF;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}
.report-url {
    color: #A78BFA;
    font-size: 16px;
}
.btn-share {
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}
.btn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* ---------------------------------------------------------------------------
   8. SCORES & GRADES — Сетка оценок с круговой диаграммой и прогресс-барами
   --------------------------------------------------------------------------- */
/* Двухколоночная сетка: слева оценки, справа сводка */
.report-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}
@media (max-width: 900px) {
    .report-grid { grid-template-columns: 1fr; }
}
.report-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.report-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
/* Секция с оценками по категориям */
.scores-section {
    background: linear-gradient(135deg, #19163A 0%, #0F0D2A 100%);
    border: 1px solid #2E2A5A;
    border-radius: 16px;
    padding: 24px;
}
.scores-title {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}
.scores-grid {
    display: flex;
    gap: 24px;
    align-items: center;
}
.score-main {
    flex-shrink: 0;
}
/* Круг с буквенной оценкой (A/B/C/D/F) */
.score-circle {
    width: 100px; height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}
.score-circle.a { background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%); }
.score-circle.b { background: linear-gradient(135deg, #84CC16 0%, #65A30D 100%); }
.score-circle.c { background: linear-gradient(135deg, #EAB308 0%, #CA8A04 100%); }
.score-circle.d { background: linear-gradient(135deg, #F97316 0%, #EA580C 100%); }
.score-circle.f { background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%); }
.score-letter {
    font-size: 32px;
    font-weight: 700;
    color: white;
}
.score-percent {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}
/* Сетка элементов с оценками (2 колонки) */
.score-items {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
/* Один элемент оценки: иконка + название + число + мини-прогресс-бар */
.score-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 14px;
    background: rgba(139, 92, 246, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(139, 92, 246, 0.12);
    transition: all 0.2s;
}
.score-item:hover {
    background: rgba(139, 92, 246, 0.14);
    border-color: rgba(139, 92, 246, 0.25);
}
.score-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.score-label {
    color: #A1A1AA;
    font-size: 13px;
}
.score-value {
    font-weight: 600;
    font-size: 15px;
}
.score-value.good { color: #22C55E; }
.score-value.medium { color: #F59E0B; }
.score-value.bad { color: #EF4444; }
/* Мини-прогресс-бар под числом */
.score-mini-bar {
    height: 4px;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 2px;
    overflow: hidden;
}
.score-mini-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.8s ease;
}
.score-mini-fill.good { background: linear-gradient(90deg, #22C55E, #16A34A); }
.score-mini-fill.medium { background: linear-gradient(90deg, #F59E0B, #D97706); }
.score-mini-fill.bad { background: linear-gradient(90deg, #EF4444, #DC2626); }

/* ---------------------------------------------------------------------------
   9. SUMMARY CARD (правая колонка) — Кольцевая диаграмма с общей оценкой
   --------------------------------------------------------------------------- */
.summary-card {
    background: linear-gradient(135deg, #19163A 0%, #0F0D2A 100%);
    border: 1px solid #2E2A5A;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}
/* SVG-кольцо прогресса */
.score-ring {
    width: 140px; height: 140px;
    margin: 0 auto 16px;
    position: relative;
}
.score-ring svg {
    transform: rotate(-90deg);
}
.score-ring .ring-bg {
    fill: none;
    stroke: rgba(139, 92, 246, 0.2);
    stroke-width: 8;
}
.score-ring .ring-progress {
    fill: none;
    stroke: #8B5CF6;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}
.ring-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.ring-letter {
    font-size: 36px;
    font-weight: 700;
    color: #FFFFFF;
    display: block;
}
.ring-percent {
    font-size: 16px;
    color: #A78BFA;
}
.summary-title {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}
.summary-status {
    color: #A1A1AA;
    font-size: 14px;
}

/* ---------------------------------------------------------------------------
   10. ACTION CARD — Карточка с призывом к действию «Готово к исправлению»
   --------------------------------------------------------------------------- */
.action-card {
    background: linear-gradient(135deg, #19163A 0%, #0F0D2A 100%);
    border: 1px solid #2E2A5A;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}
.action-icon {
    font-size: 40px;
    margin-bottom: 12px;
}
.action-card h3 {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}
.action-card p {
    color: #A1A1AA;
    font-size: 14px;
    margin-bottom: 16px;
}
.btn-action {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}
.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

/* ---------------------------------------------------------------------------
   11. TABS — Вкладки «Обзор» / «Технические детали»
   --------------------------------------------------------------------------- */
.report-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.tab-btn {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #C4B5FD;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.tab-btn:hover { background: rgba(139, 92, 246, 0.2); }
.tab-btn.active {
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    color: white;
    border-color: transparent;
}

/* ---------------------------------------------------------------------------
   12. AI CARDS — Карточки ИИ-аудитов (маркетинг, UX, SEO)
   --------------------------------------------------------------------------- */
.ai-audits-section {
    background: linear-gradient(135deg, #19163A 0%, #0F0D2A 100%);
    border: 1px solid #2E2A5A;
    border-radius: 16px;
    padding: 24px;
}
.section-subtitle {
    color: #A1A1AA;
    font-size: 14px;
    margin-bottom: 16px;
}
.ai-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 768px) {
    .ai-cards { grid-template-columns: 1fr; }
}
.ai-card {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    position: relative;
}
.ai-card.locked { opacity: 0.6; }
.ai-icon {
    font-size: 32px;
    margin-bottom: 12px;
}
.ai-card h4 {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}
.ai-card p {
    color: #A1A1AA;
    font-size: 12px;
}
.lock-icon {
    position: absolute;
    top: 10px; right: 10px;
    font-size: 16px;
}

/* ---------------------------------------------------------------------------
   13. SCREENSHOTS — Скриншоты сайта (десктоп / мобильная / планшет)
   --------------------------------------------------------------------------- */
.report-section {
    margin-bottom: 32px;
}
.section-title {
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-icon { font-size: 24px; }
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: start;
}
@media (max-width: 768px) {
    .screenshots-grid { grid-template-columns: 1fr; }
}
.screenshot-card {
    background: linear-gradient(135deg, #19163A 0%, #0F0D2A 100%);
    border: 1px solid #2E2A5A;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.screenshot-card:hover {
    border-color: #8B5CF6;
    box-shadow: 0 8px 40px rgba(139, 92, 246, 0.25);
    transform: translateY(-2px);
}
.screenshot-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.08);
    color: #A78BFA;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.screenshot-placeholder.desktop {
    height: 220px;
    aspect-ratio: 16/10;
    max-height: 220px;
}
.screenshot-placeholder.mobile {
    height: 360px;
    aspect-ratio: 390/844;
    max-height: 360px;
}
.screenshot-label {
    padding: 14px 16px;
    text-align: center;
    color: #C4B5FD;
    font-size: 13px;
    font-weight: 500;
    background: rgba(139, 92, 246, 0.05);
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    letter-spacing: 0.01em;
}
/* Само изображение скриншота */
.screenshot-img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    border-radius: 0;
}
.screenshot-img:hover {
    transform: scale(1.015);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.35);
    filter: brightness(1.05);
}

/* ---------------------------------------------------------------------------
   14. IMAGE MODAL — Модальное окно для просмотра скриншотов на весь экран
   --------------------------------------------------------------------------- */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}
.image-modal.active { display: flex; }
.image-modal-content {
    max-width: 95%;
    max-height: 95%;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.5);
}
.image-modal-close {
    position: absolute;
    top: 20px; right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}
.image-modal-close:hover { color: #8B5CF6; }

/* ========================================
   15. REPORT DOWNLOAD BUTTONS
   ======================================== */
.report-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.report-download-btns {
    display: flex;
    gap: 8px;
    align-items: center;
}
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}
.btn-download:hover {
    transform: translateY(-2px);
}
.btn-download-pptx {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.15) 0%, rgba(180, 83, 9, 0.1) 100%);
    border-color: rgba(217, 119, 6, 0.3);
    color: #FCD34D;
}
.btn-download-pptx:hover {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.25) 0%, rgba(180, 83, 9, 0.2) 100%);
    border-color: rgba(217, 119, 6, 0.5);
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.3);
    color: #FDE68A;
}
.btn-download-docx {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(29, 78, 216, 0.1) 100%);
    border-color: rgba(37, 99, 235, 0.3);
    color: #93C5FD;
}
.btn-download-docx:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.25) 0%, rgba(29, 78, 216, 0.2) 100%);
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
    color: #BFDBFE;
}

/* ========================================
   16. DASHBOARD CARD ACTIONS & DOWNLOADS
   ======================================== */
.audit-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}
.audit-download-btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.audit-btn-dl {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid #2E2A5A;
    background: rgba(139, 92, 246, 0.08);
    color: #C4B5FD;
    white-space: nowrap;
}
.audit-btn-dl:hover {
    background: rgba(139, 92, 246, 0.18);
    border-color: #8B5CF6;
    color: #DDD6FE;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

/* ========================================
   17. DASHBOARD HEADER SECTION
   ======================================== */
.dashboard-header-section {
    max-width: 1280px;
    margin: 100px auto 40px;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.dashboard-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dashboard-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFFFFF 0%, #C4B5FD 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.dashboard-subtitle {
    color: #A1A1AA;
    font-size: 0.95rem;
}
.dashboard-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}
.btn-dashboard-new {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    color: white;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    border: none;
    cursor: pointer;
}
.btn-dashboard-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.6);
    filter: brightness(1.1);
}
.btn-dashboard-new span {
    font-size: 20px;
    line-height: 1;
}

/* ========================================
   18. AUDIT GRID & CARDS
   ======================================== */
.audit-grid {
    max-width: 1280px;
    margin: 0 auto 60px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}
.audit-card {
    background: linear-gradient(135deg, #19163A 0%, #0F0D2A 100%);
    border: 1px solid #2E2A5A;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}
.audit-card:hover {
    border-color: #8B5CF6;
    box-shadow: 0 8px 40px rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
}
.audit-screenshot {
    position: relative;
    height: 160px;
    background: rgba(139, 92, 246, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.audit-screenshot-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.audit-icon {
    font-size: 48px;
    opacity: 0.4;
}
.audit-favicon {
    position: absolute;
    bottom: 12px;
    left: 12px;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    background: #0B0724;
}
.audit-favicon-placeholder {
    position: absolute;
    bottom: 12px;
    left: 12px;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
}
.audit-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}
.audit-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.audit-url {
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
    word-break: break-all;
    line-height: 1.3;
}
.audit-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}
.status-completed {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.status-running {
    background: rgba(139, 92, 246, 0.15);
    color: #A78BFA;
    border: 1px solid rgba(139, 92, 246, 0.3);
    animation: pulse 2s infinite;
}
.status-queued {
    background: rgba(245, 158, 11, 0.15);
    color: #FBBF24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.status-failed {
    background: rgba(220, 38, 38, 0.15);
    color: #F87171;
    border: 1px solid rgba(220, 38, 38, 0.3);
}
.status-pending {
    background: rgba(161, 161, 170, 0.15);
    color: #A1A1AA;
    border: 1px solid rgba(161, 161, 170, 0.3);
}
.audit-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.audit-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #C4B5FD;
}
.audit-stat-icon {
    font-size: 14px;
}
.audit-stat-text {
    color: #DDD6FE;
}
.audit-stat-critical {
    color: #FCA5A5;
    font-weight: 600;
}
.audit-date {
    font-size: 12px;
    color: #71717A;
}
.audit-btn-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    color: white;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    width: 100%;
    text-align: center;
}
.audit-btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
    filter: brightness(1.1);
}
.audit-btn-view:disabled {
    background: rgba(139, 92, 246, 0.2);
    color: #71717A;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
.audit-btn-view:disabled:hover {
    filter: none;
}

/* ========================================
   19. DASHBOARD EMPTY STATE
   ======================================== */
.audit-empty {
    max-width: 500px;
    margin: 80px auto;
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #19163A 0%, #0F0D2A 100%);
    border: 1px solid #2E2A5A;
    border-radius: 24px;
}
.audit-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.6;
}
.audit-empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 8px;
}
.audit-empty-text {
    color: #A1A1AA;
    font-size: 0.95rem;
    margin-bottom: 28px;
}

/* ========================================
   20. RESPONSIVE DOWNLOAD BUTTONS
   ======================================== */
@media (max-width: 640px) {
    .report-header-actions {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    .report-download-btns {
        flex-wrap: wrap;
        width: 100%;
    }
    .btn-download {
        flex: 1;
        justify-content: center;
        min-width: 80px;
        padding: 8px 12px;
        font-size: 12px;
    }
    .audit-download-btns {
        justify-content: center;
    }
    .audit-btn-dl {
        flex: 1;
        justify-content: center;
        min-width: 70px;
    }
    .dashboard-header-section {
        flex-direction: column;
        align-items: flex-start;
    }
    .audit-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   21. MINI-GAMES — Игры во время аудита
   ======================================== */
.mini-games-container {
    background: linear-gradient(145deg, #0F0B2E 0%, #0B0724 100%);
    border: 1px solid #2E2A5A;
    border-radius: 16px;
    padding: 16px 20px;
    margin-top: 16px;
    box-shadow: 0 4px 24px rgba(139, 92, 246, 0.1);
    animation: fadeSlideIn 0.4s ease;
}
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.mini-games-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.mini-games-title {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.mini-games-subtitle {
    color: #6B7280;
    font-size: 11px;
    flex: 1;
}
.mini-game-close {
    background: none;
    border: none;
    color: #6B7280;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
    line-height: 1;
}
.mini-game-close:hover {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
}
.mini-games-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 3px;
}
.mini-game-tab {
    background: transparent;
    border: none;
    color: #6B7280;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    justify-content: center;
}
.mini-game-tab-icon {
    font-size: 14px;
}
.mini-game-tab:hover {
    color: #C4B5FD;
    background: rgba(139, 92, 246, 0.1);
}
.mini-game-tab.active {
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}
.mini-game-canvas-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #06041A;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(139, 92, 246, 0.1);
}
.mini-game-canvas {
    display: none;
    border-radius: 8px;
    image-rendering: pixelated;
}
.mini-game-canvas.active {
    display: block;
}
.mini-game-controls {
    text-align: center;
    color: #4B5563;
    font-size: 11px;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}
.mini-game-controls span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.mini-game-hint {
    color: #6B7280;
    font-style: italic;
}
.mini-game-key {
    display: inline-block;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 10px;
    color: #A78BFA;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

/* ========================================
   22. MODALS — Модальные окна (Share, Fix Request)
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.modal-card {
    background: linear-gradient(135deg, #19163A 0%, #0F0D2A 100%);
    border: 1px solid #2E2A5A;
    border-radius: 20px;
    padding: 0;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(139, 92, 246, 0.15);
    animation: modalSlideIn 0.3s ease;
}
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}
.modal-header h3 {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal-close {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #A78BFA;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.modal-close:hover {
    background: rgba(139, 92, 246, 0.2);
    color: #C4B5FD;
}
.modal-body {
    padding: 24px;
}

/* Share Modal */
.share-modal .modal-body {
    padding: 24px;
}
.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.share-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    text-decoration: none;
    color: white;
}
.share-btn-vk {
    background: #0077FF;
    border-color: #0077FF;
}
.share-btn-vk:hover {
    background: #0066DD;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 255, 0.4);
}
.share-btn-telegram {
    background: #0088CC;
    border-color: #0088CC;
}
.share-btn-telegram:hover {
    background: #0077B3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}
.share-btn-copy {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    color: #C4B5FD;
}
.share-btn-copy:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}
.share-btn-icon {
    font-size: 22px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    flex-shrink: 0;
}
.share-btn-text {
    flex: 1;
    text-align: left;
}
.share-btn-text small {
    display: block;
    font-weight: 400;
    font-size: 11px;
    opacity: 0.8;
    margin-top: 2px;
}
.share-copied-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    z-index: 99999;
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.4);
    animation: toastIn 0.3s ease, toastOut 0.3s ease 1.7s forwards;
}
@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateX(-50%) translateY(0); }
    to { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

/* Fix Request Modal */
.fix-modal .modal-body {
    padding: 24px;
}
.fix-modal .form-group {
    margin-bottom: 16px;
}
.fix-modal .form-group label {
    display: block;
    color: #C4B5FD;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
}
.fix-modal .form-group input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(11, 7, 36, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 10px;
    color: #FFFFFF;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
}
.fix-modal .form-group input:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}
.fix-modal .form-group input::placeholder {
    color: #6B7280;
}
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #8B5CF6;
    flex-shrink: 0;
}
.form-checkbox label {
    color: #A1A1AA;
    font-size: 12px;
    line-height: 1.5;
}
.form-checkbox label a {
    color: #A78BFA;
    text-decoration: underline;
}
.btn-submit-fix {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}
.btn-submit-fix:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.5);
}
.btn-submit-fix:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.fix-success {
    text-align: center;
    padding: 20px;
}
.fix-success-icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.fix-success h4 {
    color: #4ADE80;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}
.fix-success p {
    color: #A1A1AA;
    font-size: 14px;
}

/* ========================================
   23. TOOLTIPS — Всплывающие подсказки к проблемам
   ======================================== */
.issue-tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #A78BFA;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-left: 8px;
    font-weight: 700;
}
.issue-tooltip-icon:hover {
    background: rgba(139, 92, 246, 0.35);
    border-color: #8B5CF6;
    color: #C4B5FD;
    transform: scale(1.1);
}
.issue-tooltip-popup {
    position: fixed;
    z-index: 9999;
    background: linear-gradient(135deg, #1E1B4B 0%, #312E81 100%);
    border: 1px solid #4F46E5;
    border-radius: 12px;
    padding: 16px 20px;
    max-width: 360px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(139, 92, 246, 0.2);
    animation: tooltipFadeIn 0.2s ease;
}
@keyframes tooltipFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}
.issue-tooltip-popup::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: #1E1B4B;
    border-left: 1px solid #4F46E5;
    border-top: 1px solid #4F46E5;
    transform: rotate(45deg);
}
.issue-tooltip-popup h4 {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
}
.issue-tooltip-popup p {
    color: #C4B5FD;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   24. TAB CONTENT — Переключение вкладок Обзор / Технические детали
   ======================================== */
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* ========================================
   25. META DETAILS CARD — Карточка с мета-тегами
   ======================================== */
.meta-details-card {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
}
.meta-details-title {
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.meta-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    gap: 12px;
}
.meta-detail-row:last-child {
    border-bottom: none;
}
.meta-detail-label {
    color: #A1A1AA;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}
.meta-detail-value {
    color: #C4B5FD;
    font-size: 13px;
    text-align: right;
    word-break: break-all;
    line-height: 1.5;
}
.meta-detail-value.good {
    color: #4ADE80;
}
.meta-detail-value.warning {
    color: #FBBF24;
}
.meta-detail-value.bad {
    color: #FCA5A5;
}

/* ========================================
   26. TECH CHECKS LIST — Список технических проверок
   ======================================== */
.tech-checks-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tech-checks-title {
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tech-check-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 8px;
    transition: all 0.2s;
}
.tech-check-row:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.2);
}
.tech-check-name {
    color: #C4B5FD;
    font-size: 13px;
    font-weight: 500;
}
.tech-check-status {
    font-size: 13px;
    font-weight: 600;
}
.tech-check-status.pass {
    color: #4ADE80;
}
.tech-check-status.fail {
    color: #FCA5A5;
}
.tech-check-status.warn {
    color: #FBBF24;
}

/* ========================================
   27. THEME TOGGLE — Кнопка переключения темы
   ======================================== */
.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #A78BFA;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}
.theme-toggle-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    transform: rotate(15deg);
}

/* ========================================
   28. PDF DOWNLOAD BUTTON
   ======================================== */
.btn-download-pdf {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(185, 28, 28, 0.1) 100%);
    border-color: rgba(220, 38, 38, 0.3);
    color: #FCA5A5;
}
.btn-download-pdf:hover {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.25) 0%, rgba(185, 28, 28, 0.2) 100%);
    border-color: rgba(220, 38, 38, 0.5);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
    color: #FECACA;
}

/* ========================================
   29. LIGHT THEME — Светлая тема
   ======================================== */
body.light-theme {
    background:
        radial-gradient(ellipse at 20% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(124, 58, 237, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, #F8F7FF 0%, #F0EDFF 100%);
    color: #1a1a2e;
}
body.light-theme .header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.15);
}
body.light-theme .header-btn {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.15);
    color: #6D28D9;
}
body.light-theme .header-btn:hover {
    background: rgba(139, 92, 246, 0.15);
}
body.light-theme .lang-switcher {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(139, 92, 246, 0.15);
}
body.light-theme .lang-btn {
    color: #6B7280;
}
body.light-theme .card,
body.light-theme .admin-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(139, 92, 246, 0.15);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.08);
}
body.light-theme .card:hover,
body.light-theme .admin-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: #8B5CF6;
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.15);
}
body.light-theme .form-input {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(139, 92, 246, 0.2);
    color: #1a1a2e;
}
body.light-theme .form-input::placeholder {
    color: #9CA3AF;
}
body.light-theme .audit-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(139, 92, 246, 0.12);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
body.light-theme .audit-card:hover {
    border-color: #8B5CF6;
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.12);
}
body.light-theme .audit-url {
    color: #1a1a2e;
}
body.light-theme .audit-stat-text {
    color: #4B5563;
}
body.light-theme .audit-date {
    color: #9CA3AF;
}
body.light-theme .audit-empty {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(139, 92, 246, 0.15);
}
body.light-theme .audit-empty-title {
    color: #1a1a2e;
}
body.light-theme .audit-empty-text {
    color: #6B7280;
}
body.light-theme .dashboard-title {
    background: linear-gradient(135deg, #6D28D9 0%, #4C1D95 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
body.light-theme .dashboard-subtitle {
    color: #6B7280;
}
body.light-theme .audit-progress-container {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(139, 92, 246, 0.15);
}
body.light-theme .audit-progress-title {
    color: #1a1a2e;
}
body.light-theme .ai-summary-card {
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    border-color: #C7D2FE;
}
body.light-theme .ai-summary-text {
    color: #3730A3;
}
body.light-theme .ai-summary-title {
    color: #1a1a2e;
}
body.light-theme .ai-assessment {
    background: rgba(255, 255, 255, 0.6);
}
body.light-theme .ai-assessment-label {
    color: #6366F1;
}
body.light-theme .plain-summary {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.06) 0%, rgba(16, 185, 129, 0.03) 100%);
    border-color: rgba(34, 197, 94, 0.15);
}
body.light-theme .plain-summary h3 {
    color: #059669;
}
body.light-theme .plain-summary p {
    color: #047857;
}
body.light-theme .plain-summary.warning-state {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.06) 0%, rgba(217, 119, 6, 0.03) 100%);
    border-color: rgba(245, 158, 11, 0.15);
}
body.light-theme .plain-summary.warning-state h3 { color: #D97706; }
body.light-theme .plain-summary.warning-state p { color: #B45309; }
body.light-theme .plain-summary.critical-state {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.06) 0%, rgba(220, 38, 38, 0.03) 100%);
    border-color: rgba(239, 68, 68, 0.15);
}
body.light-theme .plain-summary.critical-state h3 { color: #DC2626; }
body.light-theme .plain-summary.critical-state p { color: #B91C1C; }
body.light-theme .scores-section,
body.light-theme .summary-card,
body.light-theme .action-card,
body.light-theme .ai-audits-section,
body.light-theme .screenshot-card,
body.light-theme .priority-plan {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(139, 92, 246, 0.12);
}
body.light-theme .scores-title,
body.light-theme .summary-title,
body.light-theme .section-title,
body.light-theme .priority-plan-title,
body.light-theme .issues-title {
    color: #1a1a2e;
}
body.light-theme .score-label {
    color: #6B7280;
}
body.light-theme .score-item {
    background: rgba(139, 92, 246, 0.05);
    border-color: rgba(139, 92, 246, 0.08);
}
body.light-theme .score-item:hover {
    background: rgba(139, 92, 246, 0.1);
}
body.light-theme .issue-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(139, 92, 246, 0.1);
}
body.light-theme .issue-title {
    color: #1a1a2e;
}
body.light-theme .issue-description {
    color: #4B5563;
}
body.light-theme .issue-meta-item {
    color: #6B7280;
}
body.light-theme .issue-recommendation {
    background: rgba(34, 197, 94, 0.06);
    border-color: rgba(34, 197, 94, 0.2);
}
body.light-theme .issue-recommendation-text {
    color: #047857;
}
body.light-theme .category-group-header {
    color: #6D28D9;
    border-bottom-color: rgba(139, 92, 246, 0.1);
}
body.light-theme .category-group-header:hover {
    color: #4C1D95;
}
body.light-theme .filter-btn {
    background: rgba(139, 92, 246, 0.06);
    border-color: rgba(139, 92, 246, 0.15);
    color: #6D28D9;
}
body.light-theme .filter-btn:hover {
    background: rgba(139, 92, 246, 0.12);
}
body.light-theme .tab-btn {
    background: rgba(139, 92, 246, 0.06);
    border-color: rgba(139, 92, 246, 0.15);
    color: #6D28D9;
}
body.light-theme .tab-btn:hover {
    background: rgba(139, 92, 246, 0.12);
}
body.light-theme .ai-card {
    background: rgba(139, 92, 246, 0.05);
    border-color: rgba(139, 92, 246, 0.12);
}
body.light-theme .ai-card h4 {
    color: #1a1a2e;
}
body.light-theme .ai-card p {
    color: #6B7280;
}
body.light-theme .screenshot-placeholder {
    background: rgba(139, 92, 246, 0.04);
    color: #6D28D9;
}
body.light-theme .screenshot-label {
    color: #6D28D9;
    background: rgba(139, 92, 246, 0.03);
    border-top-color: rgba(139, 92, 246, 0.06);
}
body.light-theme .priority-task {
    color: #6D28D9;
}
body.light-theme .advantage-card {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.06) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-color: rgba(34, 197, 94, 0.2);
}
body.light-theme .advantage-text {
    color: #047857;
}
body.light-theme .meta-details-card {
    background: rgba(139, 92, 246, 0.04);
    border-color: rgba(139, 92, 246, 0.1);
}
body.light-theme .meta-detail-label {
    color: #6B7280;
}
body.light-theme .meta-detail-value {
    color: #4C1D95;
}
body.light-theme .tech-check-row {
    background: rgba(139, 92, 246, 0.03);
    border-color: rgba(139, 92, 246, 0.08);
}
body.light-theme .tech-check-row:hover {
    background: rgba(139, 92, 246, 0.08);
}
body.light-theme .tech-check-name {
    color: #6D28D9;
}
body.light-theme .mini-games-container {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(139, 92, 246, 0.12);
}
body.light-theme .mini-games-title {
    color: #1a1a2e;
}
body.light-theme .mini-games-subtitle {
    color: #6B7280;
}
body.light-theme .mini-games-tabs {
    background: rgba(139, 92, 246, 0.04);
}
body.light-theme .mini-game-tab {
    color: #6D28D9;
}
body.light-theme .mini-game-tab:hover {
    background: rgba(139, 92, 246, 0.08);
}
body.light-theme .mini-game-canvas-wrapper {
    background: #F5F3FF;
    border-color: rgba(139, 92, 246, 0.1);
}
body.light-theme .mini-game-canvas {
    background: #F0EDFF;
}
body.light-theme .mini-game-controls {
    color: #9CA3AF;
}
body.light-theme .mini-game-key {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.15);
    color: #6D28D9;
}
body.light-theme .mini-game-close {
    color: #9CA3AF;
}
body.light-theme .mini-game-close:hover {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.08);
}
body.light-theme .mini-game-hint {
    color: #9CA3AF;
}
body.light-theme .audit-phase-label {
    color: #9CA3AF;
}
body.light-theme .audit-phase-step.active .audit-phase-label {
    color: #6D28D9;
}
body.light-theme .audit-phase-step.completed .audit-phase-label {
    color: #059669;
}
body.light-theme .audit-phase-dot {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
}
body.light-theme .audit-phase-line {
    background: rgba(139, 92, 246, 0.1);
}
body.light-theme .audit-phase-step.completed + .audit-phase-line {
    background: rgba(34, 197, 94, 0.3);
}
body.light-theme .modal-card {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(139, 92, 246, 0.15);
}
body.light-theme .modal-header {
    border-bottom-color: rgba(139, 92, 246, 0.1);
}
body.light-theme .modal-header h3 {
    color: #1a1a2e;
}
body.light-theme .fix-modal .form-group label {
    color: #6D28D9;
}
body.light-theme .fix-modal .form-group input {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(139, 92, 246, 0.15);
    color: #1a1a2e;
}
body.light-theme .form-checkbox label {
    color: #6B7280;
}
body.light-theme .issue-tooltip-popup {
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    border-color: #C7D2FE;
}
body.light-theme .issue-tooltip-popup::before {
    background: #EEF2FF;
    border-left-color: #C7D2FE;
    border-top-color: #C7D2FE;
}
body.light-theme .issue-tooltip-popup h4 {
    color: #1a1a2e;
}
body.light-theme .issue-tooltip-popup p {
    color: #3730A3;
}
body.light-theme .report-title {
    color: #1a1a2e;
}
body.light-theme .report-url {
    color: #6D28D9;
}
body.light-theme .ring-letter {
    color: #1a1a2e;
}
body.light-theme .ring-percent {
    color: #6D28D9;
}
body.light-theme .summary-status {
    color: #6B7280;
}
body.light-theme .action-card h3 {
    color: #1a1a2e;
}
body.light-theme .action-card p {
    color: #6B7280;
}
body.light-theme .section-subtitle {
    color: #6B7280;
}
body.light-theme .issues-count {
    background: rgba(239, 68, 68, 0.1);
}
body.light-theme .theme-toggle-btn {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.15);
    color: #6D28D9;
}
body.light-theme .theme-toggle-btn:hover {
    background: rgba(139, 92, 246, 0.15);
}
body.light-theme .audit-source-tag {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.15);
    color: #6D28D9;
}
body.light-theme .audit-progress-bar-bg {
    background: rgba(139, 92, 246, 0.1);
}
body.light-theme .audit-progress-status {
    color: #6D28D9;
}
body.light-theme .table th {
    background: rgba(255, 255, 255, 0.8);
    color: #1a1a2e;
    border-bottom-color: rgba(139, 92, 246, 0.15);
}
body.light-theme .table td {
    color: #4B5563;
    border-bottom-color: rgba(139, 92, 246, 0.08);
}
body.light-theme .table tbody tr:hover {
    background: rgba(139, 92, 246, 0.04);
}
body.light-theme .admin-title {
    color: #1a1a2e;
}
body.light-theme .admin-card strong {
    color: #6D28D9;
}
body.light-theme .admin-hr,
body.light-theme .request hr {
    border-top-color: rgba(139, 92, 246, 0.1);
}
body.light-theme .filter-separator {
    background: rgba(139, 92, 246, 0.1);
}
body.light-theme .issue-meta {
    border-top-color: rgba(139, 92, 246, 0.1);
}
body.light-theme .effort-star.empty {
    color: #D1D5DB;
}
body.light-theme .category-badge {
    background: rgba(139, 92, 246, 0.1);
    color: #6D28D9;
}
body.light-theme .issue-card.critical {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(255, 255, 255, 0.8) 100%);
}
body.light-theme .issue-card.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(255, 255, 255, 0.8) 100%);
}
body.light-theme .issue-card.info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(255, 255, 255, 0.8) 100%);
}
body.light-theme .share-btn-copy {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.15);
    color: #6D28D9;
}
body.light-theme .share-btn-copy:hover {
    background: rgba(139, 92, 246, 0.15);
}
body.light-theme .btn-download-pdf {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.08) 0%, rgba(185, 28, 28, 0.05) 100%);
    border-color: rgba(220, 38, 38, 0.2);
    color: #DC2626;
}
body.light-theme .btn-download-pdf:hover {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(185, 28, 28, 0.1) 100%);
    color: #B91C1C;
}
body.light-theme .btn-download-pptx {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.08) 0%, rgba(180, 83, 9, 0.05) 100%);
    border-color: rgba(217, 119, 6, 0.2);
    color: #D97706;
}
body.light-theme .btn-download-pptx:hover {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.15) 0%, rgba(180, 83, 9, 0.1) 100%);
    color: #B45309;
}
body.light-theme .btn-download-docx {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(29, 78, 216, 0.05) 100%);
    border-color: rgba(37, 99, 235, 0.2);
    color: #2563EB;
}
body.light-theme .btn-download-docx:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(29, 78, 216, 0.1) 100%);
    color: #1D4ED8;
}
body.light-theme .audit-btn-dl {
    background: rgba(139, 92, 246, 0.05);
    border-color: rgba(139, 92, 246, 0.12);
    color: #6D28D9;
}
body.light-theme .audit-btn-dl:hover {
    background: rgba(139, 92, 246, 0.12);
    color: #4C1D95;
}
body.light-theme .audit-btn-view {
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}
body.light-theme .audit-screenshot {
    background: rgba(139, 92, 246, 0.03);
}
body.light-theme .audit-favicon-placeholder {
    border-color: rgba(139, 92, 246, 0.2);
}
body.light-theme .hero-landing {
    background: transparent;
}
body.light-theme .hero-title-landing {
    background: linear-gradient(135deg, #1a1a2e 0%, #4C1D95 50%, #6D28D9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
body.light-theme .hero-subtitle-landing {
    color: #6B7280;
}
body.light-theme .hero-form {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(139, 92, 246, 0.15);
}
body.light-theme .hero-input-wrapper {
    background: rgba(139, 92, 246, 0.03);
    border-color: rgba(139, 92, 246, 0.08);
}
body.light-theme .hero-input {
    color: #1a1a2e;
}
body.light-theme .hero-input::placeholder {
    color: #9CA3AF;
}
body.light-theme .hero-feature {
    color: #6B7280;
}
body.light-theme .floating-card {
    background: rgba(139, 92, 246, 0.06);
    border-color: rgba(139, 92, 246, 0.15);
    color: #6D28D9;
}
body.light-theme .auth-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(139, 92, 246, 0.15);
}
body.light-theme .auth-title {
    color: #1a1a2e;
}
body.light-theme .auth-subtitle {
    color: #6B7280;
}
body.light-theme .auth-divider {
    color: #9CA3AF;
}
body.light-theme .auth-divider::before,
body.light-theme .auth-divider::after {
    background: rgba(139, 92, 246, 0.15);
}
body.light-theme .alert-success {
    background: rgba(139, 92, 246, 0.06);
    color: #6D28D9;
    border-color: rgba(139, 92, 246, 0.2);
}
body.light-theme .alert-error {
    background: rgba(220, 38, 38, 0.06);
    color: #DC2626;
    border-color: rgba(220, 38, 38, 0.2);
}
body.light-theme .alert-info {
    background: rgba(139, 92, 246, 0.06);
    color: #6D28D9;
    border-color: rgba(139, 92, 246, 0.15);
}
body.light-theme .text-secondary {
    color: #6B7280;
}
body.light-theme h1, body.light-theme h2, body.light-theme h3,
body.light-theme h4, body.light-theme h5, body.light-theme h6 {
    color: #1a1a2e;
}
body.light-theme .nav-link {
    color: #6D28D9;
}
body.light-theme .nav-link:hover {
    color: #4C1D95;
}
body.light-theme .btn-outline {
    border-color: rgba(139, 92, 246, 0.2);
    color: #6D28D9;
}
body.light-theme .btn-outline:hover {
    border-color: #8B5CF6;
    color: #4C1D95;
    background: rgba(139, 92, 246, 0.06);
}
body.light-theme .form-label {
    color: #1a1a2e;
}
body.light-theme .badge-pending {
    background: rgba(139, 92, 246, 0.08);
    color: #6D28D9;
    border-color: rgba(139, 92, 246, 0.15);
}
body.light-theme .badge-running {
    background: rgba(139, 92, 246, 0.1);
    color: #6D28D9;
    border-color: rgba(139, 92, 246, 0.2);
}
body.light-theme .badge-completed {
    background: rgba(168, 85, 247, 0.08);
    color: #7C3AED;
    border-color: rgba(168, 85, 247, 0.2);
}
body.light-theme .badge-failed {
    background: rgba(220, 38, 38, 0.08);
    color: #DC2626;
    border-color: rgba(220, 38, 38, 0.2);
}
body.light-theme .badge-warning {
    background: rgba(234, 179, 8, 0.08);
    color: #D97706;
    border-color: rgba(234, 179, 8, 0.2);
}
body.light-theme .badge-info {
    background: rgba(139, 92, 246, 0.06);
    color: #6D28D9;
    border-color: rgba(139, 92, 246, 0.12);
}
body.light-theme .admin-btn-reject {
    background: rgba(220, 38, 38, 0.08);
    color: #DC2626;
    border-color: rgba(220, 38, 38, 0.2);
}
body.light-theme .admin-btn-reject:hover {
    background: rgba(220, 38, 38, 0.15);
}
body.light-theme .admin-gear-sidebar {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    color: #6D28D9;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.15);
}
body.light-theme .admin-gear-sidebar:hover {
    background: rgba(139, 92, 246, 0.2);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}
body.light-theme .hero-badge {
    background: rgba(139, 92, 246, 0.06);
    border-color: rgba(139, 92, 246, 0.15);
    color: #6D28D9;
}
body.light-theme .user-name {
    color: #6D28D9;
}
body.light-theme .header-btn-primary {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: white;
}
body.light-theme .header-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}
body.light-theme .btn-dashboard-new {
    box-shadow: 0 2px 12px rgba(139, 92, 246, 0.25);
}
body.light-theme .btn-dashboard-new:hover {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}
body.light-theme .btn-share {
    box-shadow: 0 2px 12px rgba(139, 92, 246, 0.25);
}
body.light-theme .btn-share:hover {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
}
body.light-theme .btn-action {
    box-shadow: 0 2px 12px rgba(34, 197, 94, 0.2);
}
body.light-theme .btn-action:hover {
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
}
body.light-theme .btn-submit-fix {
    box-shadow: 0 2px 12px rgba(34, 197, 94, 0.2);
}
body.light-theme .btn-submit-fix:hover {
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.35);
}
body.light-theme .issue-tooltip-icon {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
    color: #6D28D9;
}
body.light-theme .issue-tooltip-icon:hover {
    background: rgba(139, 92, 246, 0.2);
    color: #4C1D95;
}
body.light-theme .modal-close {
    background: rgba(139, 92, 246, 0.06);
    border-color: rgba(139, 92, 246, 0.12);
    color: #6D28D9;
}
body.light-theme .modal-close:hover {
    background: rgba(139, 92, 246, 0.12);
}
body.light-theme .meta-details-title,
body.light-theme .tech-checks-title {
    color: #1a1a2e;
}
body.light-theme .fix-success h4 {
    color: #059669;
}
body.light-theme .fix-success p {
    color: #6B7280;
}

/* ========================================
   30. EXPANDED RESPONSIVE MEDIA QUERIES
   ======================================== */

/* Small phones (320px - 480px) */
@media (max-width: 480px) {
    .header {
        top: 4px;
        left: 6px;
        right: 6px;
        border-radius: 16px;
    }
    .header-content {
        padding: 0.5rem 0.75rem;
        flex-wrap: nowrap;
        gap: 0.35rem;
        justify-content: space-between;
    }
    .logo {
        font-size: 1rem;
        gap: 4px;
        flex-shrink: 0;
    }
    .logo-icon {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }
    .header-nav {
        gap: 0.3rem;
        flex-shrink: 0;
        flex-wrap: nowrap;
    }
    .header-btn {
        width: 30px;
        height: 30px;
        border-radius: 7px;
        font-size: 0.7rem;
    }
    .header-btn-primary {
        padding: 0 8px;
        font-size: 0.7rem;
        width: auto;
        white-space: nowrap;
    }
    .lang-switcher {
        border-radius: 6px;
        gap: 0;
    }
    .lang-btn {
        padding: 3px 6px;
        font-size: 0.7rem;
    }
    .user-name {
        display: none;
    }
    .main {
        padding: 0.75rem;
        padding-top: 80px;
    }
    .hero {
        padding: 1.5rem 0.75rem;
    }
    .hero-title {
        font-size: 1.75rem;
    }
    .hero-subtitle {
        font-size: 0.9rem;
    }
    .hero-landing {
        padding: 100px 1rem 1rem;
    }
    .hero-title-landing {
        font-size: 1.75rem;
    }
    .hero-subtitle-landing {
        font-size: 0.9rem;
    }
    .hero-form {
        flex-direction: column;
        padding: 6px;
        gap: 6px;
    }
    .hero-input-wrapper {
        padding: 0 12px;
    }
    .hero-input {
        padding: 12px 0;
        font-size: 0.9rem;
    }
    .hero-btn {
        padding: 12px 20px;
        font-size: 0.85rem;
        justify-content: center;
    }
    .hero-features {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    .hero-feature {
        font-size: 0.8rem;
    }
    .floating-card {
        display: none;
    }
    .card {
        padding: 1rem;
    }
    .admin-body {
        margin: 10px;
    }
    .admin-title {
        font-size: 1.5rem;
    }
    .admin-card {
        padding: 14px;
    }
    .dashboard-header-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 1.5rem;
    }
    .dashboard-title {
        font-size: 1.5rem;
    }
    .dashboard-subtitle {
        font-size: 0.85rem;
    }
    .btn-dashboard-new {
        padding: 10px 18px;
        font-size: 13px;
    }
    .audit-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 12px;
    }
    .audit-card-content {
        padding: 14px;
    }
    .audit-url {
        font-size: 0.9rem;
    }
    .audit-screenshot {
        height: 130px;
    }
    .audit-icon {
        font-size: 36px;
    }
    .audit-empty {
        margin: 40px 12px;
        padding: 40px 20px;
    }
    .audit-empty-icon {
        font-size: 48px;
    }
    .audit-empty-title {
        font-size: 1.25rem;
    }
    .report-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .report-title {
        font-size: 22px;
    }
    .report-url {
        font-size: 14px;
    }
    .report-header-actions {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    .report-download-btns {
        flex-wrap: wrap;
        width: 100%;
    }
    .btn-download {
        flex: 1;
        justify-content: center;
        min-width: 80px;
        padding: 8px 12px;
        font-size: 12px;
    }
    .btn-share {
        padding: 10px 16px;
        font-size: 13px;
    }
    .report-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .scores-grid {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .score-main {
        display: flex;
        justify-content: center;
    }
    .score-circle {
        width: 80px;
        height: 80px;
    }
    .score-letter {
        font-size: 26px;
    }
    .score-percent {
        font-size: 12px;
    }
    .score-items {
        grid-template-columns: 1fr;
        width: 100%;
    }
    .score-item {
        padding: 8px 12px;
    }
    .score-label {
        font-size: 12px;
    }
    .score-value {
        font-size: 13px;
    }
    .score-ring {
        width: 110px;
        height: 110px;
    }
    .ring-letter {
        font-size: 28px;
    }
    .ring-percent {
        font-size: 14px;
    }
    .ai-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .ai-card {
        padding: 16px;
    }
    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .screenshot-placeholder {
        height: 160px;
    }
    .screenshot-placeholder.desktop {
        height: 160px;
    }
    .screenshot-placeholder.mobile {
        height: 280px;
    }
    .issues-filters {
        gap: 4px;
    }
    .filter-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
    .filter-separator {
        margin: 0 2px;
    }
    .issue-card {
        padding: 14px;
    }
    .issue-header {
        flex-direction: column;
        gap: 8px;
    }
    .issue-title {
        font-size: 15px;
    }
    .issue-description {
        font-size: 13px;
    }
    .issue-meta {
        flex-direction: column;
        gap: 8px;
    }
    .issue-recommendation {
        padding: 10px 14px;
    }
    .issue-recommendation-text {
        font-size: 13px;
    }
    .priority-plan {
        padding: 16px;
    }
    .priority-tasks {
        padding-left: 24px;
    }
    .priority-task {
        font-size: 13px;
    }
    .report-tabs {
        flex-wrap: wrap;
    }
    .tab-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    .modal-card {
        width: 95%;
        border-radius: 16px;
    }
    .modal-header {
        padding: 16px 18px;
    }
    .modal-header h3 {
        font-size: 16px;
    }
    .modal-body {
        padding: 18px;
    }
    .share-btn {
        padding: 12px 14px;
        font-size: 14px;
    }
    .share-btn-icon {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
    .fix-modal .form-group input {
        padding: 10px 12px;
        font-size: 13px;
    }
    .btn-submit-fix {
        padding: 12px;
        font-size: 14px;
    }
    .mini-games-container {
        padding: 12px 14px;
    }
    .mini-games-tabs {
        flex-wrap: wrap;
    }
    .mini-game-tab {
        padding: 5px 10px;
        font-size: 11px;
    }
    .mini-game-canvas {
        max-width: 100%;
        height: auto;
    }
    .mini-game-controls {
        font-size: 10px;
        gap: 8px;
    }
    .audit-phase-indicator {
        gap: 0;
    }
    .audit-phase-label {
        font-size: 8px;
    }
    .audit-phase-line {
        width: 16px;
    }
    .meta-detail-row {
        flex-direction: column;
        gap: 4px;
    }
    .meta-detail-value {
        text-align: left;
    }
    .tech-check-row {
        padding: 8px 12px;
    }
    .tech-check-name {
        font-size: 12px;
    }
    .tech-check-status {
        font-size: 12px;
    }
    .issue-tooltip-popup {
        max-width: 280px;
        padding: 12px 16px;
    }
    .issue-tooltip-popup h4 {
        font-size: 13px;
    }
    .issue-tooltip-popup p {
        font-size: 12px;
    }
    .auth-card {
        padding: 1.5rem;
        border-radius: 20px;
    }
    .auth-title {
        font-size: 1.5rem;
    }
    .oauth-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    .admin-gear-sidebar {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
        left: 10px;
    }
}

/* Tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .header {
        top: 6px;
        left: 10px;
        right: 10px;
        border-radius: 18px;
    }
    .header-content {
        padding: 0.6rem 1.25rem;
    }
    .logo {
        font-size: 1.25rem;
    }
    .main {
        padding: 1.25rem;
        padding-top: 90px;
    }
    .hero {
        padding: 2rem 1rem;
    }
    .hero-title {
        font-size: 2.25rem;
    }
    .hero-landing {
        padding: 110px 1.5rem 1.5rem;
    }
    .hero-title-landing {
        font-size: 2.5rem;
    }
    .hero-form {
        max-width: 500px;
    }
    .floating-card {
        display: none;
    }
    .dashboard-header-section {
        margin-bottom: 2rem;
    }
    .dashboard-title {
        font-size: 2rem;
    }
    .audit-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
        padding: 0 16px;
    }
    .report-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .scores-grid {
        gap: 20px;
    }
    .score-items {
        grid-template-columns: repeat(2, 1fr);
    }
    .ai-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .report-header {
        flex-wrap: wrap;
        gap: 12px;
    }
    .report-title {
        font-size: 24px;
    }
    .modal-card {
        max-width: 400px;
    }
    .mini-game-canvas {
        max-width: 100%;
    }
}

/* Small desktops (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .header-content {
        padding: 0.75rem 1.5rem;
    }
    .main {
        padding: 1.5rem;
        padding-top: 95px;
    }
    .hero-landing {
        padding: 120px 2rem 2rem;
    }
    .hero-title-landing {
        font-size: 3rem;
    }
    .audit-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 20px;
        padding: 0 20px;
    }
    .report-grid {
        gap: 20px;
    }
    .ai-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .floating-card-1 {
        left: 4%;
    }
    .floating-card-2 {
        right: 4%;
    }
}

/* Large screens (1025px+) */
@media (min-width: 1025px) {
    .audit-grid {
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    }
}
