:root {
    --primary: #00f2ff;
    --secondary: #7000ff;
    --bg-dark: #0a0a0c;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #f0f0f0;
    --text-dim: #a0a0a0;
    --glow: 0 0 15px rgba(0, 242, 255, 0.4);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 20% 20%, rgba(112, 0, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(0, 242, 255, 0.1) 0%, transparent 40%);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    max-width: 600px;
    width: 100%;
    padding: 2.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    text-align: center;
    transition: transform 0.3s ease;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    box-shadow: var(--glow);
}

/* Stepper UI */
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 10px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: all 0.3s;
}

.step.active {
    opacity: 1;
}

.step-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--glass-border);
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    transition: all 0.3s;
}

.step.active .step-icon {
    background: var(--primary);
    box-shadow: var(--glow);
    transform: scale(1.2);
}

.step-connector {
    width: 40px;
    height: 2px;
    background: var(--glass-border);
    margin-top: -24px;
}

.step.active ~ .step-connector, .step.active ~ .step {
    /* Styles for upcoming steps */
}

/* Video Editor */
.video-editor-container {
    background: rgba(0,0,0,0.4);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    background: black;
    aspect-ratio: 16/9;
    border: 1px solid var(--glass-border);
}

#video-preview {
    width: 100%;
    height: 100%;
    display: block;
}

.timeline-container {
    position: relative;
    height: 60px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.thumbnails-track {
    display: flex;
    height: 100%;
    pointer-events: none;
}

.thumbnails-track img {
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.range-selector {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.range-highlight {
    position: absolute;
    top: 0;
    height: 100%;
    background: rgba(0, 242, 255, 0.2);
    border-left: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
    pointer-events: none;
}

.range-handle {
    position: absolute;
    top: 0;
    width: 12px;
    height: 100%;
    background: var(--primary);
    cursor: ew-resize;
    z-index: 10;
}

.range-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 15px;
    background: rgba(0,0,0,0.5);
}

.timeline-marker {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background: #ff0000;
    z-index: 5;
    pointer-events: none;
}

.time-range-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 1rem;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

p {
    color: var(--text-dim);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Header Actions */
.header-actions {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
    margin-bottom: 1.5rem;
}

.custom-select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 10px 15px;
    border-radius: 12px;
    outline: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    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 10px center;
    background-size: 16px;
    padding-right: 35px;
}

.custom-select:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.custom-select option {
    background: #1a1a2e;
    color: white;
}

.pill-btn {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
}

.pill-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
}

.notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4b4b;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
}

#notif-btn {
    position: relative;
}

.notif-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
}

.notif-item.info { border-left: 4px solid var(--primary); }
.notif-item.success { border-left: 4px solid #4CAF50; }
.notif-item.warning { border-left: 4px solid #FFC107; }
.notif-item.error { border-left: 4px solid #F44336; }

.highlight-btn {
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.1), rgba(112, 0, 255, 0.1));
    border-color: rgba(0, 242, 255, 0.3);
}

.highlight-btn:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.2), rgba(112, 0, 255, 0.2));
}

.text-button {
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.text-button:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(0, 242, 255, 0.05);
}

/* Lang Selector */
#lang-selector-container {
    position: relative;
}

#lang-menu {
    position: absolute;
    top: 110%;
    right: 0;
    background: #1a1a1c;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    z-index: 1000;
    width: 240px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.lang-option {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.lang-opt-large {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    padding: 12px;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

.lang-opt-large:hover, .lang-opt-large.active {
    background: rgba(0, 242, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.lang-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.help-section {
    margin-bottom: 2.5rem;
}

.help-section h2 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.help-section p {
    text-align: left;
    line-height: 1.6;
}

/* Modern Card */
.modern-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.redeem-card {
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.05), rgba(112, 0, 255, 0.05));
    border: 1px solid rgba(0, 242, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.05);
}

.codes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
}

.code-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    padding: 8px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    cursor: pointer;
}

.code-item:hover:not(.used) {
    border-color: var(--primary);
    background: rgba(0, 242, 255, 0.1);
}

/* Main Menu Grid */
.main-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.menu-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-card:hover:not(:disabled) {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 242, 255, 0.1);
}

.menu-card svg {
    width: 48px;
    height: 48px;
    color: var(--primary);
    filter: drop-shadow(0 0 8px rgba(0, 242, 255, 0.3));
}

.menu-card span {
    font-weight: 700;
    font-size: 1rem;
}

.coming-soon {
    opacity: 0.6;
    cursor: not-allowed !important;
    position: relative;
    overflow: hidden;
}

.coming-soon::after {
    content: "Coming Soon";
    position: absolute;
    top: 10px;
    right: -25px;
    background: var(--secondary);
    color: white;
    font-size: 0.7rem;
    padding: 2px 30px;
    transform: rotate(45deg);
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Sections */
.hidden { display: none !important; }

section {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 800;
}

/* Forms */
.form-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--text-dim);
}

input[type="number"], textarea, select {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

input:focus, textarea:focus {
    border-color: var(--primary);
}

/* Action Buttons */
.action-btn {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, var(--secondary), #4b00ff);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(112, 0, 255, 0.3);
}

.action-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(112, 0, 255, 0.5);
}

/* Drag & Drop */
.drag-drop-area {
    border: 2px dashed var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2rem;
    background: rgba(255,255,255,0.02);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.drag-drop-area:hover, .drag-drop-area.drag-over {
    border-color: var(--primary);
    background: rgba(0, 242, 255, 0.05);
    transform: scale(1.01);
}

.drag-drop-area svg {
    width: 40px;
    height: 40px;
    color: var(--primary);
    opacity: 0.7;
}

/* Frame Previews */
#frames-output {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
    padding: 15px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin-bottom: 2rem;
    max-height: 200px;
    overflow-y: auto;
}

.frame-container {
    position: relative;
}

.frame-container img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

.result-frames-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 2rem;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
}

.result-frame {
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: all 0.2s;
    background: rgba(255,255,255,0.05);
}

.result-frame:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.05);
}

.result-frame.selected {
    border-color: var(--primary);
    background: rgba(0, 242, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

.result-frame img {
    width: 100%;
    height: 80px;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: -o-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
}

.result-frame .check-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary);
    color: #000;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    display: none;
}

.result-frame.selected .check-badge {
    display: flex;
}

.delete-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4b4b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.small-text {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Progress Bar */
#progress-container {
    padding: 2rem;
    background: rgba(0,0,0,0.2);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    margin: 2rem 0;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 99px;
    overflow: hidden;
    margin-top: 20px;
    border: 1px solid var(--glass-border);
}

#progress-bar-inner {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    width: 0%;
    transition: width 0.4s cubic-bezier(0.1, 0.7, 0.1, 1);
    box-shadow: 0 0 15px var(--primary);
    position: relative;
}

#progress-bar-inner::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 1.5s infinite;
}

@keyframes shine {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

#progress-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

#sprite-image {
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    margin-bottom: 1.5rem;
    background-image:
        linear-gradient(45deg, #1a1a1a 25%, transparent 25%),
        linear-gradient(-45deg, #1a1a1a 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #1a1a1a 75%),
        linear-gradient(-45deg, transparent 75%, #1a1a1a 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: -o-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
}

/* Toasts */
#toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10000;
}

.toast {
    background: rgba(20, 20, 25, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 12px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: toastUp 0.3s ease-out;
}

@keyframes toastUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Footer */
footer {
    margin-top: 3rem;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    width: 100%;
    max-width: 600px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.redeem-card input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 242, 0.3);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 3px;
    transition: all 0.3s ease;
}

.redeem-card input:focus {
    outline: none;
    border-color: #00fff2;
    box-shadow: 0 0 15px rgba(0, 255, 242, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

.copyright {
    color: var(--text-dim);
    font-size: 0.8rem;
    opacity: 0.6;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 2rem;
}

.result-actions .action-btn,
.result-actions .pill-btn {
    width: auto;
    margin: 0;
}

.action-group-right {
    display: flex;
    gap: 12px;
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    .modern-card {
        padding: 1.5rem;
    }
    .footer-links {
        gap: 1rem;
    }
}

.welcome-banner {
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.3);
    padding: 10px 20px;
    border-radius: 30px;
    margin: 10px auto 20px;
    display: inline-block;
    color: white;
    font-size: 1rem;
    backdrop-filter: blur(5px);
}

.welcome-banner strong {
    color: #00f2ff;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

/* Dual Range Slider for Audio Trimmer */
.range-slider-container {
    position: relative;
    height: 80px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    margin: 35px 0;
    overflow: visible;
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
}

#waveform-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.range-slider-container input[type=range] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    outline: none;
    position: absolute;
    margin: 0;
    top: 0;
    left: 0;
    height: 100%;
    background: none;
    pointer-events: none;
    z-index: 10;
}

/* Chrome/Safari Thumbs */
.range-slider-container input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    pointer-events: auto;
    height: 80px;
    width: 6px;
    background: #fff;
    border: none;
    border-radius: 10px;
    cursor: ew-resize;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.8);
    z-index: 20;
}

.range-slider-container input[type=range]::-webkit-slider-thumb:active {
    cursor: grabbing;
    background: #7c3aed;
}

/* Firefox Thumbs */
.range-slider-container input[type=range]::-moz-range-thumb {
    -moz-appearance: none;
    appearance: none;
    pointer-events: auto;
    height: 80px;
    width: 6px;
    background: #fff;
    border: none;
    border-radius: 10px;
    cursor: ew-resize;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.8);
    z-index: 20;
}

/* Hide Track */
.range-slider-container input[type=range]::-webkit-slider-runnable-track {
    background: transparent;
    border: none;
}

.range-slider-container input[type=range]::-moz-range-track {
    background: transparent;
    border: none;
}

#range-highlight {
    position: absolute;
    height: 100%;
    background: rgba(124, 58, 237, 0.3);
    border-top: 2px solid #7c3aed;
    border-bottom: 2px solid #7c3aed;
    pointer-events: none;
    z-index: 5;
    left: 0;
    right: 0;
}

.custom-select {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 10px 15px;
    border-radius: 12px;
    outline: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300f2ff' 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 12px center;
    padding-right: 40px;
}

.custom-select:hover {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.1);
}

.custom-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

#final-sprite-preview-container img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: -o-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

#final-sprite-preview-container img:hover {
    transform: scale(1.05);
}

canvas {
    max-width: 100%;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: -o-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
}

.frame-container img, .thumbnails-track img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: -o-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
}
