:root {
    --bg-color: #0f0f13;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-bg: #18181b;
    --success: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 10s infinite ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-secondary);
    bottom: -50px;
    right: -50px;
    animation-delay: 2s;
}

.blob-3 {
    width: 200px;
    height: 200px;
    background: #ec4899;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }
}

/* Layout */
.container {
    width: 100%;
    max-width: 900px;
    padding: 2rem;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 8rem;
}

.header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Glass Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed var(--glass-border);
    border-radius: 16px;
    padding: 4rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.2);
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-icon {
    width: 64px;
    height: 64px;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.drop-zone h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.drop-zone p {
    color: var(--text-secondary);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Editor Section */
.editor-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hidden {
    display: none;
}

.preview-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.image-wrapper {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.image-wrapper img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    border-radius: 8px;
    background: #1e1e22;
}

.label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.file-info {
    font-size: 0.875rem;
    color: var(--text-primary);
    margin-top: auto;
    padding-top: 0.5rem;
}

/* Controls */
.controls {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 200px;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.actions {
    display: flex;
    gap: 1rem;
}

/* Content Pages (Privacy, Terms, Contact) */
.content-panel {
    text-align: left;
}

.prose {
    color: var(--text-secondary);
    line-height: 1.7;
}

.prose h2 {
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.prose p {
    margin-bottom: 1rem;
}

.prose ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose a {
    color: var(--accent-primary);
    text-decoration: none;
}

.prose a:hover {
    text-decoration: underline;
}

.back-link-container {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

/* Contact Form */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.contact-info {
    margin-top: 3rem;
    text-align: center;
    color: var(--text-secondary);
}

.text-link {
    color: var(--accent-primary);
    text-decoration: none;
}

/* Footer */
.main-footer {
    margin-top: auto;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

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

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

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

.main-footer p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Navigation */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: transparent;
    /* Cleaner look, let content flow */
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo-container:hover {
    opacity: 0.8;
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    background: transparent;
    padding: 0;
    border: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0;
    border-radius: 0;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: transparent;
}

/* Subtle underline on hover */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu Styles */
@media (max-width: 968px) {
    .navbar {
        padding: 1rem 1.5rem;
        background: rgba(15, 15, 19, 0.8);
        /* Add background back for mobile readability */
        backdrop-filter: blur(10px);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #18181b;
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--glass-border);
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        font-size: 1.1rem;
    }

    .nav-links a::after {
        display: none;
        /* No underline on mobile */
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* Overlay Menu */
.overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 15, 19, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    padding: 2rem;
}

.overlay-menu.active {
    display: block;
    opacity: 1;
}

.close-overlay {
    position: absolute;
    top: 2rem;
    right: 3rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

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

.overlay-content {
    max-width: 1000px;
    margin: 6rem auto 4rem;
    display: flex;
    flex-direction: column;
    gap: 5rem;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.overlay-section h3 {
    color: var(--text-primary);
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 2.5rem;
    font-weight: 700;
}

.overlay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
    justify-content: center;
}

.overlay-grid a {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    text-decoration: none;
    padding: 1.5rem 1rem;
    text-align: center;
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.overlay-grid a:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.2);
}

/* More Button in Navbar */
.more-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.more-btn:hover {
    color: var(--text-primary);
    background: var(--glass-bg);
}

.more-btn svg {
    width: 24px;
    height: 24px;
}

/* How To Section */
.how-to-section {
    margin-top: 4rem;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.how-to-header {
    text-align: center;
    margin-bottom: 3rem;
}

.how-to-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
}

.step-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    z-index: 0;
}

.step-content {
    position: relative;
    z-index: 1;
}

.step-icon {
    width: 48px;
    height: 48px;
    background: rgba(236, 72, 153, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #ec4899;
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

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

/* Features Section */
.features-section {
    margin-top: 8rem;
    /* Increased spacing */
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 20px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

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

/* FAQ Section */
.faq-section {
    margin-top: 8rem;
    width: 100%;
}

.faq-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.faq-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.faq-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.faq-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
}

.faq-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.faq-image:hover img {
    transform: scale(1.05);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: background 0.2s;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

details {
    padding: 1.5rem;
    cursor: pointer;
}

summary {
    font-weight: 600;
    list-style: none;
    position: relative;
    padding-right: 2rem;
    font-size: 1.1rem;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--accent-primary);
    transition: transform 0.2s;
}

details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

details p {
    margin-top: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 968px) {
    .faq-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .faq-image {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5rem;
    }

    .preview-container {
        grid-template-columns: 1fr;
    }

    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    .actions {
        flex-direction: column;
    }

    .footer-links {
        gap: 1rem;
        flex-direction: column;
    }
}

/* Batch Section */
.batch-section {
    width: 100%;
    margin-top: 2rem;
}

.batch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.batch-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.batch-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.batch-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 1.5rem;
    transition: background 0.2s;
}

.batch-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.batch-thumb {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    background: #000;
}

.batch-info h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.batch-meta {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    gap: 1rem;
}

.batch-status {
    color: var(--success);
    font-size: 0.9rem;
    font-weight: 500;
}

.batch-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

@media (max-width: 640px) {
    .batch-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }

    .batch-thumb {
        margin: 0 auto;
    }

    .batch-meta {
        justify-content: center;
    }

    .batch-actions {
        justify-content: center;
    }
}

/* FAQ Footer Styled */
.faq-footer-styled {
    margin-top: 4rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.faq-footer-styled:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.support-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.2);
}

.faq-footer-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.faq-footer-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.faq-footer-content a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.faq-footer-content a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .faq-footer-styled {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Trust Section */
.trust-section {
    margin-top: 8rem;
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.trust-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.trust-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.trust-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.trust-feature {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.trust-icon {
    width: 48px;
    height: 48px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success);
    flex-shrink: 0;
}

.trust-feature-text h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.trust-feature-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

@media (max-width: 968px) {
    .trust-section {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 3rem;
    }
}