:root {
    --primary-color: #000000;
    --accent-color: #2563EB;
    --bg-color: #F9FAFB;
    --card-bg: #FFFFFF;
    --text-main: #111827;
    --text-sub: #6B7280;
    --border-radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Utility: Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

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

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Nav */
nav {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    background: transparent;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-main);
}

/* Hero */
.hero-section {
    text-align: center;
    padding: 80px 0 60px;
}

.hero-section h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 24px;
    font-weight: 800;
}

.hero-section .highlight {
    background: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #2563EB;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-sub);
    margin-bottom: 40px;
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    padding: 16px 40px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.micro-copy {
    margin-top: 16px;
    font-size: 0.875rem;
    color: #9CA3AF;
}

/* Steps */
.steps-section {
    padding: 60px 0;
    background: white;
    border-top: 1px solid #F3F4F6;
    border-bottom: 1px solid #F3F4F6;
}

.steps-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.5rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 640px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }
}

.step-card {
    background: var(--bg-color);
    padding: 24px;
    border-radius: var(--border-radius);
    text-align: center;
}

.step-num {
    background: var(--primary-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-weight: bold;
    font-size: 0.9rem;
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-sub);
}

/* Templates */
.templates-section {
    padding: 80px 0;
}

.templates-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    font-weight: 700;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .templates-grid {
        grid-template-columns: 1fr;
    }
}

.template-card {
    background: var(--card-bg);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    padding: 32px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.2s;
    text-align: left;
}

.template-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.template-card.selected {
    border-color: var(--primary-color);
    background-color: #FDFDFD;
    transform: scale(1.02);
}

.template-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.template-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.template-card p {
    font-size: 0.95rem;
    color: var(--text-sub);
}

/* Generator */
.generator-section {
    padding: 40px 0 80px;
}

.generator-box {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
}

.selected-template-info {
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--text-sub);
    font-size: 0.9rem;
}

#current-template-name {
    color: var(--primary-color);
}

.input-group label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.input-group textarea {
    width: 100%;
    height: 160px;
    padding: 16px;
    font-size: 1rem;
    border: 1px solid #E5E7EB;
    border-radius: var(--border-radius);
    resize: none;
    font-family: inherit;
    transition: border 0.2s;
}

.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.action-area {
    margin-top: 24px;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
}

.generate-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.generate-btn:hover {
    background: #333;
}

.generate-btn:disabled {
    background: #CCC;
    cursor: not-allowed;
}

.status-text {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
    display: block;
}

.status-text.error-notice {
    color: #ef4444;
    /* red-500 */
    font-weight: 500;
}

/* Control Chips */
.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    /* Tighter gap */
    margin-top: 4px;
    margin-bottom: 16px;
    /* Add spacing after group */
}

.chip {
    padding: 6px 14px;
    /* More compact */
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #4b5563;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    outline: none;
    /* Remove default focus outline */
    -webkit-tap-highlight-color: transparent;
    /* Remove mobile tap highlight */
}

.chip:focus {
    outline: none;
}

.chip:hover:not(:disabled) {
    border-color: #000;
    color: #000;
    background: #f9fafb;
}

.chip.active {
    background: #000 !important;
    /* Force Black */
    color: #fff !important;
    /* Force White */
    border-color: #000 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-weight: 600;
}

.chip:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f3f4f6;
}

/* Mobile adjustments for chips and layout */
@media (max-width: 600px) {
    .chip {
        padding: 5px 12px;
        font-size: 0.8rem;
    }

    .panel-header h2 {
        font-size: 1.25rem;
        margin-bottom: 4px;
    }

    .panel-desc {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .input-group label,
    .group-label {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }

    .input-group textarea {
        height: 120px;
        /* Reduced height on mobile */
        padding: 12px;
    }

    .generator-box,
    .sidebar-middle {
        padding: 16px;
        /* Reduce padding on mobile container */
    }

    .control-group {
        margin-bottom: 12px;
        /* Tighter spacing between groups */
    }
}

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

.result-section {
    padding: 0 0 80px;
}

.result-container {
    max-width: 800px;
    margin: 0 auto;
}

.result-placeholder {
    background: #F3F4F6;
    border-radius: 12px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #E5E7EB;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.mock-image {
    width: 100%;
    height: 100%;
    min-width: 600px;
    min-height: 400px;
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.primary-btn,
.secondary-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
}

.primary-btn {
    background: var(--primary-color);
    color: white;
    border: none;
}

.secondary-btn {
    background: white;
    border: 1px solid #E5E7EB;
    color: var(--text-main);
}

/* Payment */
.payment-section {
    padding: 60px 0 100px;
    background: white;
    border-top: 1px solid #eee;
    text-align: center;
}

.payment-section h2 {
    margin-bottom: 8px;
    font-size: 2rem;
}

.sub-h2 {
    color: var(--text-sub);
    margin-bottom: 40px;
}

/* Pricing Tabs */
.pricing-tabs-container {
    display: inline-flex;
    background: #F3F4F6;
    padding: 4px;
    border-radius: 50px;
    margin-bottom: 40px;
}

.pricing-tab {
    padding: 10px 32px;
    border-radius: 40px;
    border: none;
    background: transparent;
    color: var(--text-sub);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.pricing-tab.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    animation: fadeIn 0.3s ease-out;
}

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

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

.pricing-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 32px;
    width: 280px;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: transform 0.2s;
}

.pricing-card.recommended {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.pricing-card:hover {
    transform: translateY(-4px) scale(1.05);
}

.recommend-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.price {
    font-size: 2rem;
    font-weight: 800;
    margin: 16px 0 4px;
}

.unit {
    font-size: 1rem;
    font-weight: normal;
    color: var(--text-sub);
}

.desc {
    color: var(--text-sub);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.buy-btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    cursor: pointer;
}

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

.buy-btn.outline:hover {
    background: #fdfdfd;
}

/* FAQ */
.faq-section {
    padding: 60px 0;
    background: var(--bg-color);
    border-top: 1px solid #E5E7EB;
}

.faq-item {
    margin-bottom: 24px;
}

.faq-item h4 {
    font-weight: 700;
    margin-bottom: 4px;
}

.compliance {
    margin-top: 40px;
    font-size: 0.8rem;
    color: #9CA3AF;
    text-align: center;
}

footer {
    text-align: center;
    padding: 40px 0;
    color: #9CA3AF;
    font-size: 0.9rem;
    background: white;
}

.result-message {
    text-align: center;
    margin: 20px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    padding: 16px;
    background: #F0F9FF;
    /* Light blue bg */
    border-radius: 8px;
    border: 1px solid #BAE6FD;
}

/* Advanced Form Styles */
.advanced-form {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

.form-group input,
.form-group select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 13px;
    background: white;
    color: #333;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4dabf7;
    box-shadow: 0 0 0 2px rgba(77, 171, 247, 0.1);
}

.form-group.full-width {
    width: 100%;
}

.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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

/* --- Layout Refactor (One-Page Flow) --- */

/* Hero Compact */
.hero {
    padding: 30px 20px;
    /* Reduced from 80px */
    text-align: center;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.hero .subtitle {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Main App Container - Removed in favor of workbench-layout */

/* Panels */
.panel {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #E5E7EB;
}

/* Helper: Sticky Right Panel */
.preview-panel {
    position: sticky;
    top: 20px;
    min-height: 600px;
    /* Ensure height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Template Selector Mobile Scroll */
.template-selector {
    /* Desktop: Stack vertical or grid? Let's keep vertical stack of cards for sidebar */
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.template-card {
    display: flex;
    align-items: center;
    padding: 12px;
    gap: 12px;
    text-align: left;
    /* Sidebar style */
    margin-bottom: 0;
    /* Override */
}

.template-card .template-icon {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.template-card h3 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.template-card p {
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.3;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .app-layout {
        grid-template-columns: 1fr;
        /* Stack */
        gap: 20px;
    }

    .template-selector {
        /* Horizontal Scroll Strip */
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .template-card {
        min-width: 260px;
        scroll-snap-align: center;
        flex-direction: column;
        /* Back to card look */
        text-align: center;
        padding: 16px;
    }

    .template-card .template-icon {
        margin-bottom: 8px;
    }

    .preview-panel {
        position: static;
        /* No sticky on mobile */
        min-height: auto;
    }
}

/* Result Placeholder Styling */
.result-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.result-placeholder {
    width: 100%;
    background: #f9fafb;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 400px;
}

.placeholder-text {
    color: #9ca3af;
    font-size: 1.1rem;
}

/* Result Actions Footer */
.result-actions-footer {
    padding: 20px 0;
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.btn-download-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-download-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: #333;
}

.btn-download-primary:active {
    transform: translateY(0);
}

.btn-download-primary .icon {
    font-size: 1.2rem;
}

/* clickable toasts */
.toast.clickable {
    cursor: pointer;
    border: 1px solid var(--accent-color);
    transition: transform 0.2s;
}

.toast.clickable:hover {
    transform: translateY(-2px);
    background: #eff6ff;
}

/* Community Widget */
.community-widget {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.btn-community {
    background: linear-gradient(135deg, #00C6FF 0%, #0072FF 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-community:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.qr-popup {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    text-align: center;
    width: 200px;
    animation: fadeIn 0.2s ease-out;
}

.qr-popup img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 8px;
}

.qr-popup p {
    font-size: 0.85rem;
    color: var(--text-sub);
    margin: 0;
}


/* =========================================
   3.0 Three-Column Workbench Layout
   ========================================= */

body {
    height: 100vh;
    overflow: hidden;
    background: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.workbench-layout {
    display: flex;
    flex-direction: column;
    /* Row for top-nav then workbench-main */
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.workbench-main {
    display: flex;
    flex: 1;
    width: 100%;
    justify-content: flex-start;
    /* Ensure left alignment */
    overflow: hidden;
}

/* --- Column 1: Navigation Sidebar (Left) --- */
/* --- Column 1: Navigation Sidebar (Left) --- */
.sidebar-left {
    width: 90px;
    background: #f8f9fa;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0;
    flex-shrink: 0;
    z-index: 20;
    overflow-y: auto;
    /* Enable scroll */
    overflow-x: hidden;
    height: 100%;
    /* Parent usually handles height, ensuring it fills container */
    scrollbar-width: none;
}

.sidebar-left::-webkit-scrollbar {
    display: none;
}

.brand {
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    background: #f8f9fa;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 24px 0 16px;
    z-index: 30;
    flex-shrink: 0;
    /* Glassmorphism for logo area optional, but solid is safer for scrolling */
}

.brand-logo-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.brand-logo-img:hover {
    transform: scale(1.05);
}

.logo-icon {
    display: none;
    /* Deprecated */
}

.template-nav-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    align-items: center;
    flex: 1;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    color: #6b7280;
}

.nav-item:hover {
    background: #e5e7eb;
    color: #111;
}

.nav-item.selected {
    background: #fff;
    color: #2563eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.nav-icon {
    font-size: 24px;
    margin-bottom: 6px;
}

.nav-label {
    font-size: 11px;
    font-weight: 500;
}

.nav-footer {
    padding-bottom: 20px;
}

/* --- Column 2: Configuration Sidebar (Middle) --- */
.sidebar-middle {
    width: 360px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 10;
}

.panel-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #f3f4f6;
}

.panel-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #111;
}

.panel-desc {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.4;
    margin: 0;
}

/* Scrollable Form Area */
.panel-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.control-group {
    margin-bottom: 24px;
}

.group-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #4b5563;
    /* Darker from #9ca3af */
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

/* Framed Input Container */
.input-container-framed {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    background: #fff;
    transition: box-shadow 0.2s;
}

.input-container-framed:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.05);
}

textarea#prompt-input {
    width: 100%;
    height: 140px;
    padding: 0;
    border: none;
    resize: none;
    font-size: 0.95rem;
    line-height: 1.6;
    background: transparent;
    color: #374151;
}

textarea#prompt-input:focus {
    outline: none;
}

.input-hint-text {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 8px;
    border-top: 1px dashed #f3f4f6;
    padding-top: 8px;
}

/* Advanced Form Styling */
.advanced-form {
    background: #f9fafb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    border: 1px solid #f3f4f6;
}

.form-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.form-row {
    margin-bottom: 10px;
}

.input-wrapper label {
    font-size: 0.8rem;
    /* Increased from 0.75rem */
    color: #4b5563;
    /* Darker from #6b7280 */
    margin-bottom: 6px;
    display: block;
    font-weight: 500;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.85rem;
    background: #fff;
}

/* Settings Grid */
.settings-grid.compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.setting-col label {
    font-size: 0.8rem;
    /* Increased from 0.75rem */
    color: #4b5563;
    /* Darker from #6b7280 */
    margin-bottom: 6px;
    display: block;
    font-weight: 500;
}

.setting-col select {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.model-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #dbeafe;
    background: #eff6ff;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #1e40af;
    font-weight: 500;
}

.micro-hint {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 6px;
}

/* Panel Footer */
.panel-footer {
    padding: 16px 24px;
    border-top: 1px solid #f3f4f6;
    background: #fff;
}

#generate-btn {
    width: 100%;
    background: linear-gradient(135deg, #111 0%, #333 100%);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.1s;
    position: relative;
    overflow: hidden;
}

#generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

#generate-btn:active {
    transform: scale(0.98);
}

#generate-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    /* Above modal (9999) */
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: rgba(17, 24, 39, 0.95);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: toast-in 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.toast.error {
    background: rgba(220, 38, 38, 0.95);
}

.toast.success {
    background: rgba(22, 163, 74, 0.95);
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@keyframes toast-out {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.status-text {
    text-align: center;
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 8px;
    font-family: monospace;
    word-break: break-all;
}

.status-text.error-notice {
    color: #ef4444;
    font-weight: 600;
}

/* --- Column 3: Main Stage (Right) --- */
.main-stage {
    flex: 1;
    background: #f3f4f6;
    background-image:
        linear-gradient(45deg, #e5e7eb 25%, transparent 25%),
        linear-gradient(-45deg, #e5e7eb 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e5e7eb 75%),
        linear-gradient(-45deg, transparent 75%, #e5e7eb 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    /* Checkerboard pattern */
    background-color: #f9fafb;
    background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    /* Dot grid preferred */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}

.canvas-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    /* Stack image and button vertically */
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    /* Enable scrolling when content exceeds viewport */
    padding: 20px;
}

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

.placeholder-art {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.canvas-placeholder h3 {
    font-size: 1.5rem;
    color: #374151;
    margin-bottom: 10px;
}

.canvas-placeholder p {
    color: #9ca3af;
    font-size: 1rem;
}

/* Shared Components (Loading, etc.) */
.hidden {
    display: none !important;
}

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

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.image-wrapper {
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    overflow: hidden;
    max-height: calc(100vh - 180px);
    /* Reserve more space for button below */
}

.image-wrapper img {
    display: block;
    max-height: calc(100vh - 180px);
    /* Reserve more space for button below */
    max-width: 100%;
}

.image-overlay-actions {
    position: absolute;
    bottom: 20px;
    right: 20px;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
}

@media (max-width: 800px) {
    .image-overlay-actions {
        display: none !important;
        /* Never block image on mobile */
    }
}

.image-wrapper:hover .image-overlay-actions {
    opacity: 1;
}

.icon-btn {
    background: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Mobile Responsive */
/* Mobile Responsive Optimization */
@media (max-width: 800px) {
    body {
        height: auto;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .workbench-layout {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }

    /* 1. Top Navigation Bar (Sticky) */
    .sidebar-left {
        width: 100%;
        height: auto;
        min-height: 70px;
        flex-direction: row;
        justify-content: flex-start;
        padding: 4px 0;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        position: sticky;
        top: 64px;
        /* Offset by top-nav height */
        z-index: 1000;
        overflow-x: auto;
        overflow-y: hidden;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        -webkit-overflow-scrolling: touch;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    }

    .workbench-layout {
        overflow-y: auto;
        height: auto;
    }

    .workbench-main {
        flex-direction: column;
        overflow: visible;
    }

    /* Hide Brand/Footer to save space */
    .brand {
        display: none;
    }

    .nav-footer {
        display: none;
    }

    .template-nav-list {
        flex-direction: row;
        width: auto;
        gap: 10px;
        padding: 0 16px;
        align-items: center;
    }

    .nav-item {
        width: 64px;
        height: 64px;
        flex-shrink: 0;
        border-radius: 12px;
        padding: 8px 4px;
        justify-content: center;
        background: transparent;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-item.selected {
        background: rgba(0, 0, 0, 0.04);
        transform: scale(0.95);
    }

    .nav-item .nav-icon {
        font-size: 1.4rem;
        margin-bottom: 4px;
    }

    .nav-item .nav-label {
        font-size: 10px;
        font-weight: 500;
        color: #666;
    }

    .nav-item.selected .nav-label {
        color: #000;
        font-weight: 700;
    }

    /* 2. Input Panel (Middle) */
    .sidebar-middle {
        width: 100%;
        height: auto;
        border-right: none;
        display: block;
        /* Remove flex column behavior that might restrict height */
    }

    .panel-header {
        padding: 16px;
    }

    .panel-header h2 {
        font-size: 1.25rem;
    }

    .panel-header p {
        font-size: 0.85rem;
    }

    .panel-scroll {
        height: auto;
        overflow: visible;
        padding: 0 16px 16px 16px;
    }

    .control-group {
        margin-bottom: 16px;
    }

    .input-container-framed textarea {
        min-height: 100px;
        font-size: 15px;
        line-height: 1.5;
    }

    /* 3. Output Stage (Bottom) */
    .preview-panel {
        width: 100%;
        min-height: auto;
        padding: 16px;
        position: static;
        background: #fbfbfc;
    }

    .result-placeholder {
        min-height: 320px;
        padding: 20px;
    }

    .placeholder-text {
        font-size: 1rem;
    }

    .main-stage {
        padding: 20px;
        min-height: auto;
        /* Let content dictate */
        border-top: 1px solid #e5e7eb;
    }

    /* Result Placeholder: Smaller on mobile */
    .canvas-placeholder {
        padding: 40px 20px;
    }

    .placeholder-art {
        font-size: 40px;
    }

    .canvas-placeholder h3 {
        font-size: 1.2rem;
    }

    .image-wrapper {
        max-height: none;
        /* Allow full height image */
        box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.15);
    }

    .image-wrapper img {
        max-height: none;
    }

    /* Ensure advanced form is usable */
    .settings-grid.compact {
        grid-template-columns: 1fr 1fr;
        /* Keep 2 col if possible, or 1fr for very small */
    }
}

/* =========================================
   Top Navigation & Auth Overhaul
   ========================================= */

.main-stage {
    flex: 1;
    /* Restore expansion */
    display: flex;
    flex-direction: column;
    padding: 0;
    /* Clear padding to let nav sit top */
    position: relative;
    background: #f9fafb;
}

.top-nav {
    width: 100%;
    height: 64px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 2000;
    /* Higher than template bar on mobile */
}

@media (max-width: 800px) {
    .top-nav {
        position: sticky;
        top: 0;
        background: white;
        padding: 0 16px;
        justify-content: space-between;
        z-index: 2000;
        /* Higher than template bar */
        height: 64px;
        flex-shrink: 0;
    }

    .top-nav-actions {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .qr-popup-dropdown {
        width: 180px;
        /* Reduced popup width */
        padding: 10px;
        top: 60px;
        right: 16px;
        transform: none;
    }

    .qr-popup-dropdown .qr-img {
        width: 130px;
        /* Reduced to shrink QR on mobile */
    }

    .result-actions-footer {
        display: none !important;
        /* Hide download button on mobile */
    }

    .mobile-save-hint {
        display: block !important;
        text-align: center;
        padding: 12px;
        color: #6b7280;
        font-size: 0.9rem;
        background: #f3f4f6;
        border-radius: 8px;
        margin-top: 12px;
        pointer-events: none;
        /* Never block long-press on image below it if it overlaps */
    }
}

.mobile-save-hint {
    display: none;
}

.top-nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* New Button Styles */
.btn-text-icon {
    background: none;
    border: none;
    color: #4b5563;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}

.btn-text-icon:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #111;
}

.btn-primary-sm {
    background: #111;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s;
}

.btn-primary-sm:hover {
    background: #000;
    transform: translateY(-1px);
}

/* User Profile Top */
.user-profile-top {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 30px;
}

.avatar-sm {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    /* Pinkish for variety */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.user-name {
    font-size: 0.8rem;
    color: #374151;
    font-weight: 500;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-text-xs {
    font-size: 0.75rem;
    color: #9ca3af;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 4px;
}

.btn-text-xs:hover {
    color: #ef4444;
}

/* QR Popup Dropdown (Absolute to header) */
.qr-popup-dropdown {
    position: absolute;
    top: 70px;
    right: 24px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    z-index: 200;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: popupFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.qr-popup-dropdown .qr-img {
    width: 180px;
    /* Reduced from 220px */
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: #fff;
    padding: 8px;
    border: 1px solid #f3f4f6;
}

.qr-popup-dropdown p {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    margin: 0;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }

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

/* Canvas Container Adjustment */
.canvas-container {
    flex: 1;
    width: 100%;
    height: calc(100% - 64px);
    /* Subtract header */
    padding: 20px;
}

/* =========================================
   Standard Domestic Mobile Login Module (BEM)
   ========================================= */

/* Modal Overlay */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.2s forwards;
}

.auth-modal-overlay.hidden {
    display: none !important;
}

/* Modal Card */
.ml-card {
    background: #fff;
    width: 340px;
    border-radius: 20px;
    padding: 32px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    text-align: center;
    transform: scale(0.95);
    animation: zoomIn 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

@keyframes zoomIn {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Close Button */
.ml-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

/* Header */
.ml-header {
    margin-bottom: 32px;
}

.ml-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Input Group */
.ml-input-group {
    display: flex;
    align-items: center;
    height: 48px;
    background: #f7f7f7;
    border-radius: 24px;
    padding: 0 16px;
    margin-bottom: 16px;
    position: relative;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.ml-input-group:focus-within {
    background: #fff;
    border-color: #ff2442;
    box-shadow: 0 0 0 3px rgba(255, 36, 66, 0.1);
}

.ml-prefix {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-right: 12px;
    padding-right: 12px;
    border-right: 1px solid #ddd;
    height: 20px;
    line-height: 20px;
    display: flex;
    align-items: center;
}

.ml-input {
    border: none;
    background: transparent;
    flex: 1;
    font-size: 15px;
    color: #333;
    outline: none;
    height: 100%;
}

.ml-input::placeholder {
    color: #ccc;
}

/* Get Code Button */
.ml-btn-code {
    border: none;
    background: none;
    color: #ff2442;
    font-size: 14px;
    font-weight: 500;
    padding-left: 12px;
    cursor: pointer;
    white-space: nowrap;
}

.ml-btn-code:disabled {
    color: #bbb;
    cursor: not-allowed;
}

/* Main Login Button */
.ml-btn-submit {
    width: 100%;
    height: 48px;
    background: #ff2442;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    margin-top: 16px;
    transition: opacity 0.2s;
}

.ml-btn-submit:hover {
    opacity: 0.9;
}

.ml-btn-submit:active {
    transform: scale(0.98);
}

/* Agreement */
.ml-agreement {
    margin-top: 16px;
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: 6px;
    padding: 0 4px;
    transition: transform 0.2s;
}

.ml-checkbox {
    margin-top: 2px;
    width: 14px;
    height: 14px;
    accent-color: #ff2442;
}

.ml-link {
    color: #5b6b85;
    text-decoration: none;
}

/* Animation Shake */
.shake {
    animation: shakeAnim 0.4s ease-in-out;
    color: #ff2442;
}

@keyframes shakeAnim {

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

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Inline Error Message */
.ml-error {
    margin-top: 12px;
    padding: 10px 12px;
    background: #fff2f0;
    border: 1px solid #ffccc7;
    border-radius: 8px;
    color: #ff4d4f;
    font-size: 13px;
    text-align: center;
    line-height: 1.4;
    animation: fadeIn 0.2s;
}

.ml-error.hidden {
    display: none;
}

/* Discouraged Chips (2K/4K) */
.chip.discouraged {
    border-color: #F87171 !important;
    /* Red-400 */
    color: #EF4444;
    /* Red-500 */
    background: transparent;
    opacity: 0.7;
    position: relative;
    padding-right: 28px;
    /* Make room for icon */
}

/* Add a visual warning icon via pseudo-element */
.chip.discouraged::after {
    content: "🐢";
    /* Turtle or Warning */
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    opacity: 0.8;
}

.chip.discouraged:hover {
    background: #FEF2F2;
    /* Red-50 */
    opacity: 1;
}

.chip.discouraged.active {
    background: #EF4444;
    /* Red-500 */
    color: white;
    border-color: #EF4444 !important;
    opacity: 1;
}

/* Ensure 1K looks great */
.chip[data-value="1K"].active {
    background: #10B981;
    /* Green-500 */
    border-color: #10B981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.chip[data-value="1K"]:hover {
    border-color: #10B981;
    color: #10B981;
    background: #ECFDF5;
}

/* Image Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    animation: fadeIn 0.2s ease-out;
}

.lightbox-overlay.hidden {
    display: none !important;
}

#lightbox-image {
    max-width: 95%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    opacity: 0.8;
}

.lightbox-hint {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 16px;
    border-radius: 20px;
    pointer-events: none;
}

/* Surreal Loading Animation */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.surreal-orb {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
    background-size: 200% 200%;
    animation: orb-breathe 3s ease-in-out infinite, orb-spin 8s linear infinite;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
    margin-bottom: 24px;
    position: relative;
    opacity: 0.9;
}

.surreal-orb::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(168, 85, 247, 0.3);
    border-top-color: transparent;
    border-bottom-color: transparent;
    animation: orb-ring 4s linear infinite;
}

.loading-main-text {
    font-size: 1.1rem;
    font-weight: 500;
    width: 100%;
    text-align: center;
    background: linear-gradient(90deg, #111827, #4b5563, #111827);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: text-shimmer 3s linear infinite;
    min-height: 24px;
    transition: opacity 0.3s;
}

@keyframes orb-breathe {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 50px rgba(236, 72, 153, 0.6);
    }
}

@keyframes orb-spin {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

@keyframes orb-ring {
    0% {
        transform: rotate(0deg) scale(0.9);
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        transform: rotate(360deg) scale(1.1);
        opacity: 0.3;
    }
}

@keyframes text-shimmer {
    to {
        background-position: 200% center;
    }
}

/* Updated Hero Content Copy Styles */
.hero-title {
    font-size: 2.2rem;
    /* Adjusted for better fit */
    line-height: 1.3;
    margin-bottom: 24px;
}

.intro-question {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 6px;
}

.intro-answer {
    color: #1f2937;
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.intro-answer strong {
    color: #6366f1;
    font-weight: 600;
}

.hero-scenarios {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.hero-benefits {
    font-size: 1.1rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 32px;
}

.benefit-highlight {
    background: linear-gradient(120deg, #e0e7ff 0%, #fae8ff 100%);
    padding: 3px 10px;
    border-radius: 6px;
    color: #4f46e5;
    font-weight: 600;
}

.hero-cta-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #111827;
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: pulse 2s infinite;
    cursor: default;
    /* Not clickable usually, just visual cue */
    transition: transform 0.2s;
}

.hero-cta-box:hover {
    transform: translateY(-2px);
}

.cta-arrow {
    animation: slideRight 1s ease-in-out infinite alternate;
}

@keyframes slideRight {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(4px);
    }
}

/* Mobile Tweak for new Copy */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 16px;
    }

    .intro-answer {
        font-size: 1rem;
    }

    .hero-cta-box {
        width: 100%;
        justify-content: center;
        font-size: 0.95rem;
    }
}