* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #374151;
    --secondary-color: #6b7280;
    --success-color: #059669;
    --warning-color: #d97706;
    --error-color: #dc2626;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --bg-card: #ffffff;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 6px;
    --radius-lg: 8px;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: #ffffff;
    height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.container {
    max-width: 750px;
    width: 100%;
    margin: 0 auto;
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-sizing: border-box;
}

/* Left Side Card SVG */
.left-side-card {
    position: fixed;
    left: -6.5px;
    top: 57%;
    transform: translateY(-50%);
    width: 219px;
    height: 400px;
    z-index: 0;
    pointer-events: none;
}

.left-side-card svg {
    width: 100%;
    height: 100%;
}

/* Right Side Card Image */
.right-side-card {
    position: fixed;
    right: -1.5px;
    top: 57%;
    transform: translateY(-50%);
    width: 219px;
    height: 400px;
    z-index: 0;
    pointer-events: none;
}

.right-side-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Brand Header Styles */
.brand-header {
    width: 100%;
    background: #ffffff;
    padding: 16px 0;
    flex-shrink: 0;
}

.brand-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.brand-logo-image {
    height: 36px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.brand-name {
    font-size: 1rem;
    font-weight: 700;
    color: #2d3748;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.brand-tagline {
    font-size: 0.6rem;
    font-weight: 400;
    color: #718096;
    letter-spacing: 0.01em;
}


/* Responsive */

@media (max-width: 480px) {
    .brand-header-content {
        padding: 0 12px;
    }
    
    .brand-logo-image {
        height: 28px;
    }
    
    .brand-name {
        font-size: 0.875rem;
    }
    
    .brand-tagline {
        font-size: 0.55rem;
    }
    
    .header-btn {
        padding: 5px 12px;
        font-size: 0.65rem;
    }
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 100%;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 20px;
    margin-top: -80px;
    max-width: 1170px;
    margin-left: auto;
    margin-right: auto;
}

.main-title {
    font-size: 1.85rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 5px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    white-space: normal;
    max-width: 1170px;
}

.subtitle {
    background: linear-gradient(90deg, #6269FD 0%, #1FD9FA 32.5%, #5481FC 73.5%, #862FFF 92.5%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    /* font-weight: 600; */
}

.feature-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #8b5cf6;
    font-weight: 500;
    margin: 0 0 30px 0;
}

.dev-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* Input Section */
.input-section {
    max-width: 724px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
    position: relative;
    background-image: url('assets/gradient.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
}

.url-input-wrapper {
    position: relative;
    width: 100%;
}

.url-input-wrapper.secondary {
    display: flex;
    align-items: center;
    gap: 10px;
}

.url-input {
    width: 100%;
    height: 48px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(90deg, #6269FD 0%, #1FD9FA 30.5%, #5481FC 64%, #862FFF 100%) border-box;
    color: #4a5568;

    position: relative;
    z-index: 1;
}

.url-input:focus {
    outline: none;

}

.url-input::placeholder {
    color: #cbd5e0;
}

.add-url-btn {
    width: 48px;
    height: 48px;
    border: 1px solid #54a5ff;
    background: white;
    color: #54a5ff;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.add-url-btn:hover {
    border-color: #3182ce;
    box-shadow: 0 6px 18px rgba(49, 130, 206, 0.25);
}

.url-input-wrapper.additional {
    display: flex;
    align-items: center;
    gap: 12px;
}

.remove-url-btn {
    width: 46px;
    height: 46px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #e53e3e;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.remove-url-btn:hover {
    background: #e53e3e;
    color: white;
    border-color: #e53e3e;
}

.remove-url-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-secondary);
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.remove-url-btn:hover {
    background: var(--error-color);
    color: white;
    border-color: var(--error-color);
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.add-more-btn {
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-more-btn:hover {
    background: #1f2937;
}

.skip-btn {
    padding: 10px 20px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.skip-btn:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.extract-section {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.extract-btn {
    padding: 13px 24px;
    background: #4299e1;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 8px rgba(66, 153, 225, 0.3);
    min-width: 180px;
    position: relative;
    z-index: 1;
}

.extract-btn:hover {
    background: #3182ce;
    /* transform: translateY(-1px); */
}

.extract-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--text-muted);
    transform: none;
    box-shadow: none;
}

/* Loading Styles */
.loading {
    text-align: center;
    padding: 20px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 12px;
}

/* Results Section */
.results-section {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    flex: 1;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.results-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.results-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.extraction-count {
    background: var(--bg-tertiary);
    padding: 6px 12px;
    border-radius: var(--radius);
    font-size: 0.8125rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.export-btn {
    padding: 10px 20px;
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.export-btn:hover {
    background: #047857;
}

/* Multiple Results Layout */
.multiple-results-container {
    display: grid;
    gap: 25px;
    margin-bottom: 40px;
}

.result-card {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.result-card.success-card {
    border-left: 3px solid var(--success-color);
}

.result-card.error-card {
    border-left: 3px solid var(--error-color);
    background: #fef2f2;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.result-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    word-break: break-all;
    flex: 1;
}

.result-header i {
    color: var(--success-color);
    flex-shrink: 0;
}

.error-card .result-header i {
    color: var(--error-color);
}

.error-badge {
    background: var(--error-color);
    color: white;
    padding: 4px 8px;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
}

.error-message {
    color: var(--error-color);
    font-style: italic;
}

.copy-individual-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: var(--radius);
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.copy-individual-btn:hover {
    background: #1f2937;
}

/* Result Content Sections */
.result-content {
    display: grid;
    gap: 20px;
}

.content-section h5 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.content-section h5 i {
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

/* Preview Styles */
.logos-preview {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.logo-preview-item {
    width: 40px;
    height: 30px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.logo-preview-item img {
    max-width: 35px;
    max-height: 25px;
    object-fit: contain;
}

.colors-preview {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.color-preview-item {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

.result-card .typography-preview {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.typography-preview-item {
    display: flex;
    gap: 8px;
    font-size: 0.875rem;
}

.type-name {
    color: var(--text-secondary);
    min-width: 80px;
}

.font-family {
    color: var(--text-primary);
    font-weight: 500;
}

.more-count {
    color: var(--text-secondary);
    font-size: 0.75rem;
    background: var(--bg-primary);
    padding: 4px 8px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.no-data {
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
}

/* Combined Analysis */
.combined-analysis {
    background: var(--bg-primary);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-top: 24px;
}

.combined-analysis h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.combined-analysis h3 i {
    color: var(--text-secondary);
}

.combined-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.combined-colors,
.combined-fonts {
    margin-bottom: 25px;
}

.combined-colors h4,
.combined-fonts h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.fonts-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.font-tag {
    background: var(--bg-secondary);
    padding: 6px 12px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

/* Legacy styles for single results */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

.result-card.full-width {
    grid-column: 1 / -1;
}

.result-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.result-card h3 i {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Screenshot */
.screenshot-container img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

/* Logos */
.logos-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.logo-item {
    text-align: center;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-primary);
}

.logo-item img {
    max-width: 80px;
    max-height: 60px;
    object-fit: contain;
    margin-bottom: 8px;
}

.logo-item p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    word-break: break-all;
}

/* Typography */
.typography-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.typography-item {
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-primary);
}

.typography-item h4 {
    margin-bottom: 8px;
    color: var(--primary-color);
}

.typography-item .font-details {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

/* Colors */
.colors-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.color-item {
    text-align: center;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.color-swatch {
    height: 80px;
    width: 100%;
}

.color-value {
    padding: 10px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--bg-primary);
    font-family: 'Courier New', monospace;
}

/* Raw Data */
.raw-data-container {
    position: relative;
}

.raw-data {
    background: #1f2937;
    color: #f9fafb;
    padding: 20px;
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: 0.8125rem;
    line-height: 1.5;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Source Code Pro', monospace;
}

.copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #1f2937;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Similarity Alert Styles */
.similarity-alert {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
}

.alert-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.alert-header i {
    color: var(--text-secondary);
    font-size: 1.25rem;
}

.alert-header h4 {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.similarity-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.similarity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--bg-primary);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.similarity-item i {
    color: var(--text-secondary);
    width: 16px;
}

.alert-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
    font-style: italic;
}

/* URL Selection Interface */
.url-selection-interface {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 25px;
}

.selection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 15px;
}

.selection-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.selection-header h4 i {
    color: var(--primary-color);
}

.selection-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.selection-btn {
    padding: 8px 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.selection-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.url-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.url-checkbox-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-primary);
    transition: all 0.3s ease;
}

.url-checkbox-item:hover {
    box-shadow: var(--shadow);
}

.url-checkbox {
    display: none;
}

.url-checkbox-label {
    display: block;
    padding: 15px 20px;
    cursor: pointer;
    position: relative;
}

.url-checkbox-label::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 3px;
    background: white;
    transition: all 0.3s ease;
}

.url-checkbox:checked + .url-checkbox-label::before {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.url-checkbox:checked + .url-checkbox-label::after {
    content: '';
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background-image: url('assets/dev-logo.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.checkbox-content {
    margin-left: 35px;
}

.url-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.url-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.url-domain {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.url-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.url-stats .stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.url-stats .stat i {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.selection-summary {
    text-align: center;
    padding: 12px;
    background: var(--bg-primary);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    font-weight: 600;
}

.selection-summary-none {
    color: var(--error-color);
    background: #fef2f2;
    border-color: var(--border-color);
}

.selection-summary-all {
    color: var(--success-color);
    background: #f0fdf4;
    border-color: var(--border-color);
}

.selection-summary-partial {
    color: var(--warning-color);
    background: #fffbeb;
    border-color: var(--border-color);
}

.url-selection-info {
    margin-bottom: 15px;
}

.url-selection-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Step Modal Styles */
.step-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.modal-container {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 30px -6px rgba(0, 0, 0, 0.2);
    max-width: 700px;
    width: 100%;
    height: 70vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 16px 24px 12px;
    background: #ffffff;
    flex-shrink: 0;
}

/* Achievement Banner */
.achievement-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 12px;
    padding: 4px 8px;
    background: transparent;
    color: #8b5cf6;
    font-size: 0.7rem;
    font-weight: 500;
}

.achievement-banner .dev-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* Progress Section */
.progress-section {
    margin-bottom: 16px;
}

.progress-indicators {
    position: relative;
    width: 100%;
    padding: 0;
    margin-bottom: 8px;
    min-height: 50px; /* Ensure space for labels */
    overflow: hidden; /* Clip any line that extends beyond the first/last circles */
}

/* Hide line before first circle - positioned relative to container */
.progress-indicators::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px; /* Align with line center (28px / 2) */
    width: 16px; /* Slightly wider to account for sub-pixel rendering */
    height: 3px; /* Slightly taller to ensure coverage */
    background: #ffffff; /* Match modal background */
    z-index: 2; /* Above line (1) but below circle (3) */
    transform: translateY(-0.5px); /* Center vertically */
}

/* Single continuous progress line - background */
/* Line starts at center of first circle and ends at center of last circle */
.progress-line {
    position: absolute;
    top: 14px; /* Align with center of step circles (28px / 2) */
    left: 14px; /* Start at first circle center */
    right: 14px; /* End at last circle center */
    height: 2px;
    background: #e5e7eb;
    z-index: 1;
    border-radius: 1px;
}

/* Completed portion of the line - foreground */
.progress-line-completed {
    height: 100%;
    background: #3b82f6;
    transition: width 0.3s ease;
    width: 0%;
    border-radius: 1px;
}

/* Container for all steps - positioned on top */
.progress-steps-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
    width: 100%;
    padding: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    flex-shrink: 0;
}

/* Remove the old pseudo-element on first step - now handled by container */
.progress-step:first-child::before {
    display: none;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.7rem;
    background: #e5e7eb;
    color: #9ca3af;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
}

.progress-step.active .step-number,
.progress-step.completed .step-number {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.step-label {
    font-size: 0.65rem;
    color: #9ca3af;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.progress-step.active .step-label,
.progress-step.completed .step-label {
    color: #374151;
    font-weight: 600;
}

/* Hide old connector elements - no longer needed */
.progress-connector {
    display: none;
}

/* Title Section */
.modal-title-section {
    text-align: center;
}

.modal-main-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px 0;
    letter-spacing: -0.025em;
}

.modal-subtitle {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.close-modal-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 4px;
    z-index: 10;
}

.close-modal-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.modal-body {
    flex: 1;
    overflow: hidden;
    padding: 0;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
}

.step-content {
    padding: 16px 24px;
    background: #f9fafb;
    flex: 1;
    overflow-y: auto;
}

.modal-footer {
    padding: 12px 24px;
    background: #ffffff;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
    border-top: 1px solid #e5e7eb;
}

.simple-navigation {
    display: flex;
    gap: 8px;
    align-items: center;
}

.simple-nav-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #374151;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    min-width: 80px;
    justify-content: center;
}

.simple-nav-btn:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #d1d5db;
}

.simple-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f9fafb;
    color: #9ca3af;
}

.simple-nav-btn.next-btn {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.simple-nav-btn.next-btn:hover:not(:disabled) {
    background: #2563eb;
    border-color: #2563eb;
}

.step-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.action-btn.export-btn {
    background: var(--success-color);
    color: white;
}

.action-btn.export-btn:hover {
    background: #047857;
}

.action-btn.copy-btn {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.action-btn.copy-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Step Content Styles */
.step-overview {
    text-align: center;
    padding: 16px 0;
}

.step-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.stat-card {
    background: var(--bg-secondary);
    padding: 14px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-secondary);
    margin-top: 4px;
    font-size: 0.75rem;
}

/* Logos Step Styles */
.step-header-text {
    text-align: center;
    margin-bottom: 16px;
    color: #6b7280;
    font-size: 0.75rem;
}

.logos-step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    max-width: 100%;
}

.logo-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.logo-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.logo-card img {
    max-width: 80px;
    max-height: 50px;
    object-fit: contain;
    margin-bottom: 8px;
    border-radius: 4px;
}

.logo-card .logo-info {
    font-size: 0.7rem;
    color: #374151;
    font-weight: 600;
    margin-bottom: 2px;
}

.logo-card .logo-source {
    font-size: 0.6rem;
    color: #9ca3af;
    font-style: italic;
}

.logo-card .logo-dimensions {
    font-size: 0.6rem;
    color: #6b7280;
    margin-top: 2px;
}

/* Colors Step Styles */
.colors-step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.color-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-primary);
    transition: all 0.2s ease;
}

.color-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.color-swatch {
    height: 60px;
    cursor: pointer;
    position: relative;
}

.color-card-info {
    padding: 8px;
    text-align: center;
}

.color-value {
    font-size: 0.75rem;
    color: var(--text-primary);
    font-family: 'SF Mono', monospace;
    margin-bottom: 3px;
}

.color-usage {
    font-size: 0.65rem;
    color: var(--text-secondary);
}

/* Typography Step Styles */
.typography-step-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.typography-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
    transition: all 0.2s ease;
}

.typography-card:hover {
    box-shadow: var(--shadow);
}

.typography-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.typography-type {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
}

.typography-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.typography-card .typography-preview {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

.typography-card .typography-preview span {
    display: block;
}
.typography-card .typography-preview .preview-text {
    display: block;
    font-size: var(--preview-font-size, inherit) !important;
    line-height: inherit;
}

/* Analysis Step Styles */
.analysis-step {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.analysis-section {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.analysis-section h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.analysis-section h4 i {
    color: var(--primary-color);
}

.similarity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.similarity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-primary);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

.similarity-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.similarity-badge {
    background: var(--primary-color);
    color: white;
    padding: 3px 6px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
}

/* Raw Data Step Styles */
.raw-data-step {
    position: relative;
}

.raw-data-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.raw-data-tab {
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s ease;
}

.raw-data-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.raw-data-content {
    background: #1f2937;
    color: #f9fafb;
    padding: 16px;
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: 0.75rem;
    line-height: 1.4;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'SF Mono', 'Monaco', monospace;
    position: relative;
}

.copy-data-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 0.65rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.copy-data-btn:hover {
    background: #1f2937;
}

.no-data-message {
    text-align: center;
    padding: 30px 16px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.no-data-message i {
    font-size: 1.8rem;
    margin-bottom: 10px;
    opacity: 0.5;
    display: block;
}

.no-data-message h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.no-data-message p {
    margin: 0;
    font-size: 0.8rem;
}

/* Color card copy feedback */
.color-card.copied {
    transform: scale(0.95);
    box-shadow: 0 0 0 3px var(--success-color);
}

.color-card {
    transition: all 0.2s ease;
}

/* Copy feedback animation */
@keyframes copySuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.copy-success {
    animation: copySuccess 0.3s ease;
}

/* Fonts summary styles */
.fonts-summary {
    margin-bottom: 24px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.fonts-summary h5 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.fonts-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.font-tag {
    background: var(--bg-primary);
    padding: 4px 8px;
    border-radius: var(--radius);
    font-size: 0.75rem;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

/* Typography source */
.typography-source {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 4px 8px;
    border-radius: 4px;
}

.logo-source {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-style: italic;
}

/* Step header spacing */
.step-header {
    margin-bottom: 24px;
}

.step-header h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.step-header h4 i {
    color: var(--primary-color);
}

.step-header p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
    font-size: 0.8rem;
}

/* Common colors section */
.common-colors-section {
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.common-colors-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.common-colors-section h4 i {
    color: var(--warning-color);
}

/* Mobile Responsive Updates */
@media (max-width: 768px) {
    .step-modal {
        padding: 10px;
    }
    
    .modal-container {
        height: 75vh;
        max-width: 95vw;
    }
    
    .modal-header {
        padding: 16px 20px 12px;
    }
    
    .close-modal-btn {
        top: 12px;
        right: 12px;
    }
    
    .achievement-banner {
        margin-bottom: 16px;
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    .progress-indicators {
        padding: 0;
        min-height: 45px;
    }
    
    /* Hide line before first circle on mobile - positioned relative to container */
    .progress-indicators::before {
        left: 0; /* Explicitly set to ensure it starts at container edge */
        top: 12px; /* Align with line center for mobile (24px / 2) */
        width: 16px; /* Wider for mobile to ensure full coverage */
        height: 3px; /* Slightly taller to ensure coverage */
        transform: translateY(-0.5px); /* Center vertically */
        z-index: 2; /* Explicitly set z-index for mobile */
    }
    
    .progress-line {
        top: 12px; /* Adjust for smaller circles (24px / 2) */
        left: 12px; /* Start at first circle center */
        right: 12px; /* End at last circle center */
    }
    
    .progress-steps-container {
        padding: 0;
        gap: 0;
    }
    
    /* Remove the old pseudo-element on first step for mobile */
    .progress-step:first-child::before {
        display: none;
    }
    
    .step-number {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
    }
    
    .step-label {
        font-size: 0.6rem;
    }
    
    .modal-main-title {
        font-size: 1.25rem;
    }
    
    .modal-subtitle {
        font-size: 0.8rem;
    }
    
    .step-content {
        padding: 16px 20px;
    }
    
    .modal-footer {
        padding: 16px 20px;
    }
    
    .step-navigation {
        flex-direction: column;
        gap: 16px;
    }
    
    .step-indicators {
        order: -1;
    }
    
    .nav-btn {
        flex: 1;
        justify-content: center;
    }
    
    .step-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .step-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .logos-step-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .colors-step-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }
    
    .typography-details {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .analysis-section {
        padding: 16px;
    }
    
    .similarity-item {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .raw-data-tabs {
        flex-direction: column;
        gap: 4px;
        margin-bottom: 12px;
    }
    
    .raw-data-tab {
        text-align: center;
        border-bottom: 1px solid var(--border-color);
        border-radius: 4px;
    }
    
    .raw-data-tab.active {
        background: var(--primary-color);
        color: white;
        border-bottom-color: var(--primary-color);
    }
    
    .fonts-summary {
        padding: 12px;
    }
    
    .fonts-list {
        gap: 6px;
    }
    
    .font-tag {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .step-title {
        font-size: 1.25rem;
    }
    
    .step-counter {
        font-size: 0.8rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .step-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .logos-step-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .colors-step-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .modal-header {
        padding: 12px 16px;
    }
    
    .step-content {
        padding: 12px 16px;
    }
    
    .modal-footer {
        padding: 12px 16px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .step-modal {
        padding: 10px;
    }
    
    .modal-container {
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .step-content {
        padding: 16px 20px;
    }
    
    .modal-footer {
        padding: 16px 20px;
    }
    
    .step-navigation {
        flex-direction: column;
        gap: 16px;
    }
    
    .step-indicators {
        order: -1;
    }
    
    .nav-btn {
        flex: 1;
        justify-content: center;
    }
    
    .step-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .step-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .logos-step-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .colors-step-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }
    
    .typography-details {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .analysis-section {
        padding: 16px;
    }
    
    .similarity-item {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .input-section {
        padding: 20px;
    }
    
    .url-input-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .remove-url-btn {
        align-self: flex-end;
        margin-top: -10px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .results-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .results-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .result-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .combined-stats {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .logos-preview,
    .colors-preview {
        justify-content: flex-start;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .logo h1 {
        font-size: 1.75rem;
        text-align: center;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .colors-container {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .logos-container {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    /* Responsive styles for new components */
    .similarity-alert {
        padding: 20px;
    }
    
    .alert-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .similarity-items {
        gap: 8px;
    }
    
    .similarity-item {
        padding: 10px;
        gap: 8px;
    }
    
    .selection-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .selection-controls {
        justify-content: center;
    }
    
    .selection-btn {
        flex: 1;
        min-width: 0;
        justify-content: center;
    }
    
    .url-checkbox-label {
        padding: 12px 15px;
    }
    
    .url-checkbox-label::before {
        left: 12px;
    }
    
    .url-checkbox:checked + .url-checkbox-label::after {
        left: 16px;
    }
    
    .checkbox-content {
        margin-left: 30px;
    }
    
    .url-stats {
        gap: 10px;
    }
    
    .url-stats .stat {
        font-size: 0.75rem;
    }
}

/* Banner Step Styles */
.banner-step {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.banner-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
    text-align: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border-color);
    min-height: 200px;
}

.banner-loading .spinner {
    width: 32px;
    height: 32px;
    margin-bottom: 16px;
}

.banner-loading h3 {
    color: var(--text-primary);
    margin-bottom: 6px;
    font-size: 1.25rem;
}

.banner-loading p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.banner-preview-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.banner-preview {
    position: relative;
}

.banner-preview img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

.banner-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.banner-info > div {
    font-size: 0.875rem;
}

.banner-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--bg-card);
    padding: 25px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.style-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.style-selector label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.banner-style-select {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.banner-style-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.banner-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.regenerate-banner-btn,
.download-banner-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.regenerate-banner-btn {
    background: #6366f1;
    color: white;
}

.regenerate-banner-btn:hover:not(:disabled) {
    background: #5855eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.regenerate-banner-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.download-banner-btn {
    background: var(--success-color);
    color: white;
}

.download-banner-btn:hover {
    background: #047857;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.banner-stats {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.banner-stats h5 {
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 1rem;
}

.banner-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 0;
}

.banner-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.banner-stat .stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.banner-stat .stat-value {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 600;
}

.banner-color-preview {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.banner-color-preview strong {
    font-size: 0.875rem;
    color: var(--text-primary);
}

.banner-colors {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.banner-colors-inline {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.banner-color-swatch {
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.banner-color-swatch:hover {
    transform: scale(1.1);
}

.banner-color-swatch-small {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.banner-color-swatch-small:hover {
    transform: scale(1.15);
}

/* Banner Next Section Styles */
.banner-next-section {
    margin-top: 40px;
    padding: 0;
}

.banner-next-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.banner-next-content {
    padding: 30px;
    text-align: center;
    color: white;
}

.banner-next-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.banner-next-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 25px;
    color: white;
}

.banner-next-btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 160px;
    justify-content: center;
}

.banner-next-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: #f8fafc;
}

.banner-next-btn:active {
    transform: translateY(-1px);
}

.banner-next-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.banner-next-btn:hover i {
    transform: translateX(3px);
}

/* Banner Next Responsive */
@media (max-width: 768px) {
    .banner-next-content {
        padding: 25px 20px;
    }
    
    .banner-next-content h4 {
        font-size: 1.3rem;
    }
    
    .banner-next-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .banner-next-btn {
        padding: 14px 30px;
        font-size: 1rem;
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .banner-next-section {
        margin-top: 30px;
    }
    
    .banner-next-content {
        padding: 20px 15px;
    }
    
    .banner-next-content h4 {
        font-size: 1.2rem;
    }
    
    .banner-next-content p {
        font-size: 0.95rem;
    }
    
    .banner-next-btn {
        padding: 12px 25px;
        font-size: 0.95rem;
        gap: 8px;
    }
}

/* Responsive Design for Banner Step */
@media (max-width: 768px) {
    .banner-info {
        flex-direction: column;
        align-items: start;
        gap: 8px;
    }
    
    .banner-actions {
        flex-direction: column;
    }
    
    .banner-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .banner-controls {
        padding: 20px;
    }
}

/* New Design Responsive Styles */
@media (max-width: 768px) {
    .container {
        padding: 12px;
    }
    
    .brand-header {
        padding: 12px 0;
    }
    
    .brand-header-content {
        padding: 0 20px;
    }
    
    .brand-logo {
        gap: 8px;
    }
    
    .brand-logo-image {
        height: 32px;
    }
    
    .brand-name {
        font-size: 0.95rem;
    }
    
    .brand-tagline {
        font-size: 0.55rem;
    }
    
    .header {
        margin-bottom: 24px;
    }
    
    .main-title {
        font-size: 1.4rem;
        white-space: normal;
        text-align: center;
        word-wrap: break-word;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .input-section {
        gap: 10px;
        max-width: 100%;
    }
    
    .url-input {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    
    .url-input-wrapper.secondary {
        flex-direction: row;
        gap: 8px;
    }
    
    .url-input-wrapper.additional {
        flex-direction: row;
        gap: 8px;
    }
    
    .add-url-btn,
    .remove-url-btn {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }
    
    .extract-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: 160px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 12px;
        max-width: 100%;
    }
    
    .brand-header {
        padding: 10px 0;
    }
    
    .brand-header-content {
        padding: 0 12px;
    }
    
    .brand-logo {
        gap: 6px;
    }
    
    .brand-logo-image {
        height: 28px;
    }
    
    .brand-name {
        font-size: 0.9rem;
    }
    
    .brand-tagline {
        font-size: 0.5rem;
    }
    
    .header {
        margin-bottom: 20px;
    }
    
    .main-title {
        font-size: 1.2rem;
        white-space: normal;
        text-align: center;
        word-wrap: break-word;
        line-height: 1.2;
        padding: 0 8px;
    }
    
    .subtitle {
        font-size: 1.1rem;
        padding: 0 8px;
    }
    
    .feature-text {
        font-size: 0.8rem;
        gap: 4px;
        padding: 0 8px;
    }
    
    .input-section {
        max-width: 100%;
        padding: 0 4px;
    }
    
    .url-input {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .url-input-wrapper.secondary,
    .url-input-wrapper.additional {
        flex-direction: column;
        gap: 8px;
    }
    
    .add-url-btn,
    .remove-url-btn {
        width: 100%;
        height: 40px;
    }
    
    .extract-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
        min-width: 160px;
    }
}

/* Footer Styles */
.footer {
    width: 100%;
    padding: 12px 0;
    border-top: 1px solid #e2e8f0;
    background: #f8f8f8;
    flex-shrink: 0;
    box-shadow: 0px 4px 4px 0px #0000001A;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 30px;
}

.footer-left {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-start;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 32px;
    height: 32px;
    background: #f7fafc;
    color: #718096;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.social-link:hover {
    background: #edf2f7;
    color: #4a5568;
    transform: translateY(-1px);
}

.footer-center {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    margin-right: 40px;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-nav-link {
    color: #4a5568;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.footer-nav-link:hover {
    color: #2d3748;
}

.nav-separator {
    color: #cbd5e0;
    font-size: 0.5rem;
}

.footer-right {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
}

.company-logo .logo-image {
    height: 28px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

.company-logo .logo-text {
    color: #667eea;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 0 20px;
    }
    
    .footer-left {
        flex: 0 0 auto;
    }
    
    .footer-center {
        flex: 1;
        margin-right: 20px;
        justify-content: flex-end;
    }
    
    .footer-right {
        flex: 0 0 auto;
    }
    
    .social-links {
        justify-content: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 0 12px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .footer-center {
        display: none;
    }
    
    .social-link {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .company-logo .logo-image {
        height: 24px;
        max-width: 100px;
    }
}

/* Finish Section Styles */
.finish-section {
    margin-top: 30px;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 2px dashed var(--border-color);
}

.finish-btn {
    background: linear-gradient(135deg, var(--success-color), #34d399);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-lg);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.finish-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(5, 150, 105, 0.3);
}

.finish-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.finish-btn i.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Theme Update Success Styles */
.theme-update-success {
    padding: 40px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: var(--radius-lg);
    border: 2px solid var(--success-color);
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 20px;
}

.theme-update-success h3 {
    color: var(--success-color);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.theme-update-success p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.sandbox-url-container {
    background: white;
    padding: 25px;
    border-radius: var(--radius-lg);
    margin: 30px 0;
    box-shadow: var(--shadow);
}

.sandbox-url-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.sandbox-url-box {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sandbox-url-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}

.copy-url-btn {
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.copy-url-btn:hover {
    background: var(--text-primary);
    transform: translateY(-2px);
}

.copy-url-btn.copied {
    background: var(--success-color);
}

.theme-update-details {
    background: white;
    padding: 25px;
    border-radius: var(--radius-lg);
    margin: 20px 0;
    box-shadow: var(--shadow);
    text-align: left;
}

.theme-update-details h4 {
    margin-bottom: 20px;
    color: var(--text-primary);
    text-align: center;
}

.update-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.update-detail {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.update-detail strong {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.color-sample {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-sample .color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: 2px solid var(--border-color);
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.view-design-system-btn {
    padding: 14px 30px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: var(--shadow);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.view-design-system-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.start-over-btn {
    padding: 14px 30px;
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.start-over-btn:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

/* Responsive Design for Success Screen */
@media (max-width: 768px) {
    .sandbox-url-box {
        flex-direction: column;
    }
    
    .sandbox-url-input {
        width: 100%;
    }
    
    .copy-url-btn {
        width: 100%;
        justify-content: center;
    }
    
    .update-details-grid {
        grid-template-columns: 1fr;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .view-design-system-btn,
    .start-over-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Additional Mobile Responsive for New Design */
@media (max-width: 768px) {
    .modal-footer {
        padding: 12px 20px !important;
    }
    
    .simple-navigation {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .simple-nav-btn {
        width: 100%;
        min-width: auto;
        padding: 8px 16px;
        font-size: 0.75rem;
    }
    
    .logos-step-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .logo-card {
        padding: 12px;
    }
    
    .step-header-text {
        font-size: 0.8rem;
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .modal-container {
        width: 95vw;
        height: 80vh;
        margin: 0;
    }
    
    .progress-indicators {
        scale: 0.75;
        margin: 0 -20px;
    }
    
    .step-number {
        width: 24px;
        height: 24px;
        font-size: 0.6rem;
    }
    
    .step-label {
        font-size: 0.6rem;
    }
    
    .progress-connector {
        min-width: 15px;
        max-width: 25px;
        margin-top: 12px;
    }
    
    .logos-step-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .logo-card {
        padding: 10px;
    }
    
    .logo-card img {
        max-width: 70px;
        max-height: 50px;
    }
    
    .modal-main-title {
        font-size: 1.1rem;
    }
    
    .modal-subtitle {
        font-size: 0.75rem;
    }
    
    .simple-nav-btn {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
}

/* Lead Generation Modal Styles */
.lead-generation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.lead-generation-modal.hidden {
    display: none;
}

.lead-generation-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.lead-modal-container {
    position: relative;
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: modalSlideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.lead-modal-header {
    position: relative;
    padding: 20px 24px 0 24px;
    text-align: center;
    flex-shrink: 0;
}

.ai-pundit-avatar {
    display: flex;
    justify-content: center;
    margin: 0;
}

.avatar-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: transparent;
    padding: 0;
    object-fit: contain;
}

.close-lead-modal-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 20px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-lead-modal-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.lead-modal-content {
    padding: 0 24px 20px 24px;
    overflow: visible;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.lead-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    text-align: center;
}

.lead-modal-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.5;
}

.lead-modal-subtitle strong {
    color: #000000;
    font-weight: 600;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: min-content;
    flex: 1;
    padding-bottom: 8px;
}

.form-group {
    position: relative;
}

.lead-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    background: #fff;
    transition: all 0.2s ease;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

.lead-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.lead-input::placeholder {
    color: #9ca3af;
}

.form-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 16px;
    pointer-events: none;
    transition: color 0.2s ease;
}

.form-group:focus-within .form-icon {
    color: #667eea;
}

.generate-design-system-btn {
    width: 100%;
    padding: 14px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
    margin-top: 12px;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
    flex-shrink: 0;
}

.generate-design-system-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.generate-design-system-btn:active {
    transform: translateY(0);
}

.generate-design-system-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Responsive adjustments for lead modal */
@media (max-width: 480px) {
    .lead-modal-container {
        width: 95%;
        margin: 0 10px;
        max-height: 95vh;
    }
    
    .lead-modal-header {
        padding: 16px 20px 0 20px;
    }
    
    .lead-modal-content {
        padding: 0 20px 16px 20px;
    }
    
    .ai-pundit-avatar {
        margin-bottom: 12px;
    }
    
    .avatar-image {
        width: 70px;
        height: 70px;
    }
    
    .lead-modal-title {
        font-size: 1.25rem;
        margin-bottom: 4px;
    }
    
    .lead-modal-subtitle {
        margin-bottom: 20px;
        font-size: 0.8125rem;
    }
    
    .lead-form {
        gap: 12px;
    }
    
    .lead-input {
        padding: 12px 12px 12px 40px;
        font-size: 0.8125rem;
    }
    
    .form-icon {
        left: 14px;
    }
    
    .form-error {
        min-height: 48px;
        max-height: 70px;
        padding: 10px 14px;
        font-size: 0.8125rem;
        margin-bottom: 12px;
    }
    
    .lead-form {
        padding-bottom: 6px;
    }
    
    .generate-design-system-btn {
        padding: 12px;
        font-size: 0.8125rem;
        margin-top: 10px;
    }
}

/* Form Error Styles */
.form-error {
    background-color: #fee2e2;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 0.875rem;
    border: 1px solid #fecaca;
    min-height: 52px;
    max-height: 80px;
    display: flex;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    flex-shrink: 0;
    word-wrap: break-word;
    overflow-y: auto;
    line-height: 1.4;
}

.form-error:not(.hidden) {
    visibility: visible;
    opacity: 1;
}

.form-error.hidden {
    visibility: hidden;
    opacity: 0;
}

/* Design System Loader Styles */
.design-system-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.design-system-loader.hidden {
    display: none;
}

.loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.loader-container {
    position: relative;
    z-index: 1;
    background: white;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    min-width: 300px;
}

.loader-content h3 {
    margin: 24px 0 8px 0;
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 600;
}

.loader-content p {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
}

.loader-spinner {
    font-size: 3rem;
    color: #3b82f6;
    margin-bottom: 16px;
}

.loader-spinner i {
    animation: spin 1s linear infinite;
}

/* Screen 2: Updated Design System Loader */
.loader-container-screen2 {
    position: relative;
    z-index: 1;
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.loader-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.loader-close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.loader-close-btn:active {
    transform: scale(0.95);
}

.loader-close-btn i {
    color: #374151;
    font-size: 16px;
}

.loader-header {
    text-align: center;
    width: 100%;
}

.welcome-text {
    font-size: 20px;
    color: #242424;
    margin: 0 0 8px 0;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

.company-name-display {
    font-size: 32px;
    font-weight: 600;
    background: linear-gradient(90deg, #6269FD 0%, #1FD9FA 32.5%, #5481FC 73.5%, #862FFF 92.5%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 12px 0;
    font-family: 'Poppins', sans-serif;
}

.analysis-text {
    font-size: 16px;
    color: #242424;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    line-height: 1.5;
}

.loader-spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.loader-spinner-container .loader-spinner {
    font-size: 2.5rem;
    color: #667eea;
    margin: 0;
}

/* Generation Process Container */
.generation-process-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 10px 0;
}

/* Left Container with Shimmer Effect */
.left-generation-container {
    width: 241px;
    height: 194px;
    background: #FEF7FF;
    border: 1px solid #AFCDFD;
    border-radius: 12px;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

/* Shimmer Lines Container */
.shimmer-lines-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 193px;
    position: absolute;
    top: 100px;
    left: 24px;
}

/* Shimmer Lines */
.shimmer-line {
    width: 193px;
    height: 12px;
    background: linear-gradient(90deg, 
        #E0E7FF 0%, 
        #C7D2FE 50%, 
        #E0E7FF 100%
    );
    background-size: 200% 100%;
    border-radius: 6px;
    animation: shimmer 2s infinite;
}

.shimmer-line:nth-child(2) {
    width: 160px;
    animation-delay: 0.2s;
}

.shimmer-line:nth-child(3) {
    width: 120px;
    animation-delay: 0.4s;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Logo Shimmer Container */
.logo-shimmer-container {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 193px;
    height: 65px;
    border-radius: 8px;
    overflow: hidden;
}

.logo-shimmer {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        #E0E7FF 0%, 
        #C7D2FE 50%, 
        #E0E7FF 100%
    );
    background-size: 200% 100%;
    border-radius: 8px;
    animation: shimmer 1.5s infinite;
}

/* Dynamic Logo Container */
.dynamic-logo-container {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 193px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease-in;
}

.dynamic-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Horizontal Shimmer Lines Below Logo */
.logo-horizontal-shimmer {
    position: absolute;
    top: 100px;
    left: 24px;
    width: 193px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.horizontal-shimmer-line {
    width: 193px;
    height: 12px;
    background: linear-gradient(90deg, 
        #E0E7FF 0%, 
        #C7D2FE 50%, 
        #E0E7FF 100%
    );
    background-size: 200% 100%;
    border-radius: 6px;
    animation: shimmer 2s infinite;
}

.horizontal-shimmer-line:nth-child(2) {
    width: 160px;
    animation-delay: 0.2s;
}

.horizontal-shimmer-line:nth-child(3) {
    width: 120px;
    animation-delay: 0.4s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Link Animation Container */
.link-animation-container {
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    background: white;
    border-radius: 50%;
    padding: 12px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.08);
    margin: 0 -10px;
    z-index: 2;
    overflow: hidden;
}

.link-animation {
    width: 44px;
    height: 44px;
    object-fit: contain;
    background: transparent;
    border-radius: 50%;
}

/* Right Container with AI Pundit Avatar */
.right-generation-container {
    width: 241px;
    height: 194px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.avatar-container {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    box-sizing: border-box;
}

.pundit-avatar {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.code-preview {
    width: 100%;
    background: #F9FAFB;
    border-radius: 8px;
    padding: 12px;
    font-family: 'Courier New', monospace;
    font-size: 9px;
    line-height: 1.6;
}

.code-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.code-tag {
    color: #DC2626;
}

.code-attr {
    color: #059669;
}

.code-string {
    color: #2563EB;
}

.wrapper-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Legacy connect image styles - kept for backwards compatibility */
.connect-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.connect-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.loader-actions {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: auto;
}

.go-to-design-system-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    min-width: 200px;
    justify-content: center;
}

.go-to-design-system-btn:hover:not(:disabled) {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.go-to-design-system-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.go-to-design-system-btn i {
    font-size: 16px;
}

/* Responsive adjustments for loader screen */
@media (max-width: 768px) {
    .loader-container-screen2 {
        padding: 32px 24px;
        gap: 24px;
    }
    
    .welcome-text {
        font-size: 18px;
    }
    
    .company-name-display {
        font-size: 28px;
    }
    
    .analysis-text {
        font-size: 14px;
    }
    
    .connect-image {
        max-width: 90%;
    }
    
    .generation-process-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .left-generation-container,
    .right-generation-container {
        width: 220px;
        height: 180px;
    }
    
    .shimmer-lines-container {
        top: 85px;
        width: 170px;
    }
    
    .shimmer-line {
        width: 170px;
    }
    
    .shimmer-line:nth-child(2) {
        width: 140px;
    }
    
    .shimmer-line:nth-child(3) {
        width: 100px;
    }
    
    .logo-shimmer-container,
    .dynamic-logo-container {
        width: 170px;
        height: 60px;
    }
    
    .logo-horizontal-shimmer {
        width: 170px;
        top: 85px;
    }
    
    .horizontal-shimmer-line {
        width: 170px;
    }
    
    .horizontal-shimmer-line:nth-child(2) {
        width: 140px;
    }
    
    .horizontal-shimmer-line:nth-child(3) {
        width: 100px;
    }
    
    .link-animation-container {
        width: 60px;
        height: 60px;
        transform: rotate(90deg);
        margin: -10px 0;
        padding: 10px;
    }
    
    .link-animation {
        width: 38px;
        height: 38px;
    }
    
    .avatar-container {
        width: 50px;
        height: 50px;
        padding: 3px;
    }
    
    .go-to-design-system-btn {
        padding: 12px 24px;
        font-size: 13px;
        min-width: 180px;
    }
    
    .loader-close-btn {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }
    
    .loader-close-btn i {
        font-size: 14px;
    }
}

/* Design System Preview Modal */
.design-system-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.design-system-preview-modal.hidden {
    display: none;
}

.preview-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.preview-modal-container {
    position: relative;
    width: 95%;
    height: 95%;
    max-width: 1600px;
    max-height: 95vh;
    background: white;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    overflow: hidden;
}

.preview-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: white;
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
}

.preview-modal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.preview-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.preview-modal-reload {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s ease;
}

.preview-modal-reload:hover:not(:disabled) {
    background: #5a67d8;
    transform: translateY(-1px);
}

.preview-modal-reload:active:not(:disabled) {
    transform: translateY(0);
}

.preview-modal-reload:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #9ca3af;
}

.preview-modal-reload.reloading {
    opacity: 0.7;
}

.preview-modal-reload i {
    font-size: 14px;
}

.preview-modal-reload .reload-text {
    font-size: 14px;
}

.preview-modal-close {
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.preview-modal-close:hover {
    background: #f3f4f6;
    transform: scale(1.05);
}

.preview-modal-close:active {
    transform: scale(0.95);
}

.preview-modal-close i {
    color: #6b7280;
    font-size: 18px;
}

.preview-modal-body {
    position: relative;
    flex: 1;
    overflow: hidden;
    padding: 0;
    border-radius: 0 0 12px 12px;
    background: #f9fafb;
}

.preview-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.preview-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    z-index: 10;
}

.preview-loader .spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.preview-loader p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

/* Final Share Modal Styles */
.final-share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.final-share-modal.hidden {
    display: none;
}

.final-share-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.final-share-modal-container {
    position: relative;
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1001;
}

.final-share-modal-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.close-final-share-modal-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-final-share-modal-btn:hover {
    background: #f3f4f6;
}

.close-final-share-modal-btn i {
    color: #6b7280;
    font-size: 18px;
}

.final-share-modal-content {
    padding: 32px 24px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.final-share-modal-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-align: center;
}

.final-share-modal-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 0.95rem;
}

.final-share-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.final-share-form .form-group {
    display: flex;
    flex-direction: column;
}

.final-share-form .form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.final-share-form .input-wrapper {
    position: relative;
}

.share-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.share-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.share-input[readonly] {
    background-color: #f3f4f6;
    cursor: not-allowed;
}

.final-share-form .form-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1rem;
}

.additional-emails-container {
    margin-top: 8px;
}

.email-input-wrapper {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    align-items: flex-start;
}

.email-input-wrapper .input-wrapper {
    flex: 1;
}

.add-email-btn,
.remove-email-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
}

.add-email-btn:hover {
    background: var(--primary-color-dark, #0056b3);
}

.remove-email-btn {
    background: #ef4444;
}

.remove-email-btn:hover {
    background: #dc2626;
}

/* .email-list {
    margin-top: 12px;
    min-height: 20px;
} */

.email-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e5e7eb;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    margin: 4px;
}

.share-btn {
    width: 100%;
    padding: 14px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.share-btn:hover:not(:disabled) {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.share-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#shareFormError {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: -8px;
}

#shareFormError.hidden {
    display: none;
}

/* Responsive adjustments for preview modal */
@media (max-width: 768px) {
    .preview-modal-container {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .preview-modal-header {
        padding: 12px 16px;
        border-radius: 0;
    }
    
    .preview-modal-title {
        font-size: 1.1rem;
    }
    
    .preview-modal-close {
        width: 32px;
        height: 32px;
    }
    
    .preview-modal-close i {
        font-size: 16px;
    }
    
    .preview-modal-reload {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .preview-modal-reload .reload-text {
        display: none;
    }
    
    .preview-modal-reload i {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .loader-container-screen2 {
        padding: 24px 20px;
        gap: 20px;
    }
    
    .welcome-text {
        font-size: 16px;
    }
    
    .company-name-display {
        font-size: 24px;
    }
    
    .analysis-text {
        font-size: 13px;
    }
    
    .loader-close-btn {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
    }
    
    .loader-close-btn i {
        font-size: 13px;
    }
    
    .go-to-design-system-btn {
        width: 100%;
        padding: 12px 20px;
    }
}