* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fredoka One', cursive;
    background: linear-gradient(135deg, #0a0a2a 0%, #1a0033 100%);
    color: #fff;
    min-height: 100vh;
}

.neon-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(255,0,255,0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

header {
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 2px solid #ff00ff;
    box-shadow: 0 0 20px rgba(255,0,255,0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo h1 {
    font-size: 1.8rem;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(255,0,255,0.5);
}

nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.1);
}

nav a:hover {
    background: #ff00ff;
    box-shadow: 0 0 15px #ff00ff;
    transform: translateY(-2px);
}

main {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    min-height: 70vh;
}

.tool-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(255,0,255,0.3);
    box-shadow: 0 0 30px rgba(0,255,255,0.1);
}

.btn {
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    border: none;
    padding: 12px 30px;
    font-family: 'Fredoka One', cursive;
    font-size: 1.2rem;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255,0,255,0.8);
}

.result {
    font-size: 3rem;
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(0,0,0,0.5);
    border-radius: 20px;
    animation: glow 1.5s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 5px #ff00ff; }
    to { text-shadow: 0 0 20px #00ffff; }
}

.ad-container {
    margin: 2rem 0;
    padding: 1rem;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    text-align: center;
    min-height: 100px;
}

.chess-board {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    max-width: 600px;
    margin: 0 auto;
    border: 2px solid #ff00ff;
}

.chess-square {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.chess-square.light {
    background: #f0d9b5;
}

.chess-square.dark {
    background: #b58863;
}

.chess-square.selected {
    box-shadow: inset 0 0 0 3px #ff00ff;
}

footer {
    text-align: center;
    padding: 2rem;
    background: rgba(0,0,0,0.8);
    margin-top: 3rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: #ff00ff;
    text-decoration: none;
}

/* Legal pages styling */
.legal-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    border-left: 4px solid #ff00ff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
}

.legal-content h2 {
    color: #ff00ff;
    font-size: 2rem;
    margin-top: 0;
    border-bottom: 2px solid #00ffff;
    display: inline-block;
    padding-bottom: 5px;
}

.legal-content h3 {
    color: #00ffff;
    margin-top: 1.5rem;
    font-size: 1.3rem;
}

.legal-content p, .legal-content li {
    color: #e0e0e0;
    line-height: 1.6;
}

.legal-content ul {
    color: #e0e0e0;
    padding-left: 1.5rem;
}

.legal-content a {
    color: #ff00ff;
    text-decoration: none;
}

.legal-content a:hover {
    color: #00ffff;
    text-decoration: underline;
}

.legal-content strong {
    color: #ffff00;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }
    nav {
        justify-content: center;
    }
    .result {
        font-size: 2rem;
    }
}