* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a0a0f 0%, #0d0d15 100%);
    color: #e0e0e0;
    min-height: 100vh;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1a1a2a; }
::-webkit-scrollbar-thumb { background: #ff3366; border-radius: 10px; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 51, 102, 0.2);
    z-index: 1000;
    padding: 12px 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon { font-size: 28px; filter: drop-shadow(0 0 10px #ff3366); }

.logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, #ff3366, #9933ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Hero */
.hero {
    margin-top: 80px;
    padding: 40px 24px;
    text-align: center;
}

.hero h1 {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #ff3366, #9933ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p { color: #888899; font-size: 18px; margin-top: 12px; }

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

/* Upload Area */
.upload-area {
    background: rgba(20, 20, 30, 0.6);
    border: 2px dashed #ff3366;
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 40px;
}

.upload-area:hover {
    border-color: #ff6699;
    background: rgba(255, 51, 102, 0.05);
    transform: scale(1.01);
}

.upload-icon { font-size: 64px; margin-bottom: 16px; }
.upload-area h3 { margin-bottom: 8px; }
.upload-area p { color: #666; font-size: 14px; }
input[type="file"] { display: none; }

/* Tabs */
.tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
    justify-content: center;
}

.tab-btn {
    padding: 12px 32px;
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid rgba(255, 51, 102, 0.3);
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.tab-btn.active {
    background: #ff3366;
    color: white;
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.5);
}

/* Settings Panel */
.settings-panel {
    background: #11111a;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 51, 102, 0.1);
}

.setting-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.setting-row label { font-weight: 600; min-width: 150px; }

input[type="range"] {
    flex: 1;
    min-width: 200px;
    height: 6px;
    -webkit-appearance: none;
    background: #333;
    border-radius: 10px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #ff3366;
    border-radius: 50%;
    cursor: pointer;
}

.quality-value {
    background: #ff3366;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.dimension-input {
    background: #1a1a2a;
    border: 1px solid #ff3366;
    padding: 8px 12px;
    border-radius: 8px;
    color: white;
    width: 100px;
}

/* Preview & Result */
.preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

.preview-card {
    background: #11111a;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 51, 102, 0.1);
}

.preview-card h3 {
    margin-bottom: 16px;
    color: #ff3366;
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-media {
    background: #0a0a0f;
    border-radius: 12px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
}

.preview-media img, .preview-media video {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
}

.file-info {
    font-size: 12px;
    color: #888899;
    margin-top: 8px;
}

.file-size {
    font-size: 14px;
    font-weight: bold;
    margin-top: 8px;
}

.original-size { color: #ff6666; }
.compressed-size { color: #66ff66; }
.save-percent { color: #ffcc00; }

/* Download Button */
.download-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ff3366, #9933ff);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
    text-decoration: none;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 51, 102, 0.3);
}

.download-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Progress Bar */
.progress-container {
    margin-top: 20px;
    display: none;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #333;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ff3366, #9933ff);
    transition: width 0.3s;
}

.progress-text {
    text-align: center;
    margin-top: 8px;
    font-size: 12px;
    color: #ff3366;
}

/* Admin Panel */
.admin-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #ff3366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    font-size: 24px;
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.5);
}

.admin-panel {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 300px;
    background: #0a0a0f;
    border: 2px solid #ff3366;
    border-radius: 16px;
    padding: 16px;
    z-index: 1001;
}

.admin-panel input {
    width: 100%;
    padding: 8px;
    margin: 8px 0;
    background: #1a1a2a;
    border: 1px solid #ff3366;
    color: white;
    border-radius: 8px;
}

.admin-panel button {
    width: 100%;
    padding: 10px;
    background: #ff3366;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .preview-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 28px; }
    .setting-row { flex-direction: column; align-items: flex-start; }
    .nav-links { display: none; }
}