:root {
    --primary-hue: 250;
    --primary: hsl(var(--primary-hue), 100%, 70%);
    --primary-glow: hsl(var(--primary-hue), 100%, 60%);
    --secondary: hsl(300, 100%, 60%);
    --bg-dark: #0f0c19;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Effects */
.background-gradients {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary), transparent 70%);
    top: -10%;
    left: -10%;
}

.orb-2 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--secondary), transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 50px); }
}

/* Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.glass-header {
    background: rgba(15, 12, 25, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 20px 0;
}

.glass-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.logo i {
    color: var(--primary);
    filter: drop-shadow(0 0 10px var(--primary));
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s, text-shadow 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* Main Content */
.hero-section {
    text-align: center;
    padding: 80px 0 60px;
    animation: fadeIn 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #b8b8ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Module Switcher */
.module-switcher {
    display: inline-flex;
    background: var(--glass-bg);
    padding: 6px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    margin-bottom: 40px;
}

.switch-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 12px 24px;
    border-radius: 40px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.switch-btn.active {
    background: linear-gradient(135deg, var(--primary), #6a4cff);
    color: white;
    box-shadow: 0 4px 20px rgba(124, 77, 255, 0.4);
}

.switch-btn:hover:not(.active) {
    color: var(--text-main);
}

/* Modules */
.app-module {
    display: none;
    animation: slideUp 0.5s ease-out;
}

.app-module.active-module {
    display: block;
}

/* Drop Zone */
.drop-zone {
    background: var(--glass-bg);
    border: 2px dashed var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 60px 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.drop-zone:hover, .drop-zone.drag-over {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.drop-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(124, 77, 255, 0.3));
}

.drop-zone h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.drop-zone p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.supported-formats span {
    display: inline-block;
    background: rgba(0,0,0,0.3);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 3px;
    border: 1px solid var(--glass-border);
}

/* Controls */
.controls-area {
    margin-top: 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 25px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.control-group label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-left: 5px;
}

.premium-select, .premium-input {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.premium-select:focus, .premium-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(124, 77, 255, 0.2);
}

.action-btn {
    background: linear-gradient(135deg, var(--primary), #6a4cff);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
    justify-content: center;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(124, 77, 255, 0.4);
}

.hidden {
    display: none !important;
}

/* File List */
.file-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.file-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 15px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: fadeIn 0.3s ease-out;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.file-name {
    font-weight: 500;
}

.file-size {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.file-status {
    font-size: 0.9rem;
    color: var(--primary);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Downloader Specific */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: var(--radius-lg);
    display: flex;
    gap: 15px;
}

#url-input {
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .glass-panel {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
    }
}
