/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --background: #ffffff;
    --foreground: #1a1f2e;
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-foreground: #ffffff;
    --secondary: #f8fafc;
    --secondary-foreground: #374151;
    --muted: #f1f5f9;
    --muted-foreground: #64748b;
    --accent: #eff6ff;
    --accent-foreground: #1d4ed8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --card: #ffffff;
    --destructive: #ef4444;
    --success: #22c55e;
    --cta: #f97316;
    --cta-hover: #ea580c;
    --cta-foreground: #ffffff;
    --radius: 0.75rem;
    --radius-sm: 0.5rem;
    --radius-lg: 1rem;
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-soft: 0 2px 8px -2px rgba(26, 31, 46, 0.08);
    --shadow-medium: 0 4px 20px -4px rgba(26, 31, 46, 0.12);
    --shadow-lg: 0 10px 40px -10px rgba(26, 31, 46, 0.15);
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.3s ease;
    /* System font stack */
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--primary-foreground);
    padding: 0.5rem 1rem;
    z-index: 100;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

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

.container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.container-narrow {
    max-width: 48rem;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-light);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--foreground);
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.logo:hover {
    opacity: 0.8;
}

.logo-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--primary-foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xs);
}

.nav-desktop {
    display: none;
    gap: 2rem;
}

.nav-desktop a, .footer-nav a {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-desktop a:hover, .footer-nav a:hover {
    color: var(--foreground);
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-normal);
}

.nav-desktop a:hover::after,
.nav-desktop a[aria-current="page"]::after {
    width: 100%;
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--foreground);
    transition: all var(--transition-fast);
}

.menu-toggle:hover {
    background: var(--muted);
    border-color: var(--border);
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-light);
}

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

.nav-mobile a {
    padding: 0.75rem 1rem;
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-mobile a:hover,
.nav-mobile a[aria-current="page"] {
    color: var(--foreground);
    background: var(--secondary);
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
    .menu-toggle {
        display: none;
    }
}

/* Hero */
.hero {
    padding: 2.5rem 0 3.5rem;
    background: linear-gradient(180deg, var(--background) 0%, var(--secondary) 100%);
}

.hero-grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

.hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.025em;
    color: var(--foreground);
}

.hero-text {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 1.75rem;
    line-height: 1.7;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--secondary-foreground);
    background: var(--background);
    padding: 0.5rem 0.875rem;
    border-radius: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

.badge svg {
    color: var(--primary);
    flex-shrink: 0;
}

.hero-image {
    display: none;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

@media (min-width: 768px) {
    .hero {
        padding: 3.5rem 0 4.5rem;
    }
    .hero h1 {
        font-size: 2.75rem;
    }
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 4rem;
    }
    .hero h1 {
        font-size: 3.25rem;
    }
    .hero-image {
        display: block;
    }
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
    text-align: center;
    background: var(--background);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--primary);
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.upload-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--accent) 0%, rgba(37, 99, 235, 0.15) 100%);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.upload-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.upload-title {
    font-weight: 600;
    font-size: 1.0625rem;
    margin-bottom: 0.375rem;
    color: var(--foreground);
}

.upload-subtitle {
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.upload-info {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    background: var(--muted);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    display: inline-block;
}

/* Editor Section */
.editor-section {
    padding: 2.5rem 0;
    background: var(--secondary);
}

.editor-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    color: var(--foreground);
}

/* Image Editor - Improved Design */
.image-editor {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--muted) 100%);
    border-bottom: 1px solid var(--border-light);
}

.editor-header strong {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--foreground);
    word-break: break-word;
    flex: 1;
    min-width: 0;
}

.editor-body {
    display: grid;
    gap: 1.5rem;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .editor-body {
        grid-template-columns: auto 1fr;
        gap: 2rem;
    }
}

.editor-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.editor-preview-image {
    position: relative;
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
}

.editor-preview img {
    display: block;
    max-width: 180px;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.editor-info {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    text-align: center;
}

@media (min-width: 768px) {
    .editor-info {
        text-align: left;
    }
}

.editor-info-item {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.editor-info-item svg {
    width: 14px;
    height: 14px;
    color: var(--primary);
    flex-shrink: 0;
}

.editor-info-item strong {
    color: var(--foreground);
    font-weight: 600;
}

.editor-controls-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.editor-controls {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .editor-controls {
        grid-template-columns: repeat(2, 1fr);
    }
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.control-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.control-row input[type="number"] {
    width: 90px;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-family: inherit;
    transition: all var(--transition-fast);
    background: var(--background);
}

.control-row input[type="number"]:hover {
    border-color: var(--primary-light);
}

.control-row input[type="number"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.control-row .dimension-separator {
    color: var(--muted-foreground);
    font-weight: 500;
}

.control-row .dimension-unit {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.control-row select {
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-family: inherit;
    background: var(--background);
    cursor: pointer;
    transition: all var(--transition-fast);
    min-width: 140px;
    flex: 1;
}

.control-row select:hover {
    border-color: var(--primary-light);
}

.control-row select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Quality Slider */
.slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--muted);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
}

.slider-container input[type="range"] {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--border);
    appearance: none;
    cursor: pointer;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-fast);
}

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

.slider-value {
    min-width: 3rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--background);
    padding: 0.375rem 0.625rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

/* Checkbox for aspect ratio */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox-wrapper label {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--muted-foreground);
    cursor: pointer;
}

/* Editor Actions */
.editor-actions {
    display: flex;
    gap: 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6875rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-xs);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-soft);
}

.btn-cta {
    background: linear-gradient(135deg, var(--cta) 0%, var(--cta-hover) 100%);
    color: var(--cta-foreground);
    box-shadow: var(--shadow-soft);
    flex: 1;
}

.btn-cta:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--muted-foreground);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--secondary);
    color: var(--foreground);
    border-color: var(--border);
}

.btn-destructive {
    background: transparent;
    color: var(--destructive);
    border: 1px solid transparent;
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
}

.btn-destructive:hover {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
}

/* Features */
.features {
    padding: 4rem 0;
    background: var(--background);
}

.features-grid {
    display: grid;
    gap: 1.75rem;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-xs);
}

.feature-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.feature-card img {
    width: 100%;
    height: 14rem;
    object-fit: cover;
}

.feature-highlight {
    width: 100%;
    height: 14rem;
    background: linear-gradient(135deg, var(--accent) 0%, rgba(37, 99, 235, 0.08) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.highlight-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.025em;
}

.highlight-text {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--muted-foreground);
}

.feature-content {
    padding: 1.5rem;
}

.feature-content h3 {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.feature-content p {
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Ad Placeholder */
.ad-placeholder {
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--muted-foreground);
    background: var(--muted);
    margin: 2rem 0;
}

/* How To */
.howto {
    padding: 4rem 0;
    background: var(--background);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--foreground);
    letter-spacing: -0.025em;
}

.steps-grid {
    display: grid;
    gap: 2rem;
    max-width: 56rem;
    margin: 0 auto;
}

.step {
    text-align: center;
    padding: 1.5rem;
}

.step-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--accent) 0%, rgba(37, 99, 235, 0.15) 100%);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step h3 {
    font-weight: 700;
    font-size: 1.0625rem;
    margin-bottom: 0.625rem;
    color: var(--foreground);
}

.step p {
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tips */
.tips {
    padding: 4rem 0;
    background: var(--secondary);
}

.tips-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--primary);
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.accordion {
    max-width: 44rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.accordion-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.accordion-item:hover {
    border-color: var(--primary-light);
}

.accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: left;
    color: var(--foreground);
    font-family: inherit;
    transition: background var(--transition-fast);
}

.accordion-trigger:hover {
    background: var(--secondary);
}

.accordion-trigger svg:first-child {
    color: var(--primary);
    flex-shrink: 0;
}

.accordion-trigger span {
    flex: 1;
}

.accordion-trigger .chevron {
    color: var(--muted-foreground);
    transition: transform var(--transition-normal);
}

.accordion-item.active .chevron {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    padding: 0 1.25rem 1.25rem;
}

.accordion-item.active .accordion-content {
    display: block;
}

.accordion-content p {
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    line-height: 1.7;
}

/* SEO Content */
.seo-content {
    padding: 4rem 0;
}

.seo-content h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--foreground);
    letter-spacing: -0.025em;
}

.seo-content h2 {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: var(--foreground);
}

.seo-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1.75rem 0 0.75rem;
    color: var(--foreground);
}

.seo-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem;
    color: var(--foreground);
}

.seo-content p {
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.seo-content ul, .seo-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.seo-content li {
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.seo-content li strong {
    color: var(--foreground);
}

.seo-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.seo-content a:hover {
    color: var(--primary-dark);
}

.seo-content address {
    font-style: normal;
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    line-height: 1.8;
    margin: 1rem 0;
    padding: 1rem;
    background: var(--secondary);
    border-radius: var(--radius-sm);
}

/* Legal Page Styles */
.legal-page h1 {
    font-size: 2.25rem;
}

.legal-page section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.legal-page section:last-child {
    border-bottom: none;
}

.legal-updated {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

.legal-toc {
    background: var(--secondary);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2.5rem;
}

.legal-toc h2 {
    font-size: 1rem;
    margin: 0 0 1rem;
}

.legal-toc ol {
    margin: 0;
    padding-left: 1.25rem;
}

.legal-toc li {
    margin-bottom: 0.375rem;
}

.legal-toc a {
    color: var(--muted-foreground);
    text-decoration: none;
}

.legal-toc a:hover {
    color: var(--primary);
}

.highlight-box {
    background: linear-gradient(135deg, var(--accent) 0%, rgba(37, 99, 235, 0.05) 100%);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.highlight-box h4 {
    color: var(--primary-dark);
    margin-top: 0;
}

.highlight-box ul {
    margin-bottom: 0;
}

/* License Table */
.license-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
}

.license-table th,
.license-table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.license-table th {
    background: var(--secondary);
    font-weight: 600;
    color: var(--foreground);
}

.license-table tr:hover td {
    background: var(--muted);
}

.license-table a {
    color: var(--primary);
    text-decoration: none;
}

.license-table a:hover {
    text-decoration: underline;
}

.license-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--accent);
    color: var(--primary);
}

.license-badge.mit {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.license-badge.apache {
    background: rgba(249, 115, 22, 0.1);
    color: #ea580c;
}

.license-badge.isc {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
}

/* Footer */
.footer {
    background: var(--secondary);
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-bottom: 2rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.copyright {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

@media (min-width: 768px) {
    .footer-top {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* Result info */
.result-info {
    padding: 1rem;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius);
    margin-top: 1rem;
}

.result-info p {
    font-size: 0.9375rem;
    color: var(--success);
    margin: 0;
}

.result-info strong {
    font-weight: 600;
}

/* Notification */
.notification {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    transition: all var(--transition-slow);
    max-width: calc(100vw - 2rem);
    text-align: center;
}

.notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.notification-success {
    background: var(--success);
    color: white;
}

.notification-error {
    background: var(--destructive);
    color: white;
}

.notification-info {
    background: var(--primary);
    color: white;
}

/* Print styles */
@media print {
    .header, .footer, .upload-zone, .editor-section, .ad-placeholder {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
    
    .seo-content {
        padding: 0;
    }
}
