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

:root {
    --pixel-bg: #0f0f23;
    --pixel-primary: #00ff41;
    --pixel-secondary: #ff00ff;
    --pixel-accent: #00d9ff;
    --pixel-text: #e0e0e0;
    --pixel-card: #1a1a2e;
    --pixel-border: #2d2d44;
    --pixel-featured: #ffd700;
    --pixel-success: #4ade80;
}

body {
    font-family: 'Press Start 2P', monospace;
    background: var(--pixel-bg);
    color: var(--pixel-text);
    line-height: 1.8;
    font-size: clamp(10px, 1vw, 12px);
    overflow-x: hidden;
    position: relative;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse at center, rgba(15, 15, 35, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.stars::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 200%;
    background-image:
        radial-gradient(circle, white 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.8) 1px, transparent 1px),
        radial-gradient(circle, white 2px, transparent 2px);
    background-size: 200px 200px, 300px 300px, 500px 500px;
    background-position: 0 0, 100px 100px, 250px 250px;
    animation: stars-move 50s linear infinite, twinkle 3s ease-in-out infinite;
    opacity: 0.8;
}

.stars::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle, var(--pixel-accent) 1px, transparent 1px),
        radial-gradient(circle, var(--pixel-primary) 1px, transparent 1px),
        radial-gradient(circle, var(--pixel-secondary) 1px, transparent 1px);
    background-size: 800px 800px, 1000px 1000px, 1200px 1200px;
    background-position: 50px 50px, 200px 200px, 400px 400px;
    animation: twinkle 4s ease-in-out infinite alternate;
    opacity: 0.4;
}

@keyframes stars-move {
    from { transform: translateY(0); }
    to { transform: translateY(-1000px); }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
}

.planet {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.08;
    filter: blur(1px);
}

.planet-1 {
    width: 30px;
    height: 30px;
    background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.3), rgba(200, 200, 255, 0.2), rgba(100, 100, 150, 0.1));
    top: 20%;
    right: 15%;
    animation: float 80s ease-in-out infinite;
}

.planet-2 {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.3), rgba(180, 180, 200, 0.2), rgba(90, 90, 120, 0.1));
    bottom: 30%;
    left: 10%;
    animation: float 100s ease-in-out infinite reverse;
}

.planet-3 {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.3), rgba(220, 220, 255, 0.2), rgba(120, 120, 160, 0.1));
    top: 60%;
    right: 20%;
    animation: float 120s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(10px, -15px);
    }
    50% {
        transform: translate(-5px, -25px);
    }
    75% {
        transform: translate(-15px, -10px);
    }
}

.nebula {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
}

.nebula-1 {
    background: radial-gradient(circle, rgba(255, 0, 255, 0.4), rgba(138, 43, 226, 0.2), transparent);
    top: 5%;
    left: 10%;
    opacity: 0.15;
    animation: pulse 15s ease-in-out infinite, drift 40s ease-in-out infinite;
}

.nebula-2 {
    background: radial-gradient(circle, rgba(0, 255, 65, 0.4), rgba(0, 200, 100, 0.2), transparent);
    bottom: 10%;
    right: 10%;
    opacity: 0.15;
    animation: pulse 18s ease-in-out infinite reverse, drift 50s ease-in-out infinite reverse;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.2;
        transform: scale(1.2);
    }
}

@keyframes drift {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(30px, -40px);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    padding: 60px 0 40px;
    background: linear-gradient(180deg, rgba(0,255,65,0.1) 0%, transparent 100%);
}

.pixel-title {
    font-size: clamp(20px, 3vw, 32px);
    color: var(--pixel-primary);
    text-shadow:
        4px 4px 0 rgba(0,255,65,0.3),
        0 0 20px var(--pixel-primary);
    margin-bottom: 20px;
    letter-spacing: 2px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 4px 4px 0 rgba(0,255,65,0.3), 0 0 20px var(--pixel-primary); }
    to { text-shadow: 4px 4px 0 rgba(0,255,65,0.3), 0 0 30px var(--pixel-primary), 0 0 40px var(--pixel-primary); }
}

.pixel-bracket {
    color: var(--pixel-accent);
}

.subtitle {
    font-size: 12px;
    color: var(--pixel-accent);
    margin-bottom: 30px;
}

.pixel-divider {
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        var(--pixel-primary) 0px,
        var(--pixel-primary) 10px,
        transparent 10px,
        transparent 20px
    );
    margin: 0 auto;
    max-width: 600px;
}

.search-section {
    margin: -10px 0 20px;
    display: flex;
    justify-content: center;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.pixel-input {
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    width: 100%;
    padding: 15px 50px 15px 20px;
    background: var(--pixel-card);
    color: var(--pixel-primary);
    border: 4px solid var(--pixel-border);
    box-shadow: 6px 6px 0 rgba(0,0,0,0.5);
    outline: none;
    transition: all 0.2s;
}

.pixel-input::placeholder {
    color: var(--pixel-border);
}

.pixel-input:focus {
    border-color: var(--pixel-primary);
    box-shadow: 6px 6px 0 rgba(0,0,0,0.5), 0 0 20px rgba(0,255,65,0.3);
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Press Start 2P', monospace;
    font-size: 16px;
    padding: 8px 12px;
    background: var(--pixel-secondary);
    color: white;
    border: 3px solid var(--pixel-secondary);
    cursor: pointer;
    transition: all 0.1s;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.5);
}

.search-btn:hover {
    background: transparent;
    color: var(--pixel-secondary);
}

.search-btn.hidden {
    display: none;
}

.filter-bar {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 40px 0;
    padding: 20px;
}

.pixel-btn {
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    padding: 12px 20px;
    background: var(--pixel-card);
    color: var(--pixel-text);
    border: 3px solid var(--pixel-border);
    cursor: pointer;
    position: relative;
    transition: all 0.1s;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
}

.pixel-btn:hover {
    background: var(--pixel-border);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0,0,0,0.5);
}

.pixel-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

.pixel-btn.active {
    background: var(--pixel-primary);
    color: var(--pixel-bg);
    border-color: var(--pixel-primary);
    box-shadow: 0 0 20px var(--pixel-primary);
}

.domains-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.domain-card {
    background: var(--pixel-card);
    border: 4px solid var(--pixel-border);
    padding: 25px;
    position: relative;
    transition: all 0.2s;
    box-shadow: 8px 8px 0 rgba(0,0,0,0.5);
    animation: fadeIn 0.5s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.domain-card:hover {
    border-color: var(--pixel-primary);
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0 rgba(0,0,0,0.5);
}

.domain-card.featured {
    border-color: var(--pixel-featured);
}

.domain-name {
    font-size: clamp(14px, 1.2vw, 18px);
    color: var(--pixel-accent);
    margin-bottom: 15px;
    word-break: break-all;
}

.domain-card.featured .domain-name {
    color: var(--pixel-featured);
}

.domain-tld {
    display: inline-block;
    padding: 4px 8px;
    background: var(--pixel-border);
    color: var(--pixel-secondary);
    font-size: 8px;
    margin-bottom: 15px;
    border: 2px solid var(--pixel-secondary);
    width: fit-content;
}

.domain-description {
    font-size: 9px;
    line-height: 1.6;
    color: var(--pixel-text);
    margin-bottom: 20px;
    flex-grow: 1;
}

.domain-btn {
    font-family: 'Press Start 2P', monospace;
    width: 100%;
    padding: 12px;
    background: var(--pixel-primary);
    color: var(--pixel-bg);
    border: 3px solid var(--pixel-primary);
    cursor: pointer;
    font-size: 10px;
    transition: all 0.1s;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
}

.domain-btn:hover {
    background: transparent;
    color: var(--pixel-primary);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0,0,0,0.5);
}

.domain-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

.cta-section {
    margin: 80px 0;
    display: flex;
    justify-content: center;
}

.pixel-box {
    background: var(--pixel-card);
    border: 4px solid var(--pixel-primary);
    padding: 40px;
    text-align: center;
    max-width: 600px;
    box-shadow:
        8px 8px 0 rgba(0,0,0,0.5),
        0 0 30px rgba(0,255,65,0.3);
}

.cta-title {
    font-size: 18px;
    color: var(--pixel-primary);
    margin-bottom: 20px;
}

.cta-text {
    font-size: 11px;
    margin-bottom: 30px;
    color: var(--pixel-text);
}

.pixel-btn-large {
    display: inline-block;
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    padding: 15px 30px;
    background: var(--pixel-secondary);
    color: white;
    border: 4px solid var(--pixel-secondary);
    text-decoration: none;
    transition: all 0.1s;
    box-shadow: 6px 6px 0 rgba(0,0,0,0.5);
}

.pixel-btn-large:hover {
    background: transparent;
    color: var(--pixel-secondary);
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 rgba(0,0,0,0.5);
}

.pixel-btn-large:active {
    transform: translate(2px, 2px);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
}

.footer {
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}

.footer-contact {
    font-size: 11px;
    color: var(--pixel-text);
    margin-top: 20px;
    margin-bottom: 10px;
}

.footer-contact a {
    color: var(--pixel-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact a:hover {
    color: var(--pixel-accent);
    text-shadow: 0 0 10px var(--pixel-accent);
}

.footer p {
    font-size: 9px;
    color: var(--pixel-border);
    margin-top: 10px;
}

.hidden {
    display: none !important;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.modal-content {
    background: var(--pixel-card);
    border: 4px solid var(--pixel-primary);
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow:
        8px 8px 0 rgba(0,0,0,0.5),
        0 0 30px rgba(0,255,65,0.3);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-title {
    font-size: 16px;
    color: var(--pixel-primary);
    margin-bottom: 20px;
    text-align: center;
}

.modal-domain {
    font-size: 10px;
    color: var(--pixel-accent);
    margin-bottom: 25px;
    text-align: center;
}

.modal-text {
    font-size: 10px;
    color: var(--pixel-text);
    margin-bottom: 15px;
    text-align: center;
}

.email-display {
    background: var(--pixel-bg);
    border: 3px solid var(--pixel-border);
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.email-text {
    font-size: 11px;
    color: var(--pixel-primary);
    word-break: break-all;
    text-align: center;
}

.copy-btn {
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    padding: 10px 20px;
    background: var(--pixel-accent);
    color: var(--pixel-bg);
    border: 3px solid var(--pixel-accent);
    cursor: pointer;
    transition: all 0.1s;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
}

.copy-btn:hover {
    background: transparent;
    color: var(--pixel-accent);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0,0,0,0.5);
}

.copy-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

.modal-close-btn {
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    width: 100%;
    padding: 12px;
    background: var(--pixel-secondary);
    color: white;
    border: 3px solid var(--pixel-secondary);
    cursor: pointer;
    transition: all 0.1s;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
}

.modal-close-btn:hover {
    background: transparent;
    color: var(--pixel-secondary);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0,0,0,0.5);
}

.modal-close-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

@media (max-width: 1200px) {
    .domains-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .domains-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pixel-title {
        font-size: 20px;
    }

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

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .pixel-box {
        padding: 30px 20px;
    }

    .cta-title {
        font-size: 14px;
    }
}
