/* CSS Custom Variables - Premium Dark Space & Glassmorphism Theme */
:root {
    --bg-dark: #0a0b10;
    --bg-glow: radial-gradient(circle at 50% -20%, #1a1535 0%, #0a0b10 60%);
    --bg-card: rgba(18, 20, 32, 0.65);
    --bg-card-hover: rgba(26, 28, 45, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(124, 58, 237, 0.3);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --primary: #8b5cf6;
    --primary-gradient: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
    --accent-gradient: linear-gradient(135deg, #f43f5e 0%, #d946ef 100%);
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    --font-main: 'Outfit', sans-serif;
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Base Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-dark);
    background-image: var(--bg-glow);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography Utilities */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Glassmorphism Panel Class */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: rgba(124, 58, 237, 0.15);
    box-shadow: 0 12px 40px 0 rgba(124, 58, 237, 0.1);
}

/* Premium Header styling */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 11, 16, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    cursor: pointer;
}

.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px;
    border: 1px solid var(--border-color);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
    padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* Ad Containers (Crucial for SEO - Zero CLS layout preservation) */
.ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    margin: 1.5rem auto;
    overflow: hidden;
}

.top-ad {
    width: 100%;
    max-width: 728px;
    min-height: 90px; /* Standard Leaderboard */
}

.inline-ad {
    width: 100%;
    max-width: 728px;
    min-height: 90px;
    margin: 3rem auto;
}

.ad-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 10px;
    text-align: center;
}

.ad-label {
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
}

/* Main Layout */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    max-width: 800px;
    margin: 1.5rem auto 3rem;
}

.main-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.main-subtitle {
    color: var(--text-secondary);
    font-size: 1.15rem;
    font-weight: 400;
}

/* Tool Grid System */
.tool-wrapper {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.5rem;
    align-items: start;
}

/* Settings Card Styling */
.settings-card {
    padding: 1.75rem;
}

.panel-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

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

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

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Select Form Style */
.custom-select {
    width: 100%;
    background: rgba(10, 11, 16, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    outline: none;
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.custom-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--border-glow);
}

/* Slider Controls */
.custom-slider {
    width: 100%;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.08);
    height: 6px;
    border-radius: 3px;
    outline: none;
    margin: 10px 0;
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-gradient);
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-glow);
    transition: transform 0.1s ease;
}

.custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Info Box */
.info-box {
    display: flex;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-top: 1.5rem;
}

.info-icon {
    font-size: 1.1rem;
}

.info-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Workspace / Image processing area */
.workspace-card {
    padding: 1.75rem;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

/* Drag & Drop Zone */
.drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: rgba(10, 11, 16, 0.2);
    position: relative;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.04);
    box-shadow: inset 0 0 20px rgba(139, 92, 246, 0.05);
}

.drop-zone.dragover .drop-icon {
    transform: translateY(-8px) scale(1.1);
    filter: drop-shadow(0 0 15px var(--primary));
}

.file-input-hidden {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.drop-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}

.drop-zone-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.drop-zone-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Stats Bar Summary */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 1px solid var(--border-color);
}

.stat-item:last-child {
    border-right: none;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 800;
}

.accent-stat .stat-value {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

/* File list panel */
.files-list-section {
    margin-top: 2rem;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.files-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.files-table th {
    background: rgba(255, 255, 255, 0.01);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: start;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.files-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.9rem;
    vertical-align: middle;
}

.files-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

.image-preview-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
}

.file-name-cell {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.status-badge.working {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.done {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.size-saving-badge {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    margin-left: 6px;
}

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

/* SEO Content Section Under Main Tool */
.seo-content-section {
    margin-top: 4rem;
}

.content-card {
    padding: 3rem 2rem;
    margin-bottom: 3rem;
}

.content-card h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 2rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feat-icon {
    font-size: 2rem;
    background: rgba(124, 58, 237, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.feature-item h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* FAQ Accordions */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.text-center {
    text-align: center;
}

.faq-item {
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    text-align: start;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    outline: none;
}

.faq-arrow {
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    background: rgba(255, 255, 255, 0.01);
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Large enough */
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Premium Footer */
.app-footer {
    border-top: 1px solid var(--border-color);
    background: rgba(10, 11, 16, 0.9);
    padding: 2.5rem 2rem;
    margin-top: 5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

/* Responsive Grid Media Queries */
@media (max-width: 900px) {
    .tool-wrapper {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .main-title {
        font-size: 2.2rem;
    }
    
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        border-right: none;
        padding: 0.5rem;
    }
    
    .stat-item:nth-child(odd) {
        border-right: 1px solid var(--border-color);
    }
}

@media (max-width: 600px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .stats-bar {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-item {
        border-right: none !important;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 0.75rem;
    }
    
    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* App Header Actions wrapper */
.app-header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Language Selector styling */
.lang-selector-container {
    position: relative;
    display: inline-block;
}

.lang-selector-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    outline: none;
}

.lang-selector-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(124, 58, 237, 0.3);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    display: none;
    flex-direction: column;
    min-width: 160px;
    padding: 0.5rem;
    z-index: 1000;
}

.lang-dropdown.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.lang-option {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    text-align: start;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    width: 100%;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.lang-option.active {
    background: rgba(124, 58, 237, 0.15);
    color: #a78bfa;
    font-weight: 600;
}

/* RTL (Right to Left) styling */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] body {
    text-align: right;
}

html[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

html[dir="rtl"] .lang-option {
    text-align: right;
}

html[dir="rtl"] .stat-item {
    border-right: none;
    border-left: 1px solid var(--border-color);
}

html[dir="rtl"] .stat-item:last-child {
    border-left: none;
}

html[dir="rtl"] .size-saving-badge {
    margin-left: 0;
    margin-right: 6px;
}

/* Responsive updates */
@media (max-width: 600px) {
    .app-header-actions {
        flex-direction: column-reverse;
        gap: 1rem;
        width: 100%;
        align-items: center;
    }
}

/* Comparison Slider Overlay & Interactive Styles */
.compare-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 11, 16, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.compare-modal:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.compare-modal-content {
    width: 100%;
    max-width: 900px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-color: var(--border-glow);
}

.compare-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.compare-close-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--danger);
    color: var(--text-primary);
}

.compare-slider-container {
    position: relative;
    width: 100%;
    height: 500px;
    max-height: 60vh;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: #15161e;
}

.compare-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    user-select: none;
    pointer-events: none;
}

.compare-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.compare-img-original {
    z-index: 1;
}

.compare-img-compressed {
    z-index: 2;
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

.compare-label {
    position: absolute;
    bottom: 20px;
    background: rgba(10, 11, 16, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    border: 1px solid var(--border-color);
    pointer-events: none;
    user-select: none;
}

.before-label {
    left: 20px;
    z-index: 3;
}

.after-label {
    right: 20px;
    z-index: 4;
}

.compare-slider-range {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 10;
    cursor: ew-resize;
    margin: 0;
}

.compare-handle-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: white;
    z-index: 5;
    pointer-events: none;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.compare-handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    background: var(--primary-gradient);
    border: 2px solid white;
    border-radius: 50%;
    z-index: 6;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
    pointer-events: none;
    user-select: none;
    transition: transform 0.15s ease;
}

.compare-slider-range:hover ~ .compare-handle-line .compare-handle-circle {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Embed Code Box Enhancements */
#embed-code-input {
    background: rgba(10, 11, 16, 0.8);
    border-color: rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

#embed-code-input:focus {
    border-color: var(--primary);
    background: rgba(10, 11, 16, 0.9);
}

#copy-embed-btn.copied {
    background: var(--success);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Modal responsive design */
@media (max-width: 768px) {
    .compare-modal {
        padding: 1rem;
    }
    .compare-modal-content {
        padding: 1.5rem 1rem;
    }
    .compare-slider-container {
        height: 350px;
    }
    .compare-close-btn {
        position: relative;
        top: 0;
        right: 0;
        align-self: flex-end;
        margin-bottom: 0.5rem;
    }
}

