:root {
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --accent: #6777F5;
    --accent-light: #8593FE;
    --border: #333333;
    --border-hover: #4a4a4a;
    --orange: #f59e0b;
    --bg-primary: #0a0a0a;
    --bg-secondary: #161616;
    --bg-tertiary: #202020;
    --bg-card: rgba(255, 255, 255, 0.04);
    --accent-primary: #6777F5;
    --accent-secondary: #8593FE;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #999999;
    --border-color: #333333;
    --success: #00d4aa;
    --warning: #ffb347;
    --error: #ff6b6b;
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --header-padding: 8px 20px;
    --footer-margin-top: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    line-height: 1.6;
    height: 100vh;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: scroll-position;
}

.container {
    max-width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 6px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.header {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 20px;
    margin-bottom: 6px;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.header-title-section {
    justify-self: start;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    align-items: flex-start;
}

.nav-buttons {
    justify-self: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.logo-container svg {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.logo-container svg path {
    fill: currentColor;
}

.logo-container svg path[fill="#FDFDFD"] {
    fill: #FDFDFD;
}

.logo-container svg path[fill="#4D70EF"] {
    fill: #4D70EF;
}

.logo-container svg path[fill="#003C96"] {
    fill: #003C96;
}

.logo-container svg path[fill="#E4E3E3"] {
    fill: #E4E3E3;
}

.logo-container svg path[fill="black"] {
    fill: black;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow-y: auto;
}

/* Для контентных страниц (about, privacy, terms) убираем центрирование */
.main-content:has(.content-page) {
    align-items: flex-start;
}

/* На странице результатов контент сверху */
.results-page .main-content {
    align-items: flex-start;
    overflow-y: auto;
    padding: 20px 0;
}

.upload-section {
    width: 100%;
    max-width: 600px;
}

.upload-zone {
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-zone:hover {
    border-color: var(--accent-primary);
    background: rgba(103, 119, 245, 0.05);
}

/* Состояние загрузки */
.upload-zone.uploading {
    pointer-events: none;
    border-color: var(--accent-primary);
    opacity: 0.7;
}

.upload-zone.uploading .upload-icon {
    animation: upload-spin 1s linear infinite;
}

@keyframes upload-spin {
    to { transform: rotate(360deg); }
}

.upload-zone.drag-over {
    border-color: var(--accent-primary);
    background: rgba(103, 119, 245, 0.1);
    transform: scale(1.02);
}

.upload-icon {
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.upload-zone h2 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.upload-zone p {
    color: var(--text-secondary);
    font-size: 14px;
}

.results-section {
    width: 100%;
    max-width: 1200px;
}


.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.results-header h2 {
    font-size: 28px;
    color: var(--text-primary);
}

.btn-secondary {
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-secondary svg {
    width: 14px;
    height: 14px;
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(103, 119, 245, 0.15);
}

.accounts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.account-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.account-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 8px 24px rgba(103, 119, 245, 0.2);
    transform: translateY(-4px);
}

.account-avatar {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.account-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.account-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.account-id {
    font-size: 14px;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
}

.account-stats {
    display: flex;
    gap: 24px;
    margin-top: 8px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.vac-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vac-badge.clean {
    background: rgba(0, 212, 170, 0.15);
    color: var(--success);
    border: 1px solid rgba(0, 212, 170, 0.3);
}

.vac-badge.banned {
    background: rgba(255, 107, 107, 0.15);
    color: var(--error);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.footer {
    margin-top: 10px;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-copyright {
    background: var(--bg-tertiary);
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.footer-copyright .footer-text {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
}

.footer-text {
    color: var(--text-muted);
    font-size: 11px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.footer-link:hover {
    color: var(--accent-primary);
    background: rgba(103, 119, 245, 0.1);
}

.footer-link svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-link-telegram {
    background: #0088cc !important;
    color: white !important;
    box-shadow: 0 2px 6px rgba(0, 136, 204, 0.3);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-link-telegram .telegram-icon {
    width: 18px;
    height: 18px;
}

.footer-link-telegram:hover {
    background: #0077b3 !important;
    box-shadow: 0 3px 10px rgba(0, 136, 204, 0.4);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .account-card {
        flex-direction: column;
        text-align: center;
    }
    
    .account-stats {
        justify-content: center;
    }
    
    .results-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
}

/* ===== CONTENT PAGES (About, Privacy, Terms) ===== */
.content-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 20px;
    width: 100%;
}

/* Compact version for Privacy page */
.content-page.compact {
    padding: 8px 16px;
}

.content-page.compact .page-title {
    font-size: 2rem;
    margin-bottom: 6px;
}

.content-page.compact .last-updated {
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.content-page.compact .content-section {
    margin-bottom: 20px;
}

.content-page.compact .content-section h2 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.content-page.compact .content-section h3 {
    font-size: 1rem;
    margin: 12px 0 8px;
}

.content-page.compact .content-section p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 8px;
}

.content-page.compact .content-section ul li {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 6px;
    padding-left: 18px;
}

.content-page.compact .content-section ul li::before {
    top: 9px;
    width: 5px;
    height: 5px;
}

.content-page.compact .content-grid {
    gap: 20px;
    margin: 16px 0;
}

.content-page.compact .back-link {
    margin-top: 20px;
    padding-top: 16px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.last-updated {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-style: italic;
}

.content-section {
    margin-bottom: 16px;
}

.content-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--border);
}

.content-section h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 10px 0 6px;
}

.content-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.content-section ul {
    list-style: none;
    padding-left: 0;
    margin: 8px 0;
}

.content-section ul li {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 6px;
    padding-left: 24px;
    position: relative;
}

.content-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.content-section ul li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.content-section ul li p {
    margin-top: 4px;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.content-section a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

.content-section a:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

/* Three column layout for content */
.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 12px 0;
}

.content-grid .content-section {
    margin-bottom: 0;
}

/* Feature list */
.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.feature-list li {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    transition: all 0.3s;
}

.feature-list li:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateX(2px);
}

.feature-list li::before {
    display: none;
}

.feature-list li strong {
    display: block;
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-list li p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Tech grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.tech-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    transition: all 0.3s;
}

.tech-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(77, 112, 239, 0.2);
}

.tech-item h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tech-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Notice box */
.notice-box {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    padding: 16px;
    margin: 20px 0;
    display: flex;
    gap: 14px;
}

.notice-box svg {
    width: 24px;
    height: 24px;
    color: var(--orange);
    flex-shrink: 0;
    margin-top: 2px;
}

.notice-box strong {
    display: block;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 6px;
}

.notice-box p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Back link */
.back-link {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .content-page {
        padding: 16px 12px;
    }
    
    .page-title {
        font-size: 1.4rem;
    }
    
    .content-section h2 {
        font-size: 0.95rem;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .notice-box {
        flex-direction: column;
    }
}

/* ===== PLATFORM BANS & PROFILE BUTTONS ===== */
.account-header {
    display: flex;
    gap: 16px;
    width: 100%;
}

.account-info {
    flex: 1;
    min-width: 0;
}

.profile-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
}

.profile-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.profile-btn svg {
    flex-shrink: 0;
}

.profile-btn.steam {
    background: rgba(23, 29, 41, 0.8);
    border-color: rgba(66, 133, 244, 0.3);
}

.profile-btn.steam:hover {
    background: rgba(66, 133, 244, 0.15);
    border-color: rgba(66, 133, 244, 0.5);
}

.profile-btn.yooma {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.25);
}

.profile-btn.yooma:hover {
    background: rgba(239, 68, 68, 0.15);
}

.profile-btn.yooma.banned,
.profile-btn.fearproject.banned {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fca5a5;
}

.profile-btn.fearproject {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
}

.profile-btn.fearproject:hover {
    background: rgba(245, 158, 11, 0.15);
}

.platform-badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.platform-badge.clean {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.platform-badge.banned {
    background: rgba(244, 67, 54, 0.2);
    color: #F44336;
}

.platform-badge.unknown {
    background: rgba(158, 158, 158, 0.15);
    color: #9e9e9e;
}

.ban-details {
    width: 100%;
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid;
    font-size: 13px;
}

.ban-details.yooma-ban {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

.ban-details.fearproject-ban {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
    color: #fcd34d;
}

.ban-title {
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 14px;
}

.ban-reason {
    margin-bottom: 4px;
}

.ban-expires,
.ban-admin,
.ban-created,
.ban-count {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}

@media (max-width: 768px) {
    .account-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-buttons {
        justify-content: center;
    }

    .account-stats {
        justify-content: center;
    }
}

/* Пустой список аккаунтов */
.accounts-empty {
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
    padding: 40px 20px;
}

/* ==================== Правки интерфейса (19.10.2026) ==================== */

/* Страница скроллится целиком, футер не перекрывает контент */
body {
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

.container {
    height: auto;
    min-height: 100vh;
    overflow: visible;
}

.main-content {
    overflow: visible;
}

.footer {
    margin-top: auto;
}

/* Текстовая страница: ограничиваем ширину для читаемости */
.content-page {
    max-width: 1040px;
}

/* Две колонки вместо трёх (третья всё равно пустая) и карточки во всю ширину колонки */
.content-grid {
    grid-template-columns: repeat(2, 1fr);
}

.content-grid .feature-list {
    grid-template-columns: 1fr;
}

@media (max-width: 768px) {
    .content-page {
        padding: 12px 14px;
    }

    /* На телефоне двухколоночная сетка сжимает текст до пары слов в строке */
    .content-grid {
        grid-template-columns: 1fr;
    }

    /* Шапка на телефоне: логотип и навигация в столбик, иначе кнопки уезжают за экран */
    .header-content {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 10px;
    }

    .header-title-section {
        justify-self: center;
        align-items: center;
    }

    .nav-buttons {
        justify-self: center;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .info-tooltip {
        min-width: 0;
        max-width: calc(100vw - 40px);
    }
}

/* ==================== Matte-поверхности и доступность (20.10.2026) ==================== */
/* Ориентир — тёмные дашборды: мягкая тень вместо тяжёлой, уважаем «меньше движения»,
   dvh вместо vh (учитывает панели мобильного браузера). */
:root {
    --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.24);
}

.content-section,
.tech-item,
.account-card {
    border-radius: 14px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

@supports (height: 100dvh) {
    body,
    .container {
        min-height: 100dvh;
    }
}
