body {
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.bg-grid {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 80%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 100%);
}

.crosshair {
    position: absolute;
    width: 10px;
    height: 10px;
}
.crosshair::before, .crosshair::after {
    content: '';
    position: absolute;
    background-color: #444;
}
.crosshair::before { width: 100%; height: 1px; top: 50%; left: 0; }
.crosshair::after { height: 100%; width: 1px; left: 50%; top: 0; }

.tl { top: -5px; left: -5px; }
.tr { top: -5px; right: -5px; }
.bl { bottom: -5px; left: -5px; }
.br { bottom: -5px; right: -5px; }

.glass-panel {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gradient-text {
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulse-glow {
    0% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
    100% { opacity: 0.4; transform: scale(1); }
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-glow {
    animation: pulse-glow 4s ease-in-out infinite;
}

.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-container::before, .marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, #000, transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, #000, transparent);
}

.marquee-content {
    display: inline-block;
    animation: scroll 30s linear infinite;
}

.model-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    margin: 0 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    font-size: 0.875rem;
    color: #ccc;
    transition: all 0.2s;
}

.model-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.code-tab-active {
    color: #fff;
    border-bottom: 2px solid #fff;
}

.code-tab-inactive {
    color: #888;
    border-bottom: 2px solid transparent;
}

.code-tab-inactive:hover {
    color: #ccc;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #000;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}
