:root {
    --background-primary: #0F121B;
    --background-secondary: #1a1e2a;
    --background-card: #161b26;
    --text-primary: #c4ad70;
    --text-secondary: #8a7a55;
    --text-muted: #a8956b;
    --text-white: #ffffff;
    --border-color: rgba(196, 173, 112, 0.2);
    --accent: #c4ad70;
    --accent-hover: #d4bd80;
    --success: #4ade80;
    --warning: #fbbf24;
    --danger: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-primary);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.stats-main *,
.stats-container *,
.stats-card *,
.stats-footer * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
}

.stats-main a,
.stats-main button,
.stats-footer a,
.stats-footer button {
    cursor: pointer !important;
}

.stats-main {
    min-height: calc(100vh - 200px);
    padding: 4rem 1rem;
}

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

.stats-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out;
}

.stats-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stats-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.stats-overview {
    margin-bottom: 4rem;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.overview-card {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.overview-card:nth-child(1) { animation-delay: 0.1s; }
.overview-card:nth-child(2) { animation-delay: 0.2s; }
.overview-card:nth-child(3) { animation-delay: 0.3s; }
.overview-card:nth-child(4) { animation-delay: 0.4s; }

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
}

.overview-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.overview-icon i {
    font-size: 1.5rem;
    color: var(--background-primary);
}

.overview-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.overview-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stats-content {
    margin-bottom: 4rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.stats-card {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.stats-card:nth-child(1) {
    animation-delay: 0.5s;
}

.stats-card:nth-child(2) {
    animation-delay: 0.6s;
}

.stats-card:nth-child(3) {
    animation-delay: 0.7s;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
}

.stats-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.stats-card-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-white);
}

.stats-period {
    background: rgba(196, 173, 112, 0.1);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.detection-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detection-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detection-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detection-type {
    color: var(--text-white);
    font-weight: 500;
}

.detection-count {
    color: var(--accent);
    font-weight: 600;
}

.detection-bar {
    height: 8px;
    background: var(--background-primary);
    border-radius: 4px;
    overflow: hidden;
}

.detection-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-radius: 4px;
    width: 0%;
    transition: width 1s ease-out;
}

.performance-metrics {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-label {
    color: var(--text-white);
    font-weight: 500;
    flex: 1;
}

.metric-value {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: flex-end;
}

.metric-value span {
    color: var(--accent);
    font-weight: 600;
    min-width: 60px;
    text-align: right;
}

.metric-bar {
    width: 100px;
    height: 6px;
    background: var(--background-primary);
    border-radius: 3px;
    overflow: hidden;
}

.metric-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--success) 0%, var(--accent) 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 0.5s ease-out;
}

.metric-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.metric-indicator.excellent {
    background: var(--success);
}

.metric-indicator.good {
    background: var(--accent);
}

.metric-indicator.warning {
    background: var(--warning);
}

.metric-indicator.danger {
    background: var(--danger);
}

.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(196, 173, 112, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: rgba(196, 173, 112, 0.1);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon.aimbot {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.activity-icon.speed {
    background: rgba(251, 191, 36, 0.2);
    color: var(--warning);
}

.activity-icon.fly {
    background: rgba(74, 222, 128, 0.2);
    color: var(--success);
}

.activity-icon i {
    font-size: 1rem;
}

.activity-content {
    flex: 1;
}

.activity-title {
    color: var(--text-white);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.activity-details {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.activity-time {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.stats-footer-info {
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 4rem;
}

.footer-info-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-item h4 {
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.info-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.stats-footer {
    background: var(--background-primary);
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: auto;
}

.stats-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

.stats-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.stats-footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.stats-footer-logo {
    max-width: 200px;
    height: auto;
    flex-shrink: 0;
}

.stats-footer-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 4px;
}

.stats-footer-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.stats-footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.stats-footer-links a:hover {
    color: var(--text-primary);
}

.stats-footer-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-primary);
    transition: width 0.3s ease;
}

.stats-footer-links a:hover::after {
    width: 100%;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--text-primary);
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .stats-main {
        padding: 2rem 1rem;
    }

    .stats-header h1 {
        font-size: 2.5rem;
    }

    .stats-header p {
        font-size: 1.1rem;
    }

    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .overview-card {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stats-card {
        padding: 1.5rem;
    }

    .stats-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .metric-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .metric-value {
        justify-content: flex-start;
    }

    .footer-info-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stats-footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .stats-footer-brand {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        min-width: auto;
    }

    .stats-footer-links {
        justify-content: center;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .stats-main {
        padding: 1.5rem 0.5rem;
    }

    .stats-header h1 {
        font-size: 2rem;
    }

    .overview-grid {
        grid-template-columns: 1fr;
    }

    .overview-card {
        padding: 1.25rem;
    }

    .overview-content h3 {
        font-size: 1.5rem;
    }

    .stats-card {
        padding: 1.25rem;
    }

    .activity-feed {
        max-height: 300px;
    }

    .activity-item {
        padding: 0.75rem;
    }

    .stats-footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}