/* ============================================
   YourCoding QR Generator - Styles
   Modern, clean design with YourCoding branding
   ============================================ */

/* CSS Variables */
:root {
    /* YourCoding Brand Colors */
    --primary: #1e88a8;
    --primary-dark: #156e8a;
    --primary-light: #2ba3c7;
    --accent: #17a2b8;
    
    /* Light Theme */
    --bg: #ffffff;
    --bg-elevated: #ffffff;
    --bg-secondary: #f8f9fa;
    --text: #2c3e50;
    --text-muted: #6c757d;
    --border: #e9ecef;
    --shadow: rgba(0, 0, 0, 0.1);
    
    /* UI Colors */
    --success: #28a745;
    --error: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    
    /* Spacing & Sizing */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme */
[data-theme="dark"] {
    --bg: #0f1419;
    --bg-elevated: #1a1f26;
    --bg-secondary: #151a21;
    --text: #e8eaed;
    --text-muted: #9ca3af;
    --border: #2d3748;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
.header {
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.logo-link:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.logo {
    height: 40px;
    width: auto;
}

/* Logo switching for theme */
[data-theme="light"] .logo-dark {
    display: none;
}

[data-theme="light"] .logo-light {
    display: block;
}

[data-theme="dark"] .logo-light {
    display: none;
}

[data-theme="dark"] .logo-dark {
    display: block;
}

.header-controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.lang-switch,
.theme-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    color: var(--text);
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-switch:hover,
.theme-toggle:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.lang-switch.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.theme-toggle {
    padding: 0.5rem;
    width: 40px;
    height: 40px;
}

.sun-icon,
.moon-icon {
    transition: var(--transition);
}

[data-theme="light"] .moon-icon {
    display: none;
}

[data-theme="dark"] .sun-icon {
    display: none;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
}

h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 1rem;
    animation: slideUp 0.6s ease 0.1s both;
}

.badge-group {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideUp 0.6s ease 0.2s both;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
    white-space: nowrap;
}

.badge svg {
    width: 14px;
    height: 14px;
    color: var(--primary);
}

/* Alert */
.alert {
    padding: 0.875rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.125rem;
    display: none;
    animation: slideInLeft 0.3s ease;
    border-left: 4px solid;
    font-size: 0.875rem;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert.show {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-error {
    background: rgba(220, 53, 69, 0.1);
    border-color: var(--error);
    color: var(--error);
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border-color: var(--success);
    color: var(--success);
}

/* Main Grid */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Card */
.card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    margin-bottom: 1.25rem;
}

.card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
}

.card-title svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* Tabs */
.tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.tab {
    padding: 0.625rem 0.5rem;
    border: 2px solid var(--border);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.85rem;
    color: var(--text);
    font-family: inherit;
    text-align: center;
    white-space: nowrap;
}

.tab:hover {
    border-color: var(--primary);
    background: var(--bg);
}

.tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Form Elements */
.form-group {
    margin-bottom: 1.125rem;
}

.form-content {
    display: none;
}

.form-content.active {
    display: block;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text);
    font-size: 0.875rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 136, 168, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Colors & Logo Grid */
.colors-logo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.125rem;
}

.color-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Color Pickers */
.color-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.color-picker-wrapper {
    position: relative;
}

.color-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.color-preview {
    position: absolute;
    left: 12px;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    z-index: 1;
}

.color-preview:hover {
    transform: scale(1.1);
    border-color: var(--primary);
}

input[type="color"] {
    position: absolute;
    opacity: 0;
    width: 32px;
    height: 32px;
    left: 12px;
    cursor: pointer;
}

.color-picker-wrapper input[type="text"] {
    padding-left: 56px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Style Options */
.style-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem;
}

.style-option {
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-secondary);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-weight: 500;
    color: var(--text);
    font-family: inherit;
    position: relative;
    font-size: 0.85rem;
}

.style-option:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.style-option.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.style-icon {
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
    line-height: 1;
}

.style-warning {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 0.75rem;
}

.style-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid var(--warning);
    border-radius: var(--radius-sm);
    margin-top: 0.625rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.style-note svg {
    color: var(--warning);
    flex-shrink: 0;
}

/* Advanced Options */
.advanced-options {
    margin-bottom: 1.125rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0;
    background: var(--bg-secondary);
}

.advanced-options summary {
    padding: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    transition: var(--transition);
    user-select: none;
    font-size: 0.875rem;
}

.advanced-options summary:hover {
    color: var(--primary);
}

.advanced-options summary::marker,
.advanced-options summary::-webkit-details-marker {
    display: none;
}

.summary-arrow {
    transition: transform 0.3s ease;
    color: var(--primary);
}

.advanced-options[open] .summary-arrow {
    transform: rotate(180deg);
}

.advanced-content {
    padding: 0 0.75rem 0.75rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

input[type="range"] {
    width: calc(100% - 60px);
    height: 6px;
    border-radius: 3px;
    background: var(--border);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(30, 136, 168, 0.2);
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(30, 136, 168, 0.2);
}

.range-value {
    display: inline-block;
    min-width: 50px;
    text-align: right;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

/* Floating Donation Button */
.floating-donation {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 20px rgba(30, 136, 168, 0.4);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    font-family: inherit;
    z-index: 999;
    transition: var(--transition);
    animation: float 3s ease-in-out infinite;
    cursor: pointer;
}

.floating-donation:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 30px rgba(30, 136, 168, 0.5);
}

.floating-donation svg {
    width: 24px;
    height: 24px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.3s ease;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text);
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.modal-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.modal-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.modal-features {
    list-style: none;
    text-align: left;
    margin: 1.5rem 0;
    padding: 0;
}

.modal-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    color: var(--text);
}

.modal-features li svg {
    color: var(--success);
    flex-shrink: 0;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.modal-actions .btn {
    flex: 1;
}

.modal-actions .btn-secondary {
    background: var(--bg-secondary);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Logo Upload */
.logo-upload {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-secondary);
    position: relative;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-upload:hover {
    border-color: var(--primary);
    background: var(--bg);
}

.logo-upload.has-logo {
    border-style: solid;
    border-color: var(--success);
}

.logo-preview {
    max-width: 100px;
    max-height: 100px;
    margin: 0 auto 0.75rem;
    display: none;
    border-radius: var(--radius-sm);
}

.logo-preview.visible {
    display: block;
}

#logoUploadText {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#logoUploadText svg {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    width: 36px;
    height: 36px;
}

.upload-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
}

/* Buttons */
.btn {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(30, 136, 168, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 136, 168, 0.4);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: var(--bg);
}

.btn-success {
    background: var(--success);
    color: white;
    flex: 1;
    font-size: 0.9rem;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* QR Preview */
.qr-preview-container {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

#qrDisplay {
    background: white;
    padding: 1.25rem;
    border-radius: var(--radius);
    display: inline-block;
    box-shadow: var(--shadow-md);
    margin-bottom: 1rem;
    animation: scaleIn 0.4s ease;
    max-width: 100%;
}

#qrDisplay svg {
    display: block;
    width: 100%;
    height: auto;
    max-width: 300px;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.qr-info {
    background: var(--bg-elevated);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    max-width: 100%;
    word-break: break-all;
    font-size: 0.8rem;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.empty-state {
    color: var(--text-muted);
    font-size: 1rem;
}

.empty-state svg {
    opacity: 0.3;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    width: 64px;
    height: 64px;
}

/* Export Section */
.export-section {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    display: none;
    animation: fadeIn 0.4s ease;
}

.export-section.active {
    display: block;
}

.export-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem;
}

/* Privacy Notice */
.privacy-notice {
    display: flex;
    gap: 0.875rem;
    padding: 1.125rem;
    background: linear-gradient(135deg, rgba(30, 136, 168, 0.1) 0%, rgba(23, 162, 184, 0.05) 100%);
    border: 1px solid rgba(30, 136, 168, 0.2);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    animation: fadeIn 0.6s ease 0.4s both;
}

.privacy-notice svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.125rem;
    width: 20px;
    height: 20px;
}

.privacy-notice strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.35rem;
    color: var(--primary);
}

.privacy-notice p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Footer */
.footer {
    text-align: center;
    padding: 1.5rem 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

.footer p {
    margin-bottom: 0;
}

.footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Contrast Warning */
.contrast-warning {
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius);
    border: 2px solid;
    font-size: 0.9rem;
    line-height: 1.5;
}

.warning-error {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.warning-ok {
    background: #cfe2ff;
    border-color: #0d6efd;
    color: #084298;
}

.warning-good {
    background: #d1e7dd;
    border-color: #28a745;
    color: #0a3622;
}

.contrast-warning strong {
    display: block;
    margin-bottom: 0.25rem;
}

/* Scan Test Result */
.scan-test-result {
    display: none;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius);
    border: 2px solid;
}

.scan-test-result.success {
    background: #d1e7dd;
    border-color: #28a745;
    color: #0a3622;
}

.scan-test-result.failed {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.scan-icon {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}

.scan-details strong {
    display: block;
    margin-bottom: 0.25rem;
}

.scan-confidence {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Button Disabled State */
.btn-disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* SEO Content Section */
.seo-content {
    max-width: 1200px;
    margin: 3rem auto 2rem;
    padding: 2rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.seo-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text);
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.seo-block {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.seo-block h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.seo-block p {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

.seo-faq {
    margin: 2rem 0;
}

.seo-faq h3,
.seo-use-cases h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.375rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.faq-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-item summary {
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
    user-select: none;
}

.faq-item summary:hover {
    background: var(--bg);
    color: var(--primary);
}

.faq-item summary::marker,
.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 1.25rem 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

.seo-use-cases {
    margin: 2rem 0 0;
}

.seo-use-cases ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.seo-use-cases li {
    background: var(--bg-secondary);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    color: var(--text-muted);
    line-height: 1.7;
}

.seo-use-cases li strong {
    color: var(--text);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .floating-donation {
        right: 1rem;
        bottom: 1rem;
        padding: 0.875rem 1.25rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }
    
    .hero {
        margin-bottom: 1.25rem;
        padding: 0.75rem 0;
    }
    
    h1 {
        font-size: 1.65rem;
        margin-bottom: 0.4rem;
    }
    
    .subtitle {
        font-size: 0.875rem;
        margin-bottom: 0.65rem;
    }
    
    .badge-group {
        gap: 0.35rem;
        margin-bottom: 0.75rem;
    }
    
    .badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
        gap: 0.25rem;
    }
    
    .badge svg {
        width: 11px;
        height: 11px;
    }
    
    .tabs {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
        margin-bottom: 1rem;
    }
    
    .tab {
        padding: 0.75rem 0.35rem;
        font-size: 0.8rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .input-row {
        grid-template-columns: 1fr;
    }
    
    .style-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .colors-logo-grid {
        grid-template-columns: 1fr;
    }
    
    .color-group {
        grid-template-columns: 1fr;
    }
    
    .export-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-donation {
        right: 1rem;
        bottom: 1rem;
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
    
    .floating-donation span {
        display: none;
    }
    
    .modal-overlay {
        padding: 1rem;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .card {
        padding: 1.25rem;
    }
    
    .card-title {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.75rem;
    }
    
    .header-controls {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }
    
    .lang-switch,
    .theme-toggle {
        flex: 1;
    }
    
    .hero {
        padding: 0.5rem 0;
        margin-bottom: 1rem;
    }
    
    h1 {
        font-size: 1.4rem;
    }
    
    .subtitle {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .badge-group {
        gap: 0.3rem;
    }
    
    .badge {
        font-size: 0.6rem;
        padding: 0.25rem 0.5rem;
    }
    
    .badge svg {
        width: 10px;
        height: 10px;
    }
    
    .tabs {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tab {
        min-height: 48px;
        font-size: 0.85rem;
    }
    
    .style-options {
        grid-template-columns: 1fr;
    }
    
    .floating-donation {
        padding: 0.75rem;
        border-radius: 50%;
        width: 56px;
        height: 56px;
    }
    
    .card {
        padding: 0.875rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .qr-preview-container {
        min-height: 280px;
        padding: 1rem;
    }
    
    #qrDisplay {
        padding: 1rem;
    }
    
    #qrDisplay svg {
        max-width: 250px;
    }
    
    .seo-content {
        padding: 1.5rem;
        margin: 2rem auto 1rem;
    }
    
    .seo-content h2 {
        font-size: 1.5rem;
    }
    
    .seo-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .seo-block {
        padding: 1.25rem;
    }
    
    .faq-item summary {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .faq-item p {
        padding: 0 1rem 0.875rem;
        font-size: 0.9rem;
    }
}

/* Loading Animation */
.spinner {
    border: 3px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .donation-section,
    .privacy-notice,
    .btn,
    .export-section {
        display: none;
    }
    
    .main-grid {
        grid-template-columns: 1fr;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #000;
    }
}
/* Disabled Button */
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #666;
}

.btn-primary:disabled:hover {
    background: #666;
    transform: none;
}

/* Locked Dropdown */
select:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Scan Test Results */
.scan-test-result {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
}

.scan-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.scan-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.scan-fail {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.scan-test-result strong {
    font-weight: 600;
}

.scan-test-result small {
    display: block;
    margin-top: 0.25rem;
    opacity: 0.9;
}
/* Back Button in Header */
.back-button-header {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    margin-right: 1rem;
}

.back-button-header:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.back-button-header svg {
    width: 16px;
    height: 16px;
}

/* Other Tools Section */
.other-tools-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.other-tools-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tool-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.tool-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.qr-icon {
    background: linear-gradient(135deg, rgba(30, 136, 168, 0.1), rgba(23, 162, 184, 0.1));
    color: var(--primary);
}

.password-icon {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(23, 162, 184, 0.1));
    color: var(--success);
}

.tool-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.tool-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

.tool-features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.feature-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-muted);
    font-weight: 500;
}

.tool-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 0.5rem;
}

.tool-card:hover .tool-cta svg {
    transform: translateX(4px);
}
/* Logo: witte overlay in dark mode (logo-breed is donker) */
[data-theme="dark"] .logo { filter: brightness(0) invert(1); }
