:root {
    --primary: #ff3366;
    --primary-glow: rgba(255, 51, 102, 0.4);
    --accent: #bc1888;
    --bg-dark: #0a0510;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
    --font-main: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

/* Background Effects */
.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(188, 24, 136, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 51, 102, 0.15) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

.app-container {
    width: 100%;
    max-width: 600px;
    padding: 40px 20px;
    margin-bottom: 60px;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 40px;
}

.glow-text {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(220, 39, 67, 0.3);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.version-badge {
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    -webkit-text-fill-color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    letter-spacing: 0;
}

.subtitle {
    color: var(--text-dim);
    font-weight: 300;
}

/* UI Elements */
.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    margin-bottom: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.hidden {
    display: none;
}

/* Form Styles */
.input-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

input, textarea {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 18px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
}

.hint {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 6px;
    font-style: italic;
}

/* Buttons */
.primary-btn {
    width: 100%;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 14px;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
    margin-top: 10px;
    box-shadow: 0 10px 20px var(--primary-glow);
}

.primary-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.primary-btn:active {
    transform: translateY(0);
}

.secondary-btn {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Results Panel */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.results-header h2 {
    font-size: 1.25rem;
    color: var(--primary);
}

.code-wrapper {
    background: #000;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    overflow-x: auto;
    max-height: 250px;
}

pre {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: #00ffcc;
}

.instructions h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.instructions ol {
    margin-left: 20px;
    color: var(--text-dim);
}

.instructions li {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

kbd {
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: inherit;
    font-size: 0.8rem;
    color: white;
}

.app-footer {
    padding: 20px;
    color: var(--text-dim);
    font-size: 0.8rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    width: 100%;
}

@media (max-width: 480px) {
    .glow-text {
        font-size: 2.5rem;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
}
