:root {
    --bg-page: #21242E;
    --card-bg: #181b24;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --accent-red: #EF5350;
    --font-main: 'Righteous', cursive, sans-serif;
}

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

body {
    background-color: var(--bg-page);
    background-image: radial-gradient(circle at 50% 0%, #2a2e3b 0%, #1c1e27 80%);
    background-attachment: fixed;
    color: var(--text-color);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 15px;
    -webkit-font-smoothing: antialiased;
}

/* Container Wrapper */
.main-wrapper {
    position: relative;
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
}

/* Peeking Mascot on Left Edge */
.peak {
    position: absolute;
    left: -78px;
    top: 75px;
    width: 88px;
    height: auto;
    z-index: 25;
    pointer-events: none;
    filter: drop-shadow(-4px 6px 10px rgba(0, 0, 0, 0.5));
    animation: peekFloat 3.5s ease-in-out infinite alternate;
}

@keyframes peekFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-5px) rotate(1.5deg); }
}

/* Main Card */
.main {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
    position: relative;
    z-index: 10;
}

/* Header with intro.png */
.header {
    background-image: url('img/intro.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 230px;
    position: relative;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.header-inner {
    background: rgba(0, 0, 0, 0.45);
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.header h1 {
    color: #ffffff;
    font-size: 2.3rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    margin: 0;
}

/* Secret / Hidden Download Navigation Bar (As in 1st version) */
.nav {
    background: #11131a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: 16px;
    width: 100%;
    transition: background 0.25s ease;
    cursor: pointer;
}

.nav a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.nav .item {
    width: 100%;
    height: 100%;
}

.nav:hover {
    background: #181b24;
}

/* Text Container */
.container {
    padding: 24px 35px;
}

.container p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-color);
}

.container p img {
    width: 20px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

/* Stats Section with bg.jpg */
.stats {
    background-image: url('img/bg.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.stats-inner {
    background: rgba(10, 13, 20, 0.72);
    backdrop-filter: blur(2px);
    padding: 28px 0;
}

.stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-col {
    flex: 1;
    text-align: center;
    padding: 10px 20px;
}

.stat-1 {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-col h1 {
    color: #ffffff;
    font-size: 2.6rem;
    line-height: 1;
    margin-bottom: 6px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.stat-col .stat-title {
    color: var(--accent-red);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Footer */
footer {
    background: #11131a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0 0 16px 16px;
    padding: 16px 20px;
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-muted);
}

footer #uptime {
    color: #ffffff;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.footer-copy {
    font-size: 0.82rem;
    color: #ffffff;
}

/* Responsive */
@media (max-width: 900px) {
    .peak {
        display: none;
    }
}

@media (max-width: 600px) {
    body {
        padding: 15px 10px;
    }

    .header {
        height: 180px;
    }

    .header h1 {
        font-size: 1.65rem;
    }

    .container {
        padding: 18px 20px;
    }

    .container p {
        font-size: 0.92rem;
    }

    .stat-col h1 {
        font-size: 2rem;
    }

    .stat-col .stat-title {
        font-size: 0.82rem;
    }
}

/* Verification Preloader (Overlay) */
.already-verified #ddos-preloader {
    display: none !important;
}

#ddos-preloader {
    position: fixed;
    inset: 0;
    background-color: #0b0e17;
    background-image: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.22), transparent 70%),
        radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.08), transparent 50%);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.45s ease;
}

#ddos-preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.ddos-card {
    background: rgba(17, 24, 39, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 40px 30px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(6, 182, 212, 0.1);
    position: relative;
    overflow: hidden;
}

.ddos-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #38bdf8, transparent);
}

.ddos-spinner-wrap {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ddos-spinner-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #38bdf8;
    border-right-color: #6366f1;
    animation: ddosSpin 1.1s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}

@keyframes ddosSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ddos-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.4);
}

.ddos-title {
    font-family: var(--font-main);
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 8px;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.ddos-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 22px;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ddos-progress {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 20px;
}

.ddos-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6, #38bdf8);
    border-radius: 999px;
    animation: ddosFill 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes ddosFill {
    0% { width: 0%; }
    50% { width: 60%; }
    80% { width: 90%; }
    100% { width: 100%; }
}

.ddos-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ddos-badge span {
    color: #38bdf8;
    font-family: var(--font-main);
}
