:root {
    --bg-color: #0a0a0c;
    --card-bg: rgba(25, 25, 30, 0.7);
    --accent-primary: #00ff88;
    --accent-secondary: #00bdff;
    --text-main: #ffffff;
    --text-dim: #a0a0b0;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-blur: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 30%, rgba(0, 255, 136, 0.08), transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(0, 189, 255, 0.08), transparent 50%);
    z-index: -1;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

header {
    padding: 4rem 0 2rem;
    text-align: center;
}

.logo {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.logo span {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    color: var(--text-dim);
    font-size: 1.1rem;
    font-weight: 300;
}

/* Hero Section */
.hero-container {
    margin-bottom: 2rem;
}

.hero-image {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.hero-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.hero-content p {
    color: var(--text-dim);
}

/* Generator Card */
.generator-card {
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    margin: 1rem 0 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.step-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.step {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.step:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.step-number {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-primary);
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.8;
}

.step-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Tabs */
.tab-controls {
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.4rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: var(--transition);
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 500;
}

.custom-select {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
}

.custom-select:focus {
    outline: none;
    border-color: var(--accent-secondary);
}

/* Input Styles */
.drop-zone {
    display: block;
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--accent-primary);
    background: rgba(0, 255, 136, 0.05);
}

.drop-zone svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    stroke: var(--accent-primary);
}

.drop-zone span {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.drop-zone small {
    color: var(--text-dim);
}

.username-input {
    display: flex;
    gap: 0.5rem;
}

input[type="text"] {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    color: white;
    font-family: inherit;
    font-size: 1rem;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 0 2px rgba(0, 189, 255, 0.2);
}

button#fetch-skin {
    background: var(--accent-secondary);
    border: none;
    padding: 0 1.5rem;
    border-radius: 12px;
    color: black;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

button#fetch-skin:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 189, 255, 0.3);
}

/* Mob Grid */
.mob-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.mob-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.mob-item.selected {
    border-color: var(--accent-primary);
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-primary);
}

.mob-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.mob-actions button {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dim);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
}

.mob-actions button:hover {
    color: white;
    border-color: white;
}

/* Preview & CTA */
.preview-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.skin-preview-container {
    position: relative;
    width: 128px;
    height: 128px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

#skin-canvas {
    image-rendering: pixelated;
    width: 96px;
    height: 96px;
}

.preview-overlay {
    position: absolute;
    bottom: -1.5rem;
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-cta {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #000;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    justify-content: center;
}

.main-cta:hover:not(:disabled) {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.3);
}

.main-cta:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
}

/* Info Section */
.info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 20px;
}

.info-card h3 {
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.info-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-dim);
    font-size: 0.9rem;
}

.hidden {
    display: none;
}

.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    border-top-color: #000;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .info-section {
        grid-template-columns: 1fr;
    }
    
    .generator-card {
        padding: 1.5rem;
    }
    
    .logo {
        font-size: 2.2rem;
    }
}
