/* Clean Modern Light Theme */
* {
    box-sizing: border-box;
}

:root {
    /* Colors - Clean Light Theme */
    --bg-primary: #f9fafb;
    /* gray-50 */
    --bg-secondary: #ffffff;
    --bg-tertiary: #f3f4f6;
    /* gray-100 */

    --text-primary: #111827;
    /* gray-900 */
    --text-secondary: #6b7280;
    /* gray-500 */
    --text-muted: #9ca3af;
    /* gray-400 */

    /* Accents - Solid & Clean */
    --accent: #111827;
    --accent-hover: #000000;
    --accent-subtle: rgba(0, 0, 0, 0.05);

    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.16);
    --border-strong: rgba(0, 0, 0, 0.24);

    /* Layout */
    --navbar-height: 100px;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Shadows - Subtle */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    /* Animation */
    --transition: all 0.2s ease;
    --transition-slow: all 0.4s ease;

    /* App Variables - Light Theme */
    --bg-app: #f9fafb;
    --bg-panel: #ffffff;
    --bg-input: #f3f4f6;
    --bg-input-hover: #e5e7eb;
    --border-app: #e5e7eb;
    --accent-app: #111827;
    --text-main: #111827;
    --text-muted-app: #6b7280;
    --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --panel-width: 280px;
    --panel-radius: 12px;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    font-display: swap;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* Navigation - Minimal Shared Style */
.top-bar {
    height: 64px;
    /* h-16 */
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    /* gray-200/50 */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-4);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand .file-name {
    font-weight: 700;
    font-size: 1.125rem;
    /* text-lg */
    letter-spacing: -0.05em;
    /* tracking-tighter */
    color: #111827;
    /* gray-900 */
    text-decoration: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-size: 0.875rem;
    /* text-sm */
    font-weight: 500;
    color: #6b7280;
    /* gray-500 */
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #111827;
    /* gray-900 */
}

/* App Specific Overrides */
.app-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Buttons - Clean & Solid */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.75rem 1.5rem;
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: #EA2E83;
    color: var(--text-primary);
    border-color: #EA2E83;
}

.btn-primary:hover {
    background: #d42070;
    border-color: #d42070;
    transform: translateY(-1px);
}

.logo-icon-img {
    height: 1.5em;
    width: auto;
    vertical-align: middle;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-xl);
}

/* Hero Section - Clean */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: var(--navbar-height);
    overflow: hidden;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    transition: var(--transition);
}

.hero-badge:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.title-main {
    display: block;
    color: var(--text-secondary);
}

.title-gradient {
    display: block;
    color: var(--text-primary);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-10);
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
}

/* Hero Visual - Clean App Mockup */
.hero-visual {
    margin-top: var(--space-12);
    position: relative;
    perspective: 1000px;
}

.app-window {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: rotateX(2deg);
    transition: transform 0.5s ease;
    max-width: 800px;
    margin: 0 auto;
    animation: float 6s ease-in-out infinite;
}

.hero-visual:hover .app-window {
    transform: rotateX(0deg) scale(1.01);
}

.window-header {
    height: 44px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 var(--space-4);
    gap: var(--space-4);
}

.window-controls {
    display: flex;
    gap: 8px;
}

.window-controls span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-strong);
    opacity: 0.5;
}

.window-bar {
    flex: 1;
}

.window-content {
    height: 400px;
    display: flex;
    position: relative;
    background: var(--bg-secondary);
}

.sidebar {
    width: 64px;
    border-right: 1px solid var(--border);
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
    background: var(--bg-tertiary);
}

.sidebar-item {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background: var(--border);
}

.sidebar-item.active {
    background: var(--text-primary);
}

.main-area-landing {
    flex: 1;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
}

.canvas-placeholder {
    width: 80%;
    height: 80%;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-placeholder {
    width: 120px;
    height: 120px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    animation: pulse 3s ease-in-out infinite;
}

.properties-panel {
    width: 220px;
    border-left: 1px solid var(--border);
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    background: var(--bg-tertiary);
}

.panel-item {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
}

.panel-item:nth-child(1) {
    width: 60%;
}

.panel-item:nth-child(2) {
    width: 80%;
}

.panel-item:nth-child(3) {
    width: 40%;
}

@media (max-width: 768px) {
    .window-content {
        height: 250px;
    }

    .properties-panel {
        display: none;
    }

    .sidebar {
        width: 48px;
        padding: var(--space-2);
    }

    .sidebar-item {
        width: 24px;
        height: 24px;
    }
}

/* Features Section - Grid */
.features {
    padding: var(--space-24) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-6);
}

.feature-card {
    padding: var(--space-8);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    background: var(--bg-tertiary);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    font-size: 1.25rem;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

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

/* How It Works */
.how-it-works {
    padding: var(--space-24) 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-16);
}

.step-item {
    position: relative;
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.step-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 50%;
    border: 1px solid var(--border);
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
}

/* FAQ Section */
.faq {
    padding: var(--space-24) 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-16);
}

.faq-item {
    padding: var(--space-8);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.faq-item p {
    color: var(--text-secondary);
}

/* CTA Section */
.cta {
    padding: var(--space-24) 0;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    padding: var(--space-12);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.cta-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
}

.cta-note {
    margin-top: var(--space-6);
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Footer */
.footer {
    padding: var(--space-16) 0 var(--space-8);
    background: var(--bg-primary);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-16);
    margin-bottom: var(--space-12);
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: var(--space-4);
}

.footer-brand {
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: block;
}

.footer-brand:hover {
    opacity: 0.8;
}

.footer-brand .brand-text {
    display: block;
    margin-top: var(--space-2);
    color: var(--text-primary);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.footer-section h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: var(--space-6);
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--space-8);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Scroll Indicator with Animation */
.scroll-indicator {
    margin-top: var(--space-12);
    cursor: pointer;
}

.scroll-arrow {
    width: 32px;
    height: 32px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    animation: bounce 2s infinite;
    transition: var(--transition);
}

.scroll-arrow:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: translateY(4px);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

/* Ensure content is above background pattern */
.navbar,
.hero,
.features,
.how-it-works,
.faq,
.cta,
.footer {
    position: relative;
    z-index: 1;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    margin-top: var(--space-6);
    flex-wrap: wrap;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.trust-badge i {
    color: #22c55e;
    font-size: 1rem;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotateX(2deg);
    }

    50% {
        transform: translateY(-10px) rotateX(2deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
    animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .trust-badges {
        gap: var(--space-4);
    }

    .trust-badge {
        font-size: 0.8125rem;
        padding: 0.4rem 0.8rem;
    }
}

/* =========================================
   APP STYLES (Prefixed with scope where possible)
   ========================================= */

button,
label,
.section-title {
    user-select: none;
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: relative;
    background-color: var(--bg-app);
}

.top-bar {
    height: 64px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    flex-shrink: 0;
    z-index: 5;
    max-width: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    width: auto;
}

.brand .file-name {
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.05em;
    color: #111827;
    text-decoration: none;
    opacity: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    width: auto;
}

.brand-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1800px;
    width: 100%;
    margin: 0 auto;
}

.brand-link {
    text-decoration: none;
    color: inherit;
}

.brand-name {
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.05em;
    color: #111827;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: 16px;
}

.nav-divider {
    width: 1px;
    height: 16px;
    background: #e5e7eb;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #111827;
}

.nav-link-active {
    color: #111827;
}

.workspace {
    display: flex;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.main-area {
    flex: 1;
    background-color: #f9fafb;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.canvas-viewport {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

canvas {
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
    background: transparent;
    transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), height 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.floating-panel {
    position: absolute;
    width: var(--panel-width);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--panel-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    z-index: 100;
    opacity: 0;
    transform: scale(0.95);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.2s;
}

.floating-panel.active {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
    pointer-events: auto;
}

/* Right Panel Position */
.floating-panel:not(.left-panel) {
    top: 20px;
    right: 20px;
    max-height: calc(100vh - 40px);
}

/* MERGED LEFT PANEL STYLES */
.left-panel {
    top: 20px;
    left: 20px;
    height: auto;
    max-height: 80vh;
    overflow: hidden;
}

.panel-header {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px 0 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    cursor: grab;
    flex-shrink: 0;
}

.panel-header:active {
    cursor: grabbing;
}

.panel-header span {
    font-weight: 600;
    color: #111827;
}

.panel-actions {
    display: flex;
    gap: 8px;
}

.icon-btn {
    height: 28px;
    padding: 0 8px;
    border: 1px solid transparent;
    background: rgba(0, 0, 0, 0.04);
    color: #6b7280;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.1s;
}

.icon-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #111827;
}

.icon-btn.primary-icon {
    background: #111827;
    color: white !important;
    padding: 0 12px;
    font-size: 11px;
    font-weight: 500;
}

.icon-btn.primary-icon span,
.icon-btn.primary-icon svg {
    color: white !important;
    stroke: white !important;
}

.icon-btn.primary-icon:hover {
    background: #374151;
    color: white !important;
}

.icon-btn.primary-icon:hover span,
.icon-btn.primary-icon:hover svg {
    color: white !important;
    stroke: white !important;
}

/* Style Toggle Buttons (Bold, Italic, Uppercase) */
.style-toggle-row {
    display: flex;
    gap: 6px;
}

.style-toggle-btn {
    width: 34px;
    height: 30px;
    background: #f3f4f6;
    border: 1px solid transparent;
    color: #6b7280;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.15s;
}

.style-toggle-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.style-toggle-btn.active {
    background: #e5e7eb;
    color: #111827;
    border-color: #111827;
}

.icon-btn.active {
    color: #111827;
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.12);
}

.panel-content {
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    /* For left panel scrolling */
}

/* Add scrolling bar style if needed */
.panel-content::-webkit-scrollbar {
    width: 4px;
}

.panel-content::-webkit-scrollbar-track {
    background: transparent;
}

.panel-content::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
    border: 2px solid #ffffff;
}

/* Fix for potential grey bar at bottom - ensure no overflow-x and consistent bg */
.panel-content {
    padding: 16px;
    padding-right: 12px;
    overflow-x: hidden;
}

.prop-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-title {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin-bottom: 4px;
}

/* Controls */
.control-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mt-2 {
    margin-top: 12px;
}

.mb-2 {
    margin-bottom: 8px;
}

.w-100 {
    width: 100%;
}

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

.label-group label {
    color: #374151;
    font-size: 11px;
}

.val-display {
    color: #9ca3af;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

/* Inputs */
.text-area-input {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #111827;
    padding: 8px;
    border-radius: 6px;
    width: 100%;
    font-family: inherit;
    font-size: 12px;
    resize: vertical;
}

.select-input {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #111827;
    padding: 8px 12px;
    border-radius: 6px;
    width: 100%;
    font-size: 11px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111827' 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 8px center;
    background-size: 12px;
    cursor: pointer;
}

.select-input:hover {
    background-color: #e5e7eb;
}

.select-input:focus {
    outline: none;
    border-color: #111827;
}

.pill-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 10px;
    outline: none;
    transition: background 0.2s;
}

.pill-slider:hover {
    background: #d1d5db;
}

.pill-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    border: 2px solid #d1d5db;
    transform: scale(1);
    transition: transform 0.1s;
}

.pill-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

/* Layout Grid */
.layout-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.layout-btn {
    width: 36px;
    height: 36px;
    background: #f3f4f6;
    border: 1px solid transparent;
    color: #9ca3af;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.layout-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.layout-btn.active {
    background: #e5e7eb;
    color: #111827;
    border-color: #111827;
}

/* Layer List */
.layer-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.layer-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f3f4f6;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid transparent;
    width: 100%;
    cursor: pointer;
}

.layer-item.active {
    border-color: #111827;
    background: #e5e7eb;
}

.layer-thumb {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
    background: #e5e7eb;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.layer-name {
    flex: 1;
    color: #374151;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.layer-controls {
    display: flex;
    align-items: center;
    gap: 2px;
}

.layer-btn {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    display: flex;
    border-radius: 4px;
}

.layer-btn:hover {
    color: #374151;
    background: rgba(0, 0, 0, 0.06);
}

.layer-btn.trash:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Buttons */
.btn.outline {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #6b7280;
}

.btn.outline:hover {
    border-color: #9ca3af;
    color: #374151;
}

.btn-secondary {
    padding: 10px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #374151;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

/* Segmented Control */
.segmented-control {
    display: flex;
    background: #f3f4f6;
    padding: 3px;
    border-radius: 8px;
}

.segment {
    flex: 1;
    background: transparent;
    border: none;
    color: #9ca3af;
    padding: 6px;
    font-size: 10px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.segment:hover {
    color: #374151;
}

.segment.active {
    background: #ffffff;
    color: #111827;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Effect Grid */
.effect-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.effect-btn {
    aspect-ratio: 1;
    background: #f3f4f6;
    border: 1px solid transparent;
    color: #9ca3af;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.effect-btn:hover {
    border-color: #d1d5db;
    transform: scale(1.05);
}

.effect-btn.active {
    border-color: #111827;
    box-shadow: 0 0 0 1px #111827;
}

/* Backgrounds */
.bg-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.color-preview {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

input[type="color"] {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    cursor: pointer;
}

.hex-text {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #111827;
    padding: 6px 10px;
    border-radius: 6px;
    width: 80px;
    font-family: monospace;
}

.gradient-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.grad-btn {
    aspect-ratio: 1;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.1s;
    overflow: hidden;
}

.grad-btn:hover {
    transform: scale(1.05);
    border-color: #111827;
}

/* Upload Overlay */
.upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    z-index: 10;
}

.upload-content {
    text-align: center;
    color: #6b7280;
}

.upload-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.upload-content p {
    font-size: 0.875rem;
    color: #9ca3af;
}

.upload-overlay.hidden {
    display: none;
}

/* Drag & Drop Visual Feedback */
.canvas-viewport.drag-over,
.upload-overlay.drag-over {
    outline: 3px dashed #3b82f6;
    outline-offset: -3px;
    background: rgba(59, 130, 246, 0.06) !important;
}

.canvas-viewport.drag-over canvas {
    opacity: 0.7;
    transition: opacity 0.15s;
}

.upload-overlay.drag-over {
    border-color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.08) !important;
}

.upload-overlay.drag-over .upload-content h3 {
    color: #3b82f6;
}

.submit-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, 0.56);
    z-index: 1200;
    padding: 16px;
}

.submit-modal.hidden {
    display: none;
}

.submit-modal-card {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    padding: 18px;
}

.submit-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.submit-modal-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.submit-modal-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.submit-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.submit-field span {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

.submit-field input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    color: #111827;
    background: #ffffff;
}

.submit-field select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    color: #111827;
    background: #ffffff;
}

.submit-field input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.submit-field select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.submit-error {
    min-height: 16px;
    margin: 0;
    font-size: 12px;
    color: #dc2626;
}

.submit-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

#file-input {
    display: none;
}

/* Toggle Switch */
.toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.toggle-label input[type="checkbox"] {
    display: none;
}

.toggle-switch {
    position: relative;
    width: 51px;
    height: 31px;
    background: #d1d5db;
    border-radius: 31px;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 27px;
    height: 27px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-label input[type="checkbox"]:checked+.toggle-switch {
    background: #34C759;
}

.toggle-label input[type="checkbox"]:checked+.toggle-switch::after {
    transform: translateX(20px);
}

/* Animation Grid */
.anim-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.anim-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #f3f4f6;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 8px 4px;
    cursor: pointer;
    transition: all 0.2s;
    height: 70px;
}

.anim-btn:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.anim-btn.active {
    background: #e5e7eb;
    border-color: #111827;
    color: #111827;
}

.anim-btn span {
    font-size: 10px;
    color: #9ca3af;
}

.anim-btn.active span {
    color: #111827;
}

.anim-preview {
    width: 24px;
    height: 24px;
    background: #d1d5db;
    border-radius: 4px;
}

.anim-btn.active .anim-preview {
    background: #111827;
}

/* Previews */
.anim-preview.scale {
    animation: previewScale 1.5s infinite alternate ease-in-out;
}

.anim-preview.scale-fast {
    animation: previewScale 0.5s infinite alternate ease-in-out;
}

.anim-preview.slide-up {
    animation: previewSlide 1.5s infinite ease-in-out;
}

.anim-preview.pulse {
    animation: previewPulse 1.2s infinite ease-in-out;
}

.anim-preview.float {
    animation: previewFloat 2s infinite ease-in-out;
}

.anim-preview.spin {
    animation: previewSpin 3s infinite linear;
}

.anim-preview.glitch {
    animation: previewGlitch 0.3s infinite steps(2);
}

.anim-preview.zoom {
    animation: previewZoom 1s infinite ease-out;
}

.anim-preview.bounce {
    animation: previewBounce 1.5s infinite ease-in-out;
}

.anim-preview.fade {
    animation: previewFade 2s infinite ease-in-out;
}

.anim-preview.swing {
    animation: previewSwing 2s infinite ease-in-out;
}

@keyframes previewScale {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(0.8);
    }
}

@keyframes previewSlide {
    0% {
        transform: translateY(10px);
        opacity: 0;
    }

    50% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes previewPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes previewFloat {

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

    50% {
        transform: translateY(-5px);
    }
}

@keyframes previewSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes previewGlitch {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(2px, -2px);
    }

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

    75% {
        transform: translate(1px, -1px);
    }

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

@keyframes previewZoom {
    0% {
        transform: scale(0.5);
        opacity: 0.5;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0.5);
        opacity: 0.5;
    }
}

@keyframes previewBounce {

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

    25% {
        transform: translateY(-8px);
    }

    50% {
        transform: translateY(0);
    }

    65% {
        transform: translateY(-4px);
    }

    80% {
        transform: translateY(0);
    }
}

@keyframes previewFade {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

@keyframes previewSwing {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(15deg);
    }

    75% {
        transform: rotate(-15deg);
    }
}

/* Bottom Toolbar */
.bottom-toolbar {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    z-index: 100;
}

.toolbar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 12px;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    color: var(--text-muted-app);
    font-size: 10px;
    font-weight: 500;
    font-family: var(--font-ui);
    transition: all 0.15s ease;
    min-width: 52px;
}

.toolbar-btn:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-main);
}

.toolbar-btn.active {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-main);
}

.toolbar-btn svg {
    flex-shrink: 0;
}

.toolbar-btn span {
    white-space: nowrap;
}

.toolbar-btn-export {
    background: var(--accent-app);
    color: #fff !important;
}

.toolbar-btn-export:hover {
    background: var(--accent-hover) !important;
    color: #fff !important;
}

.toolbar-btn-export svg {
    stroke: #fff;
}

.toolbar-btn-export span {
    color: #fff;
}

/* Slide Strip (ASO Mode) */
.slide-strip-wrap {
    position: fixed;
    bottom: 76px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99;
    display: flex;
    align-items: center;
}

.slide-strip-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.slide-strip {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    max-width: 500px;
    padding: 2px;
}

.slide-strip::-webkit-scrollbar {
    height: 3px;
}

.slide-strip::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

.slide-thumb {
    position: relative;
    width: 40px;
    height: 72px;
    border-radius: 6px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    background: var(--bg-tertiary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
    overflow: hidden;
}

.slide-thumb canvas {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 4px;
}

.slide-thumb:hover {
    border-color: rgba(0, 0, 0, 0.2);
}

.slide-thumb.active {
    border-color: var(--accent-app);
    box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.15);
}

.slide-num {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted-app);
    font-family: var(--font-ui);
}

.slide-del {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: none;
    background: #ef4444;
    color: white;
    font-size: 10px;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.slide-thumb:hover .slide-del {
    display: flex;
}

.slide-thumb-add {
    border: 2px dashed rgba(0, 0, 0, 0.15);
    background: transparent;
}

.slide-thumb-add span {
    font-size: 18px;
    font-weight: 300;
    color: var(--text-muted-app);
}

.slide-thumb-add:hover {
    border-color: rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.02);
}

.slide-counter {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted-app);
    font-family: var(--font-ui);
    white-space: nowrap;
    padding: 0 4px;
}

.slide-strip-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    padding-left: 12px;
}

.aso-select {
    padding: 5px 8px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
    font-size: 11px;
    font-family: var(--font-ui);
    color: var(--text-main);
    cursor: pointer;
    outline: none;
}

.aso-select:focus {
    border-color: var(--accent-app);
}

.btn-sm {
    padding: 5px 10px !important;
    font-size: 11px !important;
    border-radius: 6px !important;
}

.btn.primary {
    background: var(--accent-app);
    color: white;
    border: 1px solid var(--accent-app);
}

.btn.primary:hover {
    background: var(--accent-hover);
}

/* Templates Panel */
.template-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.template-btn {
    background: var(--bg-main);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.template-btn:hover {
    border-color: var(--accent-app);
    background: #f9fafb;
}

.template-thumb {
    width: 100%;
    aspect-ratio: 3/4;
    background: #e5e7eb;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #9ca3af;
}

.template-btn span {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-main);
}
.mockup-color-swatch:hover {
    border-color: #6b7280 !important;
}
.mockup-color-swatch.active {
    border-color: #fff !important;
    box-shadow: 0 0 0 2px #6b7280;
}
