/* Modern CSS with professional design */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --border: #e2e8f0;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    box-shadow: var(--shadow);
    background: rgba(255, 255, 255, 0.98);
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-dot {
    color: var(--primary);
}

/* Navigation */
.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.main-nav ul li a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--primary);
}

.main-nav ul li a:hover::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-switcher {
    display: flex;
    gap: 0.25rem;
    background: var(--light);
    padding: 0.25rem;
    border-radius: 30px;
    border: 1px solid var(--border);
}

.lang-btn {
    padding: 0.5rem 0.75rem;
    border: none;
    background: transparent;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    min-width: 45px;
}

.lang-btn.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.user-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border);
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
}

.user-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--dark);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 140px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

/* Tier Indicator */
.tier-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
}

.tier-badge.free {
    background: var(--light);
    color: var(--gray);
    border: 1px solid var(--border);
}

.tier-badge.premium {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: var(--white);
}

.tier-badge i {
    font-size: 1rem;
}

.tier-limit {
    padding: 0.5rem 1rem;
    background: var(--white);
    border-radius: 30px;
    box-shadow: var(--shadow-sm);
    font-weight: 500;
    color: var(--gray);
}

/* Upload Area */
.upload-area {
    background: var(--white);
    border-radius: 30px;
    padding: 40px;
    text-align: center;
    border: 3px dashed var(--border);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 100%);
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    border-radius: 50%;
}

.upload-area:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.upload-area:hover::before {
    width: 200%;
    height: 200%;
    opacity: 0.1;
}

.upload-area.dragover {
    border-color: var(--secondary);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(99, 102, 241, 0.05));
    transform: scale(1.02);
}

.upload-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.upload-area h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.upload-area p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--secondary);
    color: var(--white);
}

.btn-success:hover {
    background: #0ca678;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--gray);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-premium {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: var(--white);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.btn-block {
    width: 100%;
}

/* Dashboard */
.dashboard {
    padding: 40px 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.stat-card.highlight {
    background: var(--gradient);
    color: var(--white);
}

.stat-card.highlight .stat-label,
.stat-card.highlight .stat-value,
.stat-card.highlight .stat-percent {
    color: var(--white);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--light);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.stat-card.highlight .stat-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.stat-info {
    flex: 1;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.stat-value {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 0.5rem;
}

.stat-percent {
    display: inline-block;
    font-size: 1rem;
    color: var(--gray);
    font-weight: 500;
}

/* Controls Panel */
.controls-panel {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.controls-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
    max-width: 400px;
}

.control-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-item label {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.control-item select {
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
    cursor: pointer;
}

.control-item select:hover,
.control-item select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Image Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Image Card */
.image-card {
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.image-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--gradient);
    transition: height 0.3s ease;
}

.image-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.image-card:hover::before {
    height: 100%;
}

.image-card.compressed {
    border-left: 4px solid var(--secondary);
}

.image-card.skipped {
    border-left: 4px solid var(--gray-light);
}

.image-card.skipped::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: var(--gray-light);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

[dir="rtl"] .image-card.skipped::after {
    right: auto;
    left: 10px;
}

.image-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.image-name {
    font-weight: 600;
    color: var(--dark);
    background: var(--light);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.image-checkbox {
    position: relative;
    width: 24px;
    height: 24px;
}

.image-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    background: var(--light);
    border: 2px solid var(--border);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.image-checkbox input:checked~.checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: '';
    position: absolute;
    display: none;
    left: 8px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.image-checkbox input:checked~.checkmark:after {
    display: block;
}

.image-preview {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-card:hover .image-preview img {
    transform: scale(1.05);
}

.image-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 1rem;
}

.image-stat {
    background: var(--light);
    padding: 0.75rem;
    border-radius: 12px;
    text-align: center;
}

.image-stat .label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.image-stat .value {
    font-size: 1rem;
    font-weight: 700;
}

.image-stat .value.original {
    color: var(--danger);
}

.image-stat .value.compressed {
    color: var(--secondary);
}

.compression-ratio {
    text-align: center;
    padding: 0.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: var(--white);
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.image-card.skipped .compression-ratio {
    background: linear-gradient(135deg, var(--gray-light), var(--gray));
}

.image-actions {
    display: flex;
    gap: 10px;
}

.image-actions .btn {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.875rem;
}

.progress-container {
    margin: 1rem 0 0;
    transition: all 0.3s ease;
}

.image-card.compressed .progress-container,
.image-card.skipped .progress-container {
    opacity: 0;
    height: 0;
    margin: 0;
    overflow: hidden;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray);
}

.progress-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient);
    width: 0;
    transition: width 0.3s ease;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Batch Actions */
.batch-actions {
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 30px;
}

.batch-select {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    position: relative;
    padding-left: 30px;
}

.checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background: var(--light);
    border: 2px solid var(--border);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.checkbox input:checked~.checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox .checkmark:after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox input:checked~.checkmark:after {
    display: block;
}

.batch-buttons {
    display: flex;
    gap: 10px;
}

/* Upgrade Prompt */
.upgrade-prompt {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 20px;
    padding: 1.5rem;
    color: var(--white);
    animation: slideUp 0.5s ease;
}

.prompt-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.prompt-content i {
    font-size: 2rem;
}

.prompt-text {
    flex: 1;
}

.prompt-text h4 {
    margin-bottom: 0.25rem;
}

.prompt-text p {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
    background: var(--light);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 1.75rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    border-radius: 30px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.premium {
    border: 2px solid transparent;
    background: linear-gradient(var(--white), var(--white)) padding-box,
        var(--gradient) border-box;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.card-header h3 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.period {
    display: inline-block;
    color: var(--gray);
    font-size: 1rem;
    margin-left: 0.25rem;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--gray);
}

.features-list i {
    color: var(--secondary);
    font-size: 1rem;
}

.current-plan {
    opacity: 0.5;
    cursor: not-allowed;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background: var(--white);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    padding: 1.5rem;
    background: var(--light);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.faq-item h3 {
    margin-bottom: 1rem;
    color: var(--dark);
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--gray);
    line-height: 1.6;
}

/* Footer */
.main-footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--primary);
}

.footer-col p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
    font-size: 0.9rem;
}

/* Footer Attribution */
.powered-by {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 10px;
    font-size: 0.9em;
    opacity: 0.8;
}

.powered-by a {
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.powered-by a:hover {
    transform: scale(1.1);
}

.di9ital-logo {
    height: 24px;
    width: auto;
    vertical-align: middle;
    display: inline-block;
}

/* Notifications */
.notification-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
}

[dir="rtl"] .notification-container {
    right: auto;
    left: 20px;
}

.notification {
    background: var(--white);
    border-radius: 50px;
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: none;
    font-weight: 500;
    min-width: 300px;
    max-width: 400px;
}

[dir="rtl"] .notification {
    transform: translateX(-120%);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--white);
}

.notification.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: var(--white);
}

.notification.info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: var(--white);
}

.notification.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: var(--white);
}

.notification i {
    font-size: 1.25rem;
}

.notification span {
    flex: 1;
}

/* Ad Containers */
.ad-container {
    background: var(--light);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--border);
}

.ad-container.leaderboard {
    min-height: 90px;
}

.ad-container.rectangle {
    min-height: 250px;
}

.ad-placeholder {
    color: var(--gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 30px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--gray);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--dark);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* RTL Support */
[dir="rtl"] .main-nav ul li a::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .checkbox {
    padding-left: 0;
    padding-right: 30px;
}

[dir="rtl"] .checkbox .checkmark {
    left: auto;
    right: 0;
}

[dir="rtl"] .features-list li i {
    margin-left: 0.75rem;
    margin-right: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background: var(--white);
        transition: left 0.3s ease;
        box-shadow: var(--shadow-xl);
    }

    [dir="rtl"] .main-nav {
        left: auto;
        right: -100%;
    }

    .main-nav.active {
        left: 0;
    }

    [dir="rtl"] .main-nav.active {
        left: auto;
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
    }

    .language-switcher {
        display: none;
    }

    .hero {
        padding: 100px 0 40px;
    }

    .stats-grid,
    .features-grid,
    .pricing-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .batch-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .batch-buttons {
        width: 100%;
        flex-direction: column;
    }

    .prompt-content {
        flex-direction: column;
        text-align: center;
    }

    .image-grid {
        grid-template-columns: 1fr;
    }

    .notification {
        min-width: unset;
        max-width: calc(100vw - 40px);
        margin: 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .tier-indicator {
        flex-direction: column;
        gap: 0.5rem;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .stat-icon {
        margin: 0 auto;
    }

    .image-card-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .image-name {
        max-width: 100%;
    }
}