@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=DM+Sans:wght@300;400;500&display=swap');

:root {
    --bg-color: #0a0b0f;
    --card-bg: #13141a;
    --text-color: #fff;
    --tomi-red: #ff4d4d;
    --atum-blue: #00d4ff;
    --accent: #00ff8c;
    --danger-bg: rgba(255, 77, 77, 0.08);
    --danger-border: rgba(255, 77, 77, 0.3);
    --danger-text: #ff4d4d;
    --glass-border: rgba(255, 255, 255, 0.07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    /* perspective: 1000px; -- Debug: A 3D perspektíva eltolhatja a hitboxot */
}

/* --- Háttér effektusok (404 stílus) --- */
.bg-grid {
    position: fixed; inset: 0; z-index: -1;
    background-image: linear-gradient(rgba(0,255,140,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,255,140,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}
.glow { position: fixed; border-radius: 50%; filter: blur(120px); pointer-events: none; z-index: -1; }
.glow-1 { width: 500px; height: 500px; top: -150px; left: -150px; background: rgba(0,255,140,0.05); }
.glow-2 { width: 500px; height: 500px; bottom: -150px; right: -150px; background: rgba(100,60,255,0.06); }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.05; }
    50% { opacity: 0.1; }
}

@keyframes rotate-3d {
    0% { transform: rotateY(0deg) rotateX(0deg); }
    100% { transform: rotateY(360deg) rotateX(360deg); }
}

/* 3D tilt effect on hover */
.tilt-effect {
    transform-style: preserve-3d;
    transition: transform 0.3s ease-out;
}

.tilt-effect:hover {
    transform: rotateX(5deg) rotateY(5deg);
}

/* 3D floating elements */
.float-3d {
    animation: float3d 4s ease-in-out infinite;
}

@keyframes float3d {
    0%, 100% { transform: translateZ(0) translateY(0); }
    25% { transform: translateZ(20px) translateY(-5px); }
    50% { transform: translateZ(0) translateY(-10px); }
    75% { transform: translateZ(-20px) translateY(-5px); }
}

/* 3D card flip */
.flip-card {
    perspective: 1000px;
}

.flip-card-inner {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    backface-visibility: hidden;
}

.flip-card-back {
    transform: rotateY(180deg);
}

/* Hero section styles */
.hero-section {
    text-align: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0,255,140,0.1);
    border: 1px solid rgba(0,255,140,0.3);
    border-radius: 20px;
    font-size: 14px;
    color: #00ff8c;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-color);
}

.btn-primary:hover {
    background: #00e67e;
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0,255,140,0.05);
}

.hero-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 0 40px rgba(0,255,140,0.3);
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 2rem;
}

.logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 2rem;
    border-radius: 20px;
}

/* Footer links */
.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: rgba(255,255,255,0.5);
    margin: 0 0.5rem;
}

.footer-links a:hover {
    color: var(--accent);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 3rem;
}

nav {
    padding: 18px 32px;
    background: rgba(10,11,15,0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

nav a, footer a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.logo-text {
    font-family: 'Rajdhani', sans-serif;
    font-weight: bold;
    font-size: 20px;
    transition: color 0.3s;
}

.logo-text span {
    color: var(--accent);
}

nav a:hover { color: var(--accent); }

.hosts {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    margin-top: 4rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 30px rgba(0,255,140,0.2);
}

.about-section {
    margin: 5rem 0;
}

.about-text {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-text strong {
    color: var(--accent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    transition: transform 0.3s, background 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.05);
}

.feature-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 0.5rem;
}

.feature-item h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}

.streamer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.streamer-badge {
    padding: 4px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

.streamer-bio {
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.streamer-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-link {
    padding: 8px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 13px;
    display: inline-flex; /* Ensure flex behavior for icon alignment */
    align-items: center; /* Vertically center icon and text */
    transition: all 0.2s;
}

.btn-link i {
    margin-right: 8px;
}

.btn-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0,255,140,0.05);
    transform: translateY(-2px);
}

.cta-section {
    margin: 5rem 0;
}

.cta-card {
    text-align: center;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, rgba(0,255,140,0.1), rgba(100,60,255,0.1));
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.cta-text {
    color: rgba(255,255,255,0.6);
    margin-bottom: 2rem;
}

/* Footer redesign */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding: 3rem 0;
}

.footer-section h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    line-height: 1.6;
}

.footer-section .footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-section .footer-links a {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.3);
    font-size: 13px;
}

/* Privacy and TOS page styles */
.intro-text {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.privacy-section, .tos-section {
    margin: 2.5rem 0;
    padding: 2rem;
    background: rgba(255,255,255,0.02);
    border-radius: 16px;
    border-left: 4px solid rgba(0,255,140,0.3);
}

.privacy-section h2, .tos-section h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.privacy-section p, .tos-section p {
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.privacy-list, .tos-list {
    list-style: none;
    padding: 0;
}

.privacy-list li, .tos-list li {
    padding: 0.75rem 0;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.privacy-list li:last-child, .tos-list li:last-child {
    border-bottom: none;
}

.privacy-list li strong, .tos-list li strong {
    color: var(--accent);
}

.privacy-footer, .tos-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.last-updated {
    color: rgba(255,255,255,0.4);
    font-size: 13px;
    margin-bottom: 1.5rem;
}

.card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 24px;
    width: 100%;
    max-width: 450px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
    /* transform-style: preserve-3d; -- Debug: Okozhat kattintási hibákat */
    z-index: 5; /* Ensure card is above background elements */
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,255,140,0.5), transparent);
    background-size: 200% 100%;
    animation: cardTopShimmer 4s linear infinite;
}
@keyframes cardTopShimmer {
    0% { background-position: 0% 0%; }
    100% { background-position: -200% 0%; }
}

.card:hover {
    /* transform: translateY(-10px) rotateX(5deg) rotateY(-5deg); -- Debug: A rotáció eltolja a kattintható területet */
    transform: translateY(-10px);
    border-color: rgba(0,255,140,0.3);
    box-shadow: 0 50px 120px rgba(0,255,140,0.15);
}

.card.floating {
    animation: float 3s ease-in-out infinite, card3d 6s ease-in-out infinite;
}

@keyframes card3d {
    0%, 100% { transform: translateY(0) rotateX(0deg) rotateY(0deg); }
    25% { transform: translateY(-5px) rotateX(2deg) rotateY(-2deg); }
    50% { transform: translateY(-8px) rotateX(0deg) rotateY(0deg); }
    75% { transform: translateY(-5px) rotateX(-2deg) rotateY(2deg); }
}

.card.tomi { border: 1px solid rgba(255,77,77,0.3); }
.card.tomi::before { background: linear-gradient(90deg, transparent, rgba(255,77,77,0.5), transparent); }
.card.tomi h2 { color: var(--tomi-red); }
.card.tomi .btn { background: var(--tomi-red); }
.card.tomi:hover { box-shadow: 0 50px 120px rgba(255, 77, 77, 0.2); border-color: rgba(255,77,77,0.5); }

.card.atum { border: 1px solid rgba(0,212,255,0.3); }
.card.atum::before { background: linear-gradient(90deg, transparent, rgba(0,212,255,0.5), transparent); }
.card.atum h2 { color: var(--atum-blue); }
.card.atum:hover { box-shadow: 0 50px 120px rgba(0, 212, 255, 0.2); border-color: rgba(0,212,255,0.5); }

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }
    
    .hero-section {
        padding: 4rem 1rem 2rem;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hosts {
        gap: 1.5rem;
    }
    
    .card {
        width: 100%;
        max-width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .streamer-links {
        flex-direction: column;
    }
    
    .btn-link {
        width: 100%;
        text-align: center;
    }
}

/* ===================================== */
/* Legal Pages Specific Styles (Privacy, TOS) */
/* ===================================== */
.legal-hero {
    text-align: center;
    padding: 4rem 2rem 2rem;
    position: relative;
    z-index: 1;
}
.legal-badge {
    display: inline-block;
    padding: 5px 16px;
    background: rgba(0,255,140,0.08);
    border: 1px solid rgba(0,255,140,0.2);
    border-radius: 20px;
    font-size: 12px;
    color: #00ff8c;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.legal-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}
.legal-updated {
    font-size: 13px;
    color: rgba(255,255,255,0.25);
    margin-bottom: 0;
}

.card.legal-card {
    width: 100%;
    max-width: 780px;
    margin: 2rem auto 5rem;
}

.legal-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    scroll-margin-top: 100px; /* Fix for sticky header overlap */
    opacity: 0;
    transform: translateY(14px);
    animation: legalSectionIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.legal-section:last-of-type { border-bottom: none; margin-bottom: 0; }
.legal-section:nth-of-type(1) { animation-delay: 0.05s; }
.legal-section:nth-of-type(2) { animation-delay: 0.12s; }
.legal-section:nth-of-type(3) { animation-delay: 0.19s; }
.legal-section:nth-of-type(4) { animation-delay: 0.26s; }
.legal-section:nth-of-type(n+5) { animation-delay: 0.32s; }
@keyframes legalSectionIn { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
    .legal-section, .card::before { animation: none; opacity: 1; transform: none; }
}

.legal-section h2 {
    font-family: 'Rajdhani', sans-serif;
    position: relative;
    font-size: 20px;
    font-weight: 700;
    color: #00ff8c;
    margin-bottom: 0.9rem;
    display: flex; /* Added for consistency with privacy.html emojis */
    align-items: center; /* Added for consistency with privacy.html emojis */
    gap: 8px; /* Added for consistency with privacy.html emojis */
}

.legal-section p {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    line-height: 1.8;
    margin-bottom: 0.7rem;
}
.legal-section p:last-child { margin-bottom: 0; }

.legal-list {
    list-style: none;
    padding: 0;
    margin: 0.8rem 0 0;
}
.legal-list li {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
    padding: 6px 0 6px 20px;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.legal-list li:last-child { border-bottom: none; }
.legal-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #00ff8c;
    font-size: 11px;
    top: 8px;
}
.legal-list li strong { color: rgba(255,255,255,0.8); }

.ok-box {
    background: rgba(0,255,140,0.04);
    border: 1px solid rgba(0,255,140,0.15);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin-top: 1rem;
}

.ok-box p { margin: 0 !important; color: rgba(255,255,255,0.6) !important; font-size: 13px !important; }

.highlight-box, .warn-box { /* Combined for common styles */
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin-top: 1rem;
}
.highlight-box {
    background: rgba(0,255,140,0.04);
    border: 1px solid rgba(0,255,140,0.12);
}
.highlight-box p { color: rgba(255,255,255,0.6) !important; margin: 0 !important; font-size: 13px !important; }
.highlight-box strong { color: #00ff8c !important; }
.warn-box {
    background: rgba(255,77,77,0.04);
    border: 1px solid rgba(255,77,77,0.15);
}
.warn-box p { color: rgba(255,200,200,0.6) !important; margin: 0 !important; font-size: 13px !important; }
.warn-box strong { color: #ff8080 !important; }

.legal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    position: relative;
    z-index: 10;
}
.legal-footer p { font-size: 12px; color: rgba(255,255,255,0.2); margin: 0; }

.btn-small-footer { /* New class for smaller footer buttons */
    padding: 10px 20px;
    font-size: 14px;
    margin-top: 0;
}

@media(max-width:640px){
    .legal-card{padding:1.8rem 1.5rem}
    .legal-title{font-size:30px}
}

.btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
    font-family: 'Rajdhani', sans-serif;
    font-size: 17px;
    letter-spacing: 0.2px;
    transform-style: preserve-3d;
}

.btn:hover {
    transform: translateY(-3px) rotateX(5deg);
    box-shadow: 0 15px 30px rgba(0,255,140,0.3);
}

.btn:active {
    transform: translateY(-1px) rotateX(2deg);
}

/* Admin Page Specific Styles */
.admin-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1; /* Take up available space */
    padding: 2rem;
}


.admin-login-card {
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.admin-login-card h1 {
    margin-bottom: 1rem;
    font-family: 'Rajdhani', sans-serif;
    color: var(--accent);
}


.admin-login-card p {
    color: rgba(255,255,255,0.4);
    margin-bottom: 2rem;
}

.admin-input {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: var(--card-bg);
    color: var(--text-color);
    width: calc(100% - 2rem); /* Adjust for padding */
    margin-bottom: 1rem;
    font-size: 1rem;
}


.admin-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,255,140,0.2);
}

.admin-btn {
    background: var(--accent);
    color: var(--bg-color);
    font-family: 'Rajdhani', sans-serif;
}

.results-main-title {
    text-align: center;
    margin-bottom: 3rem;
    font-family: 'Rajdhani', sans-serif;
    color: var(--accent);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.admin-result-card {
    text-align: left;
}

.admin-result-title {
    color: var(--accent);
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
    font-family: 'Rajdhani', sans-serif;
}

.admin-result-list {
    list-style: none;
    padding: 0;
}

.admin-result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.admin-result-option {
    color: rgba(255,255,255,0.7);
}

.admin-result-count {
    color: var(--accent);
}

.results-footer {
    text-align: center;
    margin-top: 3rem;
}

footer {
    margin-top: auto; /* Push footer to bottom */
    padding: 2rem;
    font-size: 0.9rem;
    opacity: 0.7;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

input[type="password"] {
    padding: 0.5rem;
    border-radius: 5px;
    border: none;
    margin-right: 1rem;
}

/* ===================================== */
/* MODERN LAYOUT */
/* ===================================== */

.hero-grid{
    display:grid;
    grid-template-columns: 380px 1fr;
    align-items:center;
    gap:5rem;
    text-align:left;
    min-height:70vh;
}

.hero-content{
    display:flex;
    flex-direction:column;
}

.hero-image{
    display:flex;
    justify-content:center;
}

.hero-image .logo{
    width:100%;
    max-width:320px;
}

.stats-row{
    display:flex;
    gap:2rem;
    margin-top:2rem;
    flex-wrap:wrap;
}

.stat{
    padding:1rem 1.5rem;
    background:rgba(255,255,255,0.03);
    border:1px solid rgba(255,255,255,0.06);
    border-radius:14px;
    text-align:center;
    min-width:120px;
}

.stat h3{
    color:var(--accent);
    font-size:1.5rem;
    margin-bottom:0.3rem;
}

.stat span{
    color:rgba(255,255,255,0.6);
    font-size:0.9rem;
}

.about-card{
    max-width:100%;
}

.hosts{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:2rem;
    margin-top:5rem;
}

.hosts .section-title{
    grid-column:1/-1;
}

.hosts .card{
    max-width:none;
    width:100%;
}

.cta-card{
    max-width:none;
    width:100%;
    padding:5rem;
}

@media(max-width:1000px){

    .hero-grid{
        grid-template-columns:1fr;
        text-align:center;
        gap:2rem;
    }

    .hero-content{
        align-items:center;
    }

    .hosts{
        grid-template-columns:1fr;
    }
    .stats-row{
        justify-content:center;
    }
}

/* Error Box for Admin Login */
.error-box {
    margin-top: 0.75rem;
    padding: 12px 16px;
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    border-radius: 12px;
    line-height: 1.5;
    color: var(--danger-text);
    font-size: 13px;
    text-align: center;
    display: none; /* Hidden by default */
}

/* --- Admin Dashboard Enhancements --- */
.admin-dashboard {
    padding-top: 2rem;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.admin-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.admin-stat-card {
    background: rgba(19, 20, 26, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.3s;
}

.admin-stat-card:hover {
    border-color: rgba(0, 255, 140, 0.3);
    background: rgba(0, 255, 140, 0.03);
}

.admin-stat-val {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    background: linear-gradient(180deg, #fff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-stat-lbl {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-section-title {
    text-align: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 2rem 0 1rem;
}

.admin-rank-badge {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
}

.rank-1 .admin-rank-badge { background: rgba(255, 215, 0, 0.2); color: #ffd700; border: 1px solid #ffd700; }
.rank-2 .admin-rank-badge { background: rgba(192, 192, 192, 0.2); color: #c0c0c0; border: 1px solid #c0c0c0; }
.rank-3 .admin-rank-badge { background: rgba(205, 127, 50, 0.2); color: #cd7f32; border: 1px solid #cd7f32; }

.admin-progress-bg {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.admin-progress-bar {
    height: 100%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-search-wrapper {
    position: relative;
    max-width: 400px;
    margin: 0 auto 2rem;
}

.admin-search-input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s;
}

.admin-search-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 255, 140, 0.05);
}

.admin-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.2);
    font-size: 18px;
}

/* Admin specific refinements */
.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 1rem;
}

/* Stars for Admin */
.stars-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.star {
  position: absolute;
  border-radius: 50%;
  background: #52ffad;
  animation: twinkle var(--dur, 3s) ease-in-out infinite var(--delay, 0s);
}
@keyframes twinkle {
  0%,100%{opacity:0.1;transform:scale(1)}
  50%{opacity:0.8;transform:scale(1.4)}
}

.logo-text span {
    color: var(--accent);
    text-shadow: 0 0 15px rgba(0, 255, 140, 0.4);
}

.results-main-title {
    text-shadow: 0 0 30px rgba(0, 255, 140, 0.2);
}

/* Table of Contents - Modernized */
.toc {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(5px);
}

.toc-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
    display: block;
    font-weight: 700;
}

.toc-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.toc-links a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.toc-links a::before {
    content: '→';
    margin-right: 12px;
    color: var(--accent);
    font-size: 12px;
    opacity: 0.3;
    transition: transform 0.2s;
}

.toc-links a:hover {
    background: rgba(0, 255, 140, 0.08);
    border-color: rgba(0, 255, 140, 0.3);
    color: #fff;
    transform: translateX(6px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.toc-links a:hover::before {
    opacity: 1;
    transform: translateX(2px);
}