/* ========================================
   SITEAUDIT - ФИОЛЕТОВО-ТЕМНАЯ ТЕМА
   ======================================== */

/* ========================================
   1. БАЗОВЫЕ СТИЛИ / RESET
   ======================================== */

/* ── Header offset variable ── */
:root {
    --header-h: 68px;    /* desktop: top:12px + ~56px height */
    --header-offset: calc(var(--header-h) + 16px); /* content gap after header */
}
@media (max-width: 768px) {
    :root {
        --header-h: 56px;  /* tablet: top:8px + ~48px */
        --header-offset: calc(var(--header-h) + 12px);
    }
}
@media (max-width: 480px) {
    :root {
        --header-h: 48px;  /* phone: top:4px + ~44px */
        --header-offset: calc(var(--header-h) + 10px);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========================================
   2. ТИПОГРАФИКА И ШРИФТЫ
   ======================================== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0B0724;
    min-height: 100vh;
    color: #FFFFFF;
    line-height: 1.6;
}

/* ── Hidden Scrollbars ─────────────────────── */
::-webkit-scrollbar {
    width: 0;
    height: 0;
}
* {
    scrollbar-width: none;
}

/* Aurora background canvas */
#aurora-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #FFFFFF;
}

/* ========================================
   3. HEADER / НАВИГАЦИЯ
   ======================================== */
.header {
    background: rgba(139, 92, 246, 0.1);
    backdrop-filter: blur(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: var(--header-offset);
    min-height: calc(100vh - var(--header-h));
    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: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 2rem 3rem;
    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: 20px;
    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: 30%;
    left: 5%;
    animation: float 6s ease-in-out infinite;
}

.floating-card-2 {
    top: 35%;
    right: 5%;
    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;
}


/* User Menu */
.user-menu {
    display: none;
    width: auto;
    padding: 0 16px;
    gap: 8px;
}

.user-name {
    color: #A78BFA;
    font-weight: 500;
}

.header-avatar-img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(139, 92, 246, 0.5);
    vertical-align: middle;
}

/* ========================================
   17. DASHBOARD / ЛИЧНЫЙ КАБИНЕТ
   ======================================== */

/* 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-screenshot-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 16px 16px 0 0;
    z-index: 0;
}

.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);
    z-index: 2;
}

.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;
    margin-top: var(--header-offset);
    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; }

/* AI badge inline in header */
.ai-badge-inline {
    margin-left: auto;
    font-size: 13px;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(0,0,0,0.2);
    white-space: nowrap;
}

/* AI summary body — paragraphs */
.ai-summary-body {
    margin-bottom: 20px;
}
.ai-para {
    color: #E0E7FF;
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 10px;
}
.ai-para:last-child { margin-bottom: 0; }

/* AI theses blocks */
.ai-theses-block {
    margin-bottom: 18px;
}
.ai-theses-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #A5B4FC;
    margin-bottom: 10px;
}
.ai-thesis {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 8px;
    border-left: 3px solid transparent;
}
.ai-thesis-critical {
    background: rgba(239,68,68,0.08);
    border-left-color: #EF4444;
}
.ai-thesis-warning {
    background: rgba(245,158,11,0.08);
    border-left-color: #F59E0B;
}
.ai-thesis-title {
    font-weight: 600;
    font-size: 14px;
    color: #F1F5F9;
}
.ai-thesis-impact {
    font-size: 13px;
    color: #CBD5E1;
    line-height: 1.5;
}
.ai-thesis-rec {
    font-size: 13px;
    color: #86EFAC;
    line-height: 1.5;
}

/* Advantage block */
.ai-advantage {
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.2);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    color: #BBF7D0;
    line-height: 1.55;
    margin-bottom: 18px;
}

/* What works well block */
.ai-works-well-block {
    background: rgba(16,185,129,0.07);
    border: 1px solid rgba(16,185,129,0.25);
    border-left: 3px solid #10B981;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 18px;
}
.ai-works-well-block .ai-theses-title {
    color: #6EE7B7;
    margin-bottom: 10px;
}
.ai-works-well-para {
    color: #D1FAE5;
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 8px;
}
.ai-works-well-para:last-child { margin-bottom: 0; }

/* Priority plan */
.ai-plan {
    margin-top: 4px;
}
.ai-plan-group {
    margin-bottom: 10px;
}
.ai-plan-group strong {
    font-size: 13px;
    color: #C4B5FD;
    display: block;
    margin-bottom: 4px;
}
.ai-plan ul {
    padding-left: 18px;
    margin: 0;
}
.ai-plan li {
    font-size: 13px;
    color: #E0E7FF;
    line-height: 1.5;
    margin-bottom: 2px;
}

/* Issue human explanation */
.issue-human-explanation {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(139,92,246,0.08);
    border: 1px solid rgba(139,92,246,0.2);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #C4B5FD;
    line-height: 1.5;
}
.issue-human-icon {
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ---------------------------------------------------------------------------
   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: 0;
}
.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: 20px 24px;
}
.scores-title {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}
.score-main {
    display: none;
}
/* Круг с буквенной оценкой (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: 0 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: 2px;
}
.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;
    margin: 0;
}
.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. DOWNLOAD BUTTONS
   ======================================== */

/* ========================================
   29. LIGHT THEME — Светлая тема (единый блок)
   ======================================== */

/* CSS-переменные светлой темы */
body.light-theme {
    --lt-bg:          #F3F2FF;
    --lt-bg2:         #EDEAFF;
    --lt-surface:     #FFFFFF;
    --lt-surface2:    #F8F7FF;
    --lt-border:      rgba(109, 40, 217, 0.12);
    --lt-border2:     rgba(109, 40, 217, 0.22);
    --lt-text:        #1C1040;
    --lt-text2:       #3D2B7A;
    --lt-muted:       #6B7280;
    --lt-purple:      #7C3AED;
    --lt-purple2:     #6D28D9;
    --lt-purple-bg:   rgba(124, 58, 237, 0.08);
    --lt-purple-bg2:  rgba(124, 58, 237, 0.15);
    --lt-shadow:      0 4px 24px rgba(109, 40, 217, 0.10);
    --lt-shadow2:     0 8px 32px rgba(109, 40, 217, 0.16);
}

/* ─── ОСНОВА ─── */
body.light-theme {
    background-color: var(--lt-bg);
    background-image:
        radial-gradient(ellipse at 15% 85%, rgba(139,92,246,0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 10%, rgba(109,40,217,0.08) 0%, transparent 50%);
    color: var(--lt-text);
}
body.light-theme #aurora-bg { display: none; }
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: var(--lt-text); }

/* ─── ШАПКА ─── */
body.light-theme .header {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--lt-border);
    box-shadow: 0 2px 20px rgba(109,40,217,0.08);
}
body.light-theme .nav-link { color: var(--lt-text2); }
body.light-theme .nav-link:hover { color: var(--lt-purple); }
body.light-theme .header-btn {
    background: var(--lt-purple-bg);
    border-color: var(--lt-border2);
    color: var(--lt-purple2);
}
body.light-theme .header-btn:hover { background: var(--lt-purple-bg2); }
body.light-theme .header-btn-primary {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: #fff;
    border: none;
}
body.light-theme .user-name { color: var(--lt-purple2); }
body.light-theme .theme-toggle-btn {
    background: var(--lt-purple-bg);
    border-color: var(--lt-border2);
    color: var(--lt-purple2);
}
body.light-theme .admin-gear-sidebar {
    background: var(--lt-purple-bg);
    border-color: var(--lt-border2);
    color: var(--lt-purple2);
    box-shadow: 0 2px 10px rgba(109,40,217,0.12);
}
body.light-theme .admin-gear-sidebar:hover {
    background: var(--lt-purple-bg2);
}
body.light-theme .hero-badge {
    background: var(--lt-purple-bg);
    border-color: var(--lt-border2);
    color: var(--lt-purple2);
}
body.light-theme .lang-switcher {
    background: var(--lt-surface);
    border-color: var(--lt-border);
}
body.light-theme .lang-btn { color: var(--lt-muted); }

/* ─── КАРТОЧКИ ─── */
body.light-theme .card,
body.light-theme .admin-card {
    background: var(--lt-surface);
    border-color: var(--lt-border);
    box-shadow: var(--lt-shadow);
}
body.light-theme .card:hover,
body.light-theme .admin-card:hover {
    border-color: var(--lt-purple);
    box-shadow: var(--lt-shadow2);
}
body.light-theme .admin-card-title { color: var(--lt-text); }
body.light-theme .admin-card-subtitle { color: var(--lt-muted); }
body.light-theme .admin-card-body-text { color: var(--lt-muted); }
body.light-theme .admin-card strong { color: var(--lt-purple2); }

/* ─── ФОРМЫ / ИНПУТЫ ─── */
body.light-theme .form-input,
body.light-theme input[type="text"],
body.light-theme input[type="email"],
body.light-theme input[type="password"],
body.light-theme input[type="number"],
body.light-theme textarea,
body.light-theme select {
    background: var(--lt-surface);
    border-color: var(--lt-border2);
    color: var(--lt-text);
}
body.light-theme .form-input:focus,
body.light-theme input:focus,
body.light-theme textarea:focus,
body.light-theme select:focus {
    border-color: var(--lt-purple);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
    outline: none;
}
body.light-theme .form-input::placeholder,
body.light-theme input::placeholder,
body.light-theme textarea::placeholder { color: #9CA3AF; }
body.light-theme select option {
    background: var(--lt-surface);
    color: var(--lt-text);
}
body.light-theme label { color: var(--lt-text2); }
body.light-theme .form-group label { color: var(--lt-text2); }

/* ─── КНОПКИ ─── */
body.light-theme .btn-primary,
body.light-theme .btn-submit,
body.light-theme .cta-btn,
body.light-theme .hero-btn,
body.light-theme .admin-btn-primary {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: #fff !important;
    border: none;
}
body.light-theme .btn-outline,
body.light-theme .btn-secondary {
    background: var(--lt-purple-bg);
    border-color: var(--lt-border2);
    color: var(--lt-purple2);
}
body.light-theme .btn-outline:hover,
body.light-theme .btn-secondary:hover { background: var(--lt-purple-bg2); }

/* ─── ГЛАВНАЯ СТРАНИЦА ─── */
body.light-theme .hero-title-landing {
    background: linear-gradient(135deg, var(--lt-text) 0%, var(--lt-purple2) 60%, #8B5CF6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
body.light-theme .hero-subtitle-landing { color: var(--lt-text2); }
body.light-theme .hero-form {
    background: var(--lt-surface);
    border-color: var(--lt-border2);
    box-shadow: var(--lt-shadow);
}
body.light-theme .hero-input-wrapper {
    background: var(--lt-surface2);
    border-color: var(--lt-border);
}
body.light-theme .hero-input { color: var(--lt-text); }
body.light-theme .hero-input::placeholder { color: #9CA3AF; }
body.light-theme .hero-feature { color: var(--lt-text2); }
body.light-theme .floating-card {
    background: var(--lt-surface);
    border-color: var(--lt-border2);
    color: var(--lt-purple2);
    box-shadow: var(--lt-shadow);
}

/* ─── СЕКЦИЯ АУДИТА / ДАШБОРД ─── */
body.light-theme .audit-card {
    background: var(--lt-surface);
    border-color: var(--lt-border);
    box-shadow: var(--lt-shadow);
}
body.light-theme .audit-card:hover {
    border-color: var(--lt-purple);
    box-shadow: var(--lt-shadow2);
}
body.light-theme .audit-card-url { color: var(--lt-text); }
body.light-theme .audit-card-date { color: var(--lt-muted); }
body.light-theme .audit-source-tag {
    background: var(--lt-purple-bg);
    border-color: var(--lt-border);
    color: var(--lt-purple2);
}
body.light-theme .audit-progress-bar-bg { background: var(--lt-purple-bg); }
body.light-theme .audit-progress-status { color: var(--lt-purple2); }

/* ─── ОТЧЁТ ─── */
body.light-theme .report-title { color: var(--lt-text); }
body.light-theme .report-url { color: var(--lt-purple2); }
body.light-theme .ring-letter { color: var(--lt-text); }
body.light-theme .ring-percent { color: var(--lt-purple2); }
body.light-theme .summary-status { color: var(--lt-muted); }
body.light-theme .section-subtitle { color: var(--lt-muted); }
body.light-theme .issues-count { background: rgba(239,68,68,0.10); }
body.light-theme .issue-card {
    background: var(--lt-surface);
    border-color: var(--lt-border);
    box-shadow: var(--lt-shadow);
}
body.light-theme .issue-card.critical {
    background: linear-gradient(135deg, rgba(239,68,68,0.06) 0%, var(--lt-surface) 100%);
    border-color: rgba(239,68,68,0.2);
}
body.light-theme .issue-card.warning {
    background: linear-gradient(135deg, rgba(245,158,11,0.06) 0%, var(--lt-surface) 100%);
    border-color: rgba(245,158,11,0.2);
}
body.light-theme .issue-card.info {
    background: linear-gradient(135deg, rgba(59,130,246,0.06) 0%, var(--lt-surface) 100%);
    border-color: rgba(59,130,246,0.15);
}
body.light-theme .issue-tooltip-icon {
    background: var(--lt-purple-bg);
    border-color: var(--lt-border2);
    color: var(--lt-purple2);
}
body.light-theme .issue-tooltip-icon:hover {
    background: var(--lt-purple-bg2);
    color: #4C1D95;
}
body.light-theme .issue-tooltip-popup {
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    border-color: #C7D2FE;
    color: var(--lt-text);
}
body.light-theme .issue-tooltip-popup h4 { color: var(--lt-text); }
body.light-theme .issue-tooltip-popup p { color: #3730A3; }
body.light-theme .category-badge {
    background: var(--lt-purple-bg);
    color: var(--lt-purple2);
}
body.light-theme .effort-star.empty { color: #D1D5DB; }
body.light-theme .issue-meta { border-top-color: var(--lt-border); }
body.light-theme .action-card h3 { color: var(--lt-text); }
body.light-theme .action-card p { color: var(--lt-muted); }

/* ─── ТАБЛИЦЫ ─── */
body.light-theme .table th {
    background: var(--lt-surface2);
    color: var(--lt-text);
    border-bottom-color: var(--lt-border2);
}
body.light-theme .table td {
    color: var(--lt-text2);
    border-bottom-color: var(--lt-border);
}
body.light-theme .table tbody tr:hover { background: var(--lt-purple-bg); }

/* ─── УВЕДОМЛЕНИЯ ─── */
body.light-theme .notif-panel {
    background: var(--lt-surface);
    border-color: var(--lt-border2);
    box-shadow: var(--lt-shadow2);
}
body.light-theme .notif-item { border-bottom-color: var(--lt-border); }
body.light-theme .notif-item:hover { background: var(--lt-purple-bg); }
body.light-theme .notif-item-msg { color: var(--lt-text); }
body.light-theme .notif-item-time { color: var(--lt-muted); }
body.light-theme .notif-badge { background: #EF4444; color: #fff; }

/* ─── МОДАЛКИ ─── */
body.light-theme .modal-card,
body.light-theme .modal-box {
    background: var(--lt-surface);
    border-color: var(--lt-border2);
    box-shadow: var(--lt-shadow2);
}
body.light-theme .modal-header { border-bottom-color: var(--lt-border); }
body.light-theme .modal-header h3 { color: var(--lt-text); }
body.light-theme .modal-title { color: var(--lt-text); }
body.light-theme .modal-text { color: var(--lt-muted); }
body.light-theme .modal-close {
    background: var(--lt-purple-bg);
    border-color: var(--lt-border2);
    color: var(--lt-purple2);
}
body.light-theme .modal-close:hover { background: var(--lt-purple-bg2); }
body.light-theme .fix-modal .form-group label { color: var(--lt-purple2); }
body.light-theme .fix-modal .form-group input {
    background: var(--lt-surface);
    border-color: var(--lt-border2);
    color: var(--lt-text);
}
body.light-theme .form-checkbox label { color: var(--lt-muted); }

/* ─── АДМИНКА — ОСНОВА ─── */
body.light-theme .admin-title { color: var(--lt-text); }
body.light-theme .admin-hr,
body.light-theme .request hr { border-top-color: var(--lt-border); }
body.light-theme .filter-separator { background: var(--lt-border); }

/* Сайдбар */
body.light-theme .admin-sidebar {
    background: var(--lt-surface);
    border-right: 1px solid var(--lt-border2);
    box-shadow: 2px 0 20px rgba(109,40,217,0.06);
}
body.light-theme .admin-sidebar-title { color: var(--lt-purple2); }
body.light-theme .admin-nav-link { color: var(--lt-text2); }
body.light-theme .admin-nav-link:hover {
    background: var(--lt-purple-bg);
    color: var(--lt-text);
}
body.light-theme .admin-nav-link.active {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: #fff;
}

/* Таблицы и враппер */
body.light-theme .admin-table-wrapper {
    background: var(--lt-surface);
    border-color: var(--lt-border2);
    box-shadow: var(--lt-shadow);
}
body.light-theme .admin-table th {
    background: var(--lt-surface2);
    color: var(--lt-text2);
    border-bottom-color: var(--lt-border2);
}
body.light-theme .admin-table td {
    color: var(--lt-text);
    border-bottom-color: var(--lt-border);
}
body.light-theme .admin-table tbody tr:hover { background: var(--lt-purple-bg); }
body.light-theme .td-muted { color: var(--lt-muted) !important; }

/* Табы */
body.light-theme .admin-tab {
    background: var(--lt-surface2);
    border-color: var(--lt-border2);
    color: var(--lt-text2);
}
body.light-theme .admin-tab:hover { background: var(--lt-purple-bg); }
body.light-theme .admin-tab.active {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: #fff;
    border-color: transparent;
}

/* Кнопки админки */
body.light-theme .admin-btn-secondary {
    background: var(--lt-purple-bg);
    color: var(--lt-purple2);
    border-color: var(--lt-border2);
}
body.light-theme .admin-btn-secondary:hover { background: var(--lt-purple-bg2); }
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-filter-input,
body.light-theme .admin-filter-select,
body.light-theme .admin-db-toolbar select,
body.light-theme .admin-db-toolbar input {
    background: var(--lt-surface);
    border-color: var(--lt-border2);
    color: var(--lt-text);
}

/* Секция-заголовки */
body.light-theme .admin-section-title { color: var(--lt-text); }
body.light-theme .admin-section-header { border-bottom-color: var(--lt-border); }
body.light-theme .admin-maintenance-banner {
    background: var(--lt-surface2);
    border-color: var(--lt-border2);
}

/* ─── КНОПКИ СКАЧИВАНИЯ ОТЧЁТОВ ─── */
body.light-theme .btn-download-pptx {
    background: rgba(217,119,6,0.08);
    border-color: rgba(217,119,6,0.2);
    color: #D97706;
}
body.light-theme .btn-download-pptx:hover {
    background: rgba(217,119,6,0.15);
    color: #B45309;
}
body.light-theme .btn-download-docx {
    background: rgba(37,99,235,0.08);
    border-color: rgba(37,99,235,0.2);
    color: #2563EB;
}
body.light-theme .btn-download-docx:hover {
    background: rgba(37,99,235,0.15);
    color: #1D4ED8;
}
body.light-theme .share-btn-copy {
    background: var(--lt-purple-bg);
    border-color: var(--lt-border2);
    color: var(--lt-purple2);
}
body.light-theme .share-btn-copy:hover { background: var(--lt-purple-bg2); }
body.light-theme .btn-share,
body.light-theme .btn-dashboard-new {
    box-shadow: 0 2px 12px rgba(139,92,246,0.2);
}

/* ─── ПРОЧЕЕ ─── */
body.light-theme .meta-details-card,
body.light-theme .tech-check-row {
    background: var(--lt-surface2);
    border-color: var(--lt-border);
}
body.light-theme .meta-details-title,
body.light-theme .tech-checks-title { color: var(--lt-text); }
body.light-theme .audit-phase-label { color: var(--lt-muted); }
body.light-theme .audit-phase-step.completed + .audit-phase-line {
    background: rgba(34,197,94,0.3);
}
body.light-theme .audit-favicon-placeholder { border-color: var(--lt-border2); }
body.light-theme .status-badge {
    background: var(--lt-purple-bg);
    color: var(--lt-purple2);
}
body.light-theme .fix-success h4 { color: #059669; }
body.light-theme .fix-success p { color: var(--lt-muted); }
body.light-theme .mini-games-container {
    background: var(--lt-surface);
    border-color: var(--lt-border2);
}

/* ─── LOGIN / REGISTER ─── */
body.light-theme .auth-card,
body.light-theme .login-card,
body.light-theme .register-card,
body.light-theme .form-container {
    background: var(--lt-surface);
    border: 1px solid var(--lt-border2);
    box-shadow: var(--lt-shadow2);
}

/* ─── FOOTER ─── */
body.light-theme footer,
body.light-theme .footer {
    background: var(--lt-surface2);
    border-top-color: var(--lt-border);
    color: var(--lt-muted);
}

/* ─── МОБИЛЬНЫЙ САЙДБАР ─── */
@media (max-width: 768px) {
    body.light-theme .admin-sidebar {
        background: rgba(255,255,255,0.98);
        box-shadow: 4px 0 30px rgba(109,40,217,0.12);
    }
}

/* ========================================
   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: var(--header-offset);
    }
    .hero {
        padding: 1.5rem 0.75rem;
    }
    .hero-title {
        font-size: 1.75rem;
    }
    .hero-subtitle {
        font-size: 0.9rem;
    }
    .hero-landing {
        padding: 0 1rem 2rem;
    }
    .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: var(--header-offset);
    }
    .hero {
        padding: 2rem 1rem;
    }
    .hero-title {
        font-size: 2.25rem;
    }
    .hero-landing {
        padding: 0 1.5rem 2rem;
    }
    .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: var(--header-offset);
    }
    .hero-landing {
        padding: 0 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));
    }
}

/* ========================================
   МОДАЛЬНЫЕ ОКНА / MODALS
   ======================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: linear-gradient(135deg, #0B0724 0%, #19163A 100%);
    border: 1px solid #2E2A5A;
    border-radius: 16px;
    padding: 40px;
    max-width: 450px;
    width: calc(100% - 32px);
    text-align: center;
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.3);
}

.modal-icon {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    border-radius: 50%;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.modal-icon.danger {
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
}

.modal-title {
    color: #FFFFFF;
    margin-bottom: 12px;
    font-size: 22px;
}

.modal-text {
    color: #A1A1AA;
    margin-bottom: 28px;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn-cancel {
    background: transparent;
    color: #C4B5FD;
    border: 1px solid #2E2A5A;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn-cancel:hover {
    border-color: #8B5CF6;
    color: #fff;
}

.modal-btn-confirm {
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn-confirm.danger {
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
}

.modal-btn-confirm:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

/* ========================================
   КНОПКА ВЫХОДА / LOGOUT BUTTON
   ======================================== */
.btn-logout {
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    font-size: 0.875rem;
}

.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
    filter: brightness(1.1);
}

@media (max-width: 480px) {
    .modal-box {
        padding: 24px 16px;
    }
    .modal-title {
        font-size: 18px;
    }
    .modal-actions {
        flex-direction: column;
    }
}

/* ========================================
   ГЛОБАЛЬНЫЕ HOVER / ACTIVE — БЕЗ ПРЫЖКОВ
   Glow outline при наведении, scale-down при клике
   ======================================== */

/* Убираем все прыжки translateY на hover */
.btn:hover,
.btn-primary:hover,
.btn-outline:hover,
.hero-btn:hover,
.header-btn:hover,
.header-btn-primary:hover,
.btn-dashboard-new:hover,
.btn-logout:hover,
.btn-share:hover,
.btn-action:hover,
.btn-download:hover,
.btn-submit-fix:hover,
.audit-btn-view:hover,
.modal-btn-confirm:hover,
.modal-btn-cancel:hover,
.admin-btn-approve:hover,
.admin-btn-reject:hover,
.share-btn-vk:hover,
.share-btn-telegram:hover,
.share-btn-copy:hover {
    transform: none !important;
}

/* Glow outline — кнопки фиолетовые */
.btn:hover,
.btn-primary:hover,
.hero-btn:hover,
.header-btn-primary:hover,
.btn-dashboard-new:hover,
.audit-btn-view:hover,
.modal-btn-confirm:hover,
.admin-btn-approve:hover,
.btn-share:hover,
.btn-action:hover,
.btn-submit-fix:hover {
    box-shadow:
        0 0 0 1.5px rgba(139, 92, 246, 0.6),
        0 0 18px rgba(139, 92, 246, 0.35),
        0 0 40px rgba(139, 92, 246, 0.15) !important;
    filter: brightness(1.08);
}

/* Glow outline — кнопки красные */
.btn-logout:hover,
.admin-btn-reject:hover,
.modal-btn-confirm.danger:hover {
    box-shadow:
        0 0 0 1.5px rgba(220, 38, 38, 0.6),
        0 0 18px rgba(220, 38, 38, 0.35),
        0 0 40px rgba(220, 38, 38, 0.15) !important;
    filter: brightness(1.08);
}

/* Glow outline — нейтральные кнопки */
.btn-outline:hover,
.modal-btn-cancel:hover,
.header-btn:hover {
    box-shadow:
        0 0 0 1.5px rgba(196, 181, 253, 0.4),
        0 0 14px rgba(139, 92, 246, 0.2) !important;
}

/* Glow outline — карточки */
.card:hover,
.audit-card:hover,
.issue-card:hover,
.screenshot-card:hover {
    transform: none !important;
    box-shadow:
        0 0 0 1px rgba(139, 92, 246, 0.35),
        0 0 30px rgba(139, 92, 246, 0.18),
        0 8px 30px rgba(0, 0, 0, 0.3) !important;
    border-color: rgba(139, 92, 246, 0.5) !important;
}

/* Scale-down при нажатии */
.btn:active,
.btn-primary:active,
.btn-outline:active,
.hero-btn:active,
.header-btn:active,
.header-btn-primary:active,
.btn-dashboard-new:active,
.btn-logout:active,
.btn-share:active,
.btn-action:active,
.btn-download:active,
.btn-submit-fix:active,
.audit-btn-view:active,
.modal-btn-confirm:active,
.modal-btn-cancel:active,
.admin-btn-approve:active,
.admin-btn-reject:active,
.share-btn-vk:active,
.share-btn-telegram:active,
.share-btn-copy:active {
    transform: scale(0.97) !important;
    transition: transform 0.08s ease !important;
    filter: brightness(0.95);
}

/* Плавный transition на всех кнопках */
.btn, .btn-primary, .btn-outline,
.hero-btn, .header-btn, .header-btn-primary,
.btn-dashboard-new, .btn-logout,
.btn-share, .btn-action, .btn-download, .btn-submit-fix,
.audit-btn-view, .modal-btn-confirm, .modal-btn-cancel,
.admin-btn-approve, .admin-btn-reject,
.share-btn-vk, .share-btn-telegram, .share-btn-copy {
    transition: box-shadow 0.25s ease, filter 0.25s ease, transform 0.08s ease !important;
}

/* Плавный transition на карточках */
.card, .audit-card, .issue-card, .screenshot-card {
    transition: box-shadow 0.3s ease, border-color 0.3s ease !important;
}

/* Gear sidebar — сохраняем rotate, убираем translateY */
.admin-gear-sidebar:hover {
    transform: translateY(-50%) scale(1.08) rotate(90deg) !important;
}

/* ========================================
   NOTIFICATION SYSTEM
   ======================================== */

/* Bell / envelope button */
.notif-btn-wrap {
    position: relative;
}
.notif-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C4B5FD;
}
.notif-btn svg {
    display: block;
}
.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid #0B0724;
    line-height: 1;
    pointer-events: none;
}

/* Dropdown panel */
.notif-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 320px;
    background: linear-gradient(135deg, rgba(25,22,58,0.97) 0%, rgba(15,13,42,0.97) 100%);
    border: 1px solid rgba(139,92,246,0.25);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(139,92,246,0.1);
    backdrop-filter: blur(20px);
    z-index: 2000;
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    overflow: hidden;
}
.notif-panel.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}
.notif-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(46,42,90,0.6);
}
.notif-panel-title {
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: 0.03em;
}
.notif-clear-btn {
    font-size: 11px;
    color: #8B5CF6;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    transition: background 0.2s;
}
.notif-clear-btn:hover {
    background: rgba(139,92,246,0.15);
}
.notif-list {
    max-height: 360px;
    overflow-y: auto;
    padding: 8px 0;
}
.notif-empty {
    text-align: center;
    color: #555;
    font-size: 13px;
    padding: 28px 16px;
}
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    touch-action: pan-y;
    will-change: transform;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(46,42,90,0.3);
    transition: background 0.15s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: rgba(139,92,246,0.07); }
.notif-item-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.notif-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.notif-item-msg {
    font-size: 13px;
    color: #E0D9FF;
    line-height: 1.4;
    word-break: break-word;
}
.notif-item-time {
    font-size: 11px;
    color: #555;
}
.notif-item-close {
    background: none;
    border: none;
    color: #444;
    cursor: pointer;
    font-size: 14px;
    flex-shrink: 0;
    line-height: 1;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color 0.15s;
}
.notif-item-close:hover { color: #EF4444; }

/* Unread green dot */
.notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22C55E;
    flex-shrink: 0;
    margin-top: 4px;
    box-shadow: 0 0 6px rgba(34,197,94,0.6);
}
.notif-item-unread {
    background: rgba(34,197,94,0.05);
}

/* Toast container */
.toast-container {
    position: fixed;
    top: 72px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

/* Individual toast */
.toast-notif {
    width: 320px;
    background: linear-gradient(135deg, rgba(25,22,58,0.97) 0%, rgba(15,13,42,0.97) 100%);
    border: 1px solid rgba(139,92,246,0.25);
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.45), 0 0 0 1px rgba(139,92,246,0.08);
    backdrop-filter: blur(20px);
    overflow: hidden;
    pointer-events: all;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast-notif.show {
    opacity: 1;
    transform: translateX(0);
}
.toast-notif-body {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px 10px;
}
.toast-notif-msg {
    flex: 1;
    font-size: 13px;
    color: #E0D9FF;
    line-height: 1.4;
    word-break: break-word;
}
.toast-notif-close {
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: 14px;
    flex-shrink: 0;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color 0.15s;
    line-height: 1;
}
.toast-notif-close:hover { color: #EF4444; }

/* Progress bar at bottom */
.toast-notif-progress {
    height: 3px;
    background: rgba(139,92,246,0.12);
}
.toast-notif-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #8B5CF6, #6D28D9);
    border-radius: 0 0 14px 14px;
    transition: width 5000ms linear;
}

/* Type accent borders */
.toast-notif-success { border-color: rgba(34,197,94,0.35); }
.toast-notif-success .toast-notif-bar { background: linear-gradient(90deg, #22C55E, #16A34A); }
.toast-notif-error   { border-color: rgba(239,68,68,0.35); }
.toast-notif-error   .toast-notif-bar { background: linear-gradient(90deg, #EF4444, #DC2626); }
.toast-notif-warning { border-color: rgba(245,158,11,0.35); }
.toast-notif-warning .toast-notif-bar { background: linear-gradient(90deg, #F59E0B, #D97706); }

@media (max-width: 768px) {
    /* Toast — ближе к верху, во всю ширину */
    .toast-container {
        top: 72px;
        right: 12px;
        left: 12px;
    }
    .toast-notif {
        width: 100%;
    }

    /* Панель уведомлений — под хедером, по центру по горизонтали */
    .notif-panel {
        position: fixed !important;
        top: 72px !important;
        left: 16px !important;
        right: 16px !important;
        bottom: auto !important;
        width: auto !important;
        max-width: none !important;
        max-height: calc(100vh - 88px);
        overflow-y: auto;
        z-index: 999;
        transform: translateY(-8px) scale(0.97) !important;
    }
    .notif-panel.open {
        transform: translateY(0) scale(1) !important;
    }
}

/* ========================================
   DASHBOARD REDESIGN — user info & avatar
   ======================================== */

.dashboard-user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dashboard-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: white;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
    border: 2px solid rgba(139, 92, 246, 0.4);
}

.dashboard-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.btn-dashboard-settings {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #C4B5FD;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-dashboard-settings:hover {
    background: rgba(139, 92, 246, 0.22);
    border-color: rgba(139, 92, 246, 0.5);
    color: #DDD6FE;
    transform: translateY(-1px);
}

/* Override: make "Check site" button match settings style */
.dashboard-header-actions .btn-dashboard-new {
    padding: 11px 20px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #C4B5FD;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: none;
    filter: none;
    text-decoration: none;
}

.dashboard-header-actions .btn-dashboard-new:hover {
    background: rgba(139, 92, 246, 0.22);
    border-color: rgba(139, 92, 246, 0.5);
    color: #DDD6FE;
    transform: translateY(-1px);
    box-shadow: none;
    filter: none;
}

.dashboard-header-actions .btn-dashboard-new span {
    font-size: 16px;
    line-height: 1;
}

/* ========================================
   PROFILE MODAL
   ======================================== */

.profile-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.profile-modal-overlay.active {
    display: flex;
}

.profile-modal {
    background: linear-gradient(135deg, #1A1733 0%, #0F0D2A 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(139,92,246,0.1);
    overflow: hidden;
    animation: profileModalIn 0.25s ease;
}

@keyframes profileModalIn {
    from { opacity: 0; transform: translateY(-14px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.profile-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.profile-modal-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
}

.profile-modal-close {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    background: rgba(139, 92, 246, 0.1);
    color: #A0A0C0;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-modal-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #FCA5A5;
}

.profile-modal-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.profile-avatar-wrap {
    position: relative;
    cursor: pointer;
    border-radius: 50%;
    display: inline-block;
}

.profile-avatar-big {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 700;
    color: white;
    overflow: hidden;
    position: relative;
    border: 3px solid rgba(139, 92, 246, 0.5);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
    transition: box-shadow 0.2s;
}

.profile-avatar-wrap:hover .profile-avatar-big {
    box-shadow: 0 8px 28px rgba(139, 92, 246, 0.55);
}

.profile-avatar-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.52);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: white;
    font-size: 11px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s;
}

.profile-avatar-wrap:hover .profile-avatar-overlay {
    opacity: 1;
}

.profile-avatar-hint {
    font-size: 12px;
    color: #6B7280;
    margin: 0;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-label {
    font-size: 11px;
    font-weight: 600;
    color: #A0A0C0;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.profile-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 10px;
    color: #E0D9FF;
    font-size: 14px;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}

.profile-input:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.6);
    background: rgba(139, 92, 246, 0.06);
}

.profile-input-readonly {
    color: #6B7280;
    cursor: default;
    background: rgba(255, 255, 255, 0.02);
}

.profile-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 10px;
}

.profile-toggle-label {
    font-size: 14px;
    color: #E0D9FF;
    font-weight: 500;
}

.profile-toggle-hint {
    font-size: 12px;
    color: #6B7280;
    margin-top: 2px;
    line-height: 1.4;
}

.profile-toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.profile-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.profile-toggle-slider {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.profile-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.profile-toggle-switch input:checked + .profile-toggle-slider {
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    border-color: transparent;
}

.profile-toggle-switch input:checked + .profile-toggle-slider::before {
    transform: translateX(20px);
}

.profile-logout-row {
    padding-top: 2px;
}

.profile-btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 10px;
    color: #FCA5A5;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    justify-content: center;
}

.profile-btn-logout:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #FECACA;
}

.profile-modal-footer {
    display: flex;
    gap: 10px;
    padding: 16px 24px 20px;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.profile-btn-cancel {
    flex: 1;
    padding: 11px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #A0A0C0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.profile-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #E0D9FF;
}

.profile-btn-save {
    flex: 2;
    padding: 11px;
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.profile-btn-save:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

/* ========================================
   DASHBOARD MOBILE ADAPTIVE
   ======================================== */
@media (max-width: 640px) {
    .dashboard-header-section {
        margin: 0 auto 24px;
        padding: 0 16px;
        gap: 14px;
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-avatar {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }

    .dashboard-title {
        font-size: 1.45rem !important;
    }

    .dashboard-subtitle {
        font-size: 0.85rem;
    }

    .dashboard-header-actions {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }

    .btn-dashboard-settings {
        flex: 1;
        justify-content: center;
        padding: 10px 12px;
        font-size: 13px;
    }

    .btn-dashboard-new {
        flex: 2;
        justify-content: center;
        padding: 10px 12px;
        font-size: 13px;
    }

    .profile-modal-overlay.active {
        align-items: flex-end;
        padding: 0;
    }

    .profile-modal {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        animation: profileModalUp 0.25s ease;
    }

    @keyframes profileModalUp {
        from { transform: translateY(40px); opacity: 0; }
        to   { transform: translateY(0); opacity: 1; }
    }

    .profile-modal-body {
        padding: 16px 20px;
        gap: 14px;
    }

    .profile-modal-footer {
        padding: 14px 20px 28px;
    }
}

/* ========================================
   AVATAR CROPPER
   ======================================== */

.cropper-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.cropper-overlay.active {
    display: flex;
}

.cropper-box {
    background: linear-gradient(135deg, #1A1733 0%, #0F0D2A 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    width: 100%;
    max-width: 360px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
    animation: profileModalIn 0.22s ease;
}

.cropper-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
}

.cropper-stage {
    width: 260px;
    height: 260px;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #0A0818;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.cropper-stage:active {
    cursor: grabbing;
}

.cropper-img-wrap {
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform;
}

.cropper-img-wrap img {
    display: block;
    max-width: none;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Dark overlay with circular cutout */
.cropper-circle-mask {
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
    border-radius: 50%;
    width: 220px;
    height: 220px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    outline: 2px solid rgba(139, 92, 246, 0.7);
}

.cropper-controls {
    padding: 0 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cropper-hint {
    font-size: 12px;
    color: #6B7280;
}

.cropper-zoom-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.cropper-zoom-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.1);
    color: #C4B5FD;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
    line-height: 1;
}

.cropper-zoom-btn:hover {
    background: rgba(139, 92, 246, 0.22);
    border-color: rgba(139, 92, 246, 0.5);
}

#cropperZoomRange {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: rgba(139, 92, 246, 0.2);
    outline: none;
    cursor: pointer;
}

#cropperZoomRange::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.5);
}

#cropperZoomRange::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    cursor: pointer;
    border: none;
}

.cropper-footer {
    display: flex;
    gap: 10px;
    padding: 14px 20px 20px;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

@media (max-width: 640px) {
    .cropper-overlay.active {
        align-items: flex-end;
        padding: 0;
    }
    .cropper-box {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
    }
    .cropper-stage {
        width: 220px;
        height: 220px;
    }
    .cropper-circle-mask {
        width: 190px;
        height: 190px;
    }
}

/* ========================================
   MINI-GAMES MOBILE TOUCH CONTROLS
   ======================================== */

.mini-game-touch-controls {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    user-select: none;
}

.touch-row {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.touch-btn {
    width: 52px;
    height: 52px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 10px;
    color: #C4B5FD;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.1s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.touch-btn:active {
    background: rgba(139, 92, 246, 0.4);
}

@media (max-width: 600px) {
    .mini-game-touch-controls {
        display: flex;
    }
}