:root {
    --primary-color: #00A676;
    --secondary-color: #FFFFFF;
    --text-color: #4A4A4A;
    --border-color: #E0E0E0;
    --background-color: #F8F8F8;
    --error-color: #D32F2F;
    --success-color: #388E3C;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

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

/* Header */
header {
    background-color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo h1 {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
}

nav {
    display: flex;
    gap: 12px;
}

.nav-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background-color: var(--secondary-color);
    color: var(--text-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.nav-btn:hover {
    background-color: var(--background-color);
}

.nav-btn.primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

.nav-btn.primary:hover {
    background-color: #008E5F;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

h2 {
    font-size: 28px;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

h3 {
    font-size: 20px;
    margin: 1.5rem 0 1rem;
    color: var(--text-color);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

select.form-control {
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
}

/* Customization Section */
.customization-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--background-color);
    border-radius: 8px;
}

.customization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.slider {
    width: 100%;
    margin-top: 0.5rem;
}

.color-picker {
    width: 60px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: #008E5F;
}

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

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

.btn-premium {
    background-color: #FFB300;
    color: var(--secondary-color);
}

.btn-premium:hover {
    background-color: #FFA000;
}

.btn-large {
    font-size: 18px;
    padding: 16px 32px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

/* QR Preview */
.qr-preview {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background-color: var(--background-color);
    border-radius: 8px;
}

.qr-container {
    margin: 20px auto;
    text-align: center;
}

.qr-container img {
    display: block;
    margin: 0 auto;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

/* Premium UI Styles */
.btn-premium {
    background: linear-gradient(45deg, #00A676, #00C285);
    color: white;
    border: none;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease;
}

/* Additional Options - Natural Integration */
.additional-options {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.option-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.option-btn:hover {
    border-color: #00A676;
    background: #f0fdf9;
    transform: translateY(-1px);
}

.option-icon {
    font-size: 1.2em;
    flex-shrink: 0;
}

.option-text {
    flex: 1;
}

.option-text strong {
    display: block;
    color: #333;
    font-size: 0.9em;
    margin-bottom: 1px;
    font-weight: 500;
}

.option-text small {
    color: #666;
    font-size: 0.8em;
}

.simple-counter {
    text-align: center;
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 166, 118, 0.3);
}

.btn-premium:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.resolution-note {
    font-size: 0.8em;
    opacity: 0.7;
}

/* Premium Teaser */
.premium-teaser {
    background: linear-gradient(135deg, #f8fffe 0%, #f0fdf9 100%);
    border: 2px solid #00A676;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.feature-preview h4 {
    color: #00A676;
    margin-bottom: 15px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    font-weight: 500;
}

.feature-icon {
    font-size: 1.2em;
}

.trial-note {
    font-size: 0.8em;
    color: #666;
    margin-top: 10px;
}

/* Enhanced Counter */
.counter {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.counter-content {
    margin-bottom: 15px;
}

.counter-text {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00A676, #00C285);
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-text {
    font-size: 0.9em;
    color: #666;
}

/* Upsell Prompt */
.upsell {
    background: white;
    border: 2px solid #00A676;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.upsell-content h3 {
    color: #00A676;
    margin-bottom: 10px;
}

.upsell-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
    justify-content: center;
}

.feature-badge {
    background: #f0fdf9;
    color: #00A676;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

.btn-text {
    background: none;
    border: none;
    color: #666;
    font-size: 0.9em;
    text-decoration: underline;
    cursor: pointer;
    margin-left: 10px;
}

/* Upgrade Modal */
.upgrade-modal {
    max-width: 1200px;
    width: 95vw;
    padding: 24px;
    max-height: 85vh;
    overflow-y: auto;
}

.upgrade-header {
    text-align: center;
    margin-bottom: 20px;
}

.upgrade-context {
    background: #f8fffe;
    border: 1px solid #d1fae5;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 12px;
    color: #065f46;
    font-size: 13px;
    line-height: 1.3;
    text-align: left;
}

.upgrade-header h2 {
    color: #00A676;
    margin-bottom: 5px;
}

.upgrade-subtitle {
    color: #666;
    font-size: 1.1em;
}

.price-card {
    border: 2px solid #00A676;
    border-radius: 12px;
    padding: 24px;
    background: white;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    align-items: start;
}

.price-info {
    text-align: center;
    margin-bottom: 0;
}

.price-header {
    text-align: center;
    margin-bottom: 20px;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin: 10px 0;
}

.currency {
    font-size: 1.2em;
    color: #666;
}

.amount {
    font-size: 2.5em;
    font-weight: bold;
    color: #00A676;
}

.period {
    font-size: 1em;
    color: #666;
}

.trial-badge {
    background: #00A676;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
    display: inline-block;
}

.features-section {
    margin-bottom: 0;
}

.features-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
    text-align: left;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 100%;
}

.feature-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
    gap: 12px;
    border-bottom: 1px solid #f1f3f4;
}

.feature-row:last-child {
    border-bottom: none;
}

.feature-row.premium {
    background: #f8fffe;
    margin: 0 -10px;
    padding: 8px 10px;
    border-radius: 6px;
}

.check {
    font-weight: bold;
    color: #00A676;
    font-size: 1.1em;
}

.feature-note {
    margin-left: auto;
    font-size: 0.8em;
    color: #666;
    font-style: italic;
}

.terms {
    text-align: center;
    font-size: 0.8em;
    color: #666;
    margin-top: 15px;
}

.social-proof {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.social-proof p {
    color: #666;
    font-size: 0.9em;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Premium Features */
.premium-feature {
    position: relative;
}

.premium-badge {
    display: inline-block;
    background-color: #FFB300;
    color: var(--secondary-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
}

/* Counter and Upsell */
.counter {
    margin-top: 2rem;
    padding: 1rem;
    background-color: var(--background-color);
    border-radius: 8px;
    text-align: center;
}

.upsell {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #FFF3E0;
    border-radius: 8px;
    border: 1px solid #FFB300;
}

.upsell p {
    margin-bottom: 1rem;
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.dashboard-actions {
    display: flex;
    gap: 12px;
}

.library-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), #00916a);
    border-radius: 12px;
    color: white;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-color);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.empty-state p {
    margin-bottom: 2rem;
    opacity: 0.7;
}

.loading-state {
    text-align: center;
    padding: 2rem;
}

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

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

.qr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.qr-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s ease;
    position: relative;
}

.qr-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.qr-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.qr-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.qr-card-meta {
    font-size: 0.875rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qr-type-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.qr-card-content {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.qr-card-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.qr-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: white;
}

.qr-card-details {
    flex: 1;
    min-width: 0;
}

.qr-card-data {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.qr-card-stats {
    font-size: 0.75rem;
    color: #999;
}

.qr-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.qr-card-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.qr-card-btn:hover {
    background: var(--background-color);
}

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

.qr-card-btn.primary:hover {
    background: #00916a;
}

.qr-card-btn.danger {
    color: var(--error-color);
    border-color: var(--error-color);
}

.qr-card-btn.danger:hover {
    background: var(--error-color);
    color: white;
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .library-stats {
        flex-direction: column;
        gap: 1rem;
    }

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

    .qr-card-content {
        flex-direction: column;
    }

    .qr-card-image {
        align-self: center;
    }
}

/* Logo Upload Component */
.logo-upload-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.logo-upload-container {
    margin-top: 0.75rem;
}

.logo-drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background: var(--background-color);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.logo-drop-zone:hover {
    border-color: var(--primary-color);
    background: rgba(0, 166, 118, 0.05);
}

.logo-drop-zone.drag-over {
    border-color: var(--primary-color);
    background: rgba(0, 166, 118, 0.1);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.upload-text {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.upload-link {
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
}

.upload-hint {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.logo-preview {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

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

#logoPreviewImg {
    max-width: 120px;
    max-height: 120px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: white;
    padding: 0.5rem;
}

.logo-controls {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.logo-control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
}

.logo-control-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
}

.logo-control-group .slider {
    width: 100%;
}

.logo-control-group span {
    font-size: 0.75rem;
    color: #666;
    min-width: 40px;
    text-align: center;
}

.btn-remove-logo {
    background: var(--error-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-remove-logo:hover {
    background: #c62828;
    transform: translateY(-1px);
}

.upload-status {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
}

.upload-status.success {
    background: rgba(56, 142, 60, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(56, 142, 60, 0.3);
}

.upload-status.error {
    background: rgba(211, 47, 47, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(211, 47, 47, 0.3);
}

@media (max-width: 768px) {
    .logo-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .logo-control-group {
        width: 100%;
        max-width: 200px;
    }

    .logo-drop-zone {
        padding: 1.5rem 1rem;
    }

    .upload-icon {
        font-size: 2.5rem;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: var(--text-color);
}

.auth-form {
    margin-top: 1rem;
}

.auth-form p {
    margin-top: 1rem;
    text-align: center;
}

.auth-form a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-form a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: var(--secondary-color);
    padding: 2rem 0;
    text-align: center;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .logo h1 {
        font-size: 20px;
    }

    nav {
        width: 100%;
        justify-content: center;
    }

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

    .download-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .qr-list {
        grid-template-columns: 1fr;
    }
}

/* Accessibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

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

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

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

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

/* Simple Compact Upgrade Modal */
.upgrade-modal-simple {
    max-width: 650px;
    width: 90vw;
    padding: 32px;
    max-height: fit-content;
}

.upgrade-context-simple {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #14532d;
}

.upgrade-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.upgrade-left {
    text-align: center;
}

.upgrade-left h2 {
    font-size: 22px;
    color: var(--primary-color);
    margin: 0 0 20px 0;
    font-weight: 600;
}

.price-display {
    margin-bottom: 24px;
}

.price-amount {
    font-size: 36px;
    font-weight: bold;
    color: var(--text-color);
}

.price-period {
    font-size: 16px;
    color: #666;
    vertical-align: baseline;
}

.btn-upgrade {
    width: 100%;
    max-width: 200px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-upgrade:hover {
    background: #00916a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,166,118,0.2);
}

.terms-simple {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: 12px;
}

.upgrade-right {
    padding-left: 16px;
}

.upgrade-right h3 {
    font-size: 16px;
    color: var(--text-color);
    margin: 0 0 16px 0;
    font-weight: 600;
}

.features-list-simple {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list-simple li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.features-list-simple li::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 10px;
    font-size: 16px;
}

@media (max-width: 600px) {
    .upgrade-modal-simple {
        padding: 20px;
    }

    .upgrade-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* QR Actions - Enhanced Design */
.qr-actions {
    margin-top: 30px;
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #f1f3f4;
}

.download-section, .premium-section {
    margin-bottom: 28px;
}

.download-section:last-child, .premium-section:last-child {
    margin-bottom: 0;
}

.download-section h4, .premium-section h4 {
    margin-bottom: 16px;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

/* Download buttons */
.btn-download {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    text-align: left;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: white;
}

.btn-download:hover {
    background: #00916a;
    border-color: #00916a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,166,118,0.25);
}

.btn-download.saved {
    background: var(--success-color);
    border-color: var(--success-color);
}

.btn-download.saved:hover {
    background: #2e7d32;
    border-color: #2e7d32;
}

.download-icon {
    font-size: 28px;
    flex-shrink: 0;
    opacity: 0.9;
}

.download-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.download-title {
    font-weight: 600;
    font-size: 15px;
    color: white;
}

.download-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    line-height: 1.3;
}

/* Premium option buttons */
.premium-option-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
    border: 1px solid #e8eaed;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--text-color);
    text-align: left;
}

.premium-option-btn:hover {
    background: linear-gradient(135deg, #f0fdf9 0%, #f8fffe 100%);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,166,118,0.12);
}

.premium-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.premium-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.premium-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-color);
}

.premium-desc {
    font-size: 13px;
    color: #5f6368;
    line-height: 1.4;
}

/* Responsive updates */
@media (max-width: 768px) {
    .option-grid {
        grid-template-columns: 1fr;
    }

    .qr-actions {
        padding: 20px 16px;
    }

    .btn-download, .premium-option-btn {
        padding: 14px 16px;
        gap: 14px;
    }

    .download-icon, .premium-icon {
        font-size: 24px;
    }

    /* Modal improvements on mobile */
    .upgrade-modal {
        max-width: 95vw;
        padding: 16px;
        max-height: 90vh;
    }

    .price-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .upgrade-context {
        padding: 8px 12px;
        font-size: 12px;
    }

    .upgrade-header {
        margin-bottom: 16px;
    }
}

/* Feature Cards */
.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px;
    background: linear-gradient(135deg, #f8fffe 0%, #ffffff 100%);
    border: 1px solid #e6f7f1;
    border-radius: 6px;
    transition: all 0.2s ease;
    min-height: 55px;
}

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,166,118,0.1);
    transform: translateY(-1px);
}

.feature-icon {
    font-size: 16px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.feature-content h5 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 2px 0;
    line-height: 1.2;
}

.feature-content p {
    font-size: 11px;
    color: #6b7280;
    margin: 0;
    line-height: 1.2;
}

/* QR Detail View */
.qr-detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.btn-back {
    background: none;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.btn-back:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
}

.qr-detail-title h2 {
    margin: 0 0 8px 0;
    color: var(--text-color);
}

.qr-detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-muted);
}

.qr-detail-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    align-items: start;
}

.qr-detail-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.qr-detail-image {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.qr-detail-image img {
    width: 300px;
    height: 300px;
    object-fit: contain;
}

.qr-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.download-options {
    display: flex;
    gap: 8px;
}

.qr-detail-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.qr-detail-info h3,
.qr-detail-stats h3,
.qr-detail-settings h3,
.qr-detail-management h3 {
    margin: 0 0 1rem 0;
    color: var(--text-color);
    font-size: 18px;
    font-weight: 600;
}

.info-grid,
.settings-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item,
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--bg-secondary);
}

.info-item:last-child,
.setting-item:last-child {
    border-bottom: none;
}

.info-item label,
.setting-item label {
    font-weight: 500;
    color: var(--text-muted);
    min-width: 100px;
}

.info-value,
.setting-value {
    text-align: right;
    color: var(--text-color);
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.premium-analytics {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fffe 0%, #ffffff 100%);
    border: 1px dashed var(--primary-color);
    border-radius: 12px;
    margin-top: 1rem;
}

.premium-analytics h4 {
    margin: 0 0 1rem 0;
    color: var(--text-color);
    font-size: 16px;
}

.analytics-chart {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.location-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.location-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.location-name {
    font-weight: 500;
    color: var(--text-color);
}

.location-count {
    font-size: 14px;
    color: var(--text-muted);
}

.color-preview {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    margin-left: 8px;
}

.management-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.premium-feature {
    position: relative;
}

.premium-feature::after {
    content: "PRO";
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Responsive Design for QR Detail */
@media (max-width: 1024px) {
    .qr-detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .qr-detail-image img {
        width: 250px;
        height: 250px;
    }

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

    .management-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .qr-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .qr-detail-image {
        padding: 1rem;
    }

    .qr-detail-image img {
        width: 200px;
        height: 200px;
    }

    .download-options {
        flex-direction: column;
    }
}

/* Analytics Dashboard Styles */
.analytics-dashboard {
    max-width: 1200px;
    width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
}

.analytics-overview {
    margin-bottom: 2rem;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.analytics-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.analytics-section h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.2rem;
}

.top-qr-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.qr-name {
    font-weight: bold;
    color: #333;
}

.qr-scans {
    color: #667eea;
    font-weight: bold;
}

.analytics-charts {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-container {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.chart-container h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
}

.chart-container canvas {
    width: 100% !important;
    height: auto !important;
}

.analytics-lists {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.list-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.list-section h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
}

.analytics-list {
    max-height: 200px;
    overflow-y: auto;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.list-item:last-child {
    border-bottom: none;
}

.list-name {
    color: #333;
    font-weight: 500;
}

.list-count {
    color: #667eea;
    font-weight: bold;
}

.recent-activity {
    background: white;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-desc {
    color: #333;
    font-weight: 500;
}

.activity-time {
    color: #666;
    font-size: 0.9rem;
}

.export-buttons {
    display: flex;
    gap: 1rem;
}

.export-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.export-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.analytics-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.2s ease;
}

.analytics-close:hover {
    color: #000;
}

/* Responsive adjustments for analytics */
@media (max-width: 768px) {
    .analytics-dashboard {
        width: 95vw;
        padding: 1rem;
    }

    .overview-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .analytics-charts {
        grid-template-columns: 1fr;
    }

    .analytics-lists {
        grid-template-columns: 1fr;
    }

    .export-buttons {
        flex-direction: column;
    }
}

/* Privacy Settings Styles */
.privacy-settings {
    max-width: 600px;
    width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
}

.privacy-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

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

.privacy-section h3 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.1rem;
}

.privacy-section p {
    color: #666;
    margin-bottom: 1rem;
}

.privacy-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.privacy-option {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 1rem;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.privacy-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.privacy-option input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 1rem;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.privacy-option input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.privacy-option input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
}

.option-content strong {
    color: #333;
    display: block;
    margin-bottom: 0.25rem;
}

.option-content p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.privacy-modes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.privacy-mode {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 1rem;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.privacy-mode:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.privacy-mode input[type="radio"] {
    display: none;
}

.radio-mark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 1rem;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.privacy-mode input[type="radio"]:checked + .radio-mark {
    border-color: #667eea;
}

.privacy-mode input[type="radio"]:checked + .radio-mark::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #667eea;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mode-content strong {
    color: #333;
    display: block;
    margin-bottom: 0.25rem;
}

.mode-content p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.data-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.data-action-btn {
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.data-action-btn:hover {
    background: #667eea;
    color: white;
}

.data-action-btn.danger {
    border-color: #e74c3c;
    color: #e74c3c;
}

.data-action-btn.danger:hover {
    background: #e74c3c;
    color: white;
}

.data-retention {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin: 0;
}

.privacy-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
}

.privacy-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.2s ease;
}

.privacy-close:hover {
    color: #000;
}

/* GDPR Banner Styles */
.gdpr-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    color: white;
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gdpr-banner.show {
    transform: translateY(0);
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.banner-text h4 {
    margin: 0 0 0.5rem 0;
    color: white;
    font-size: 1.1rem;
}

.banner-text p {
    margin: 0;
    color: #ccc;
    font-size: 0.9rem;
}

.banner-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn.secondary {
    background: transparent;
    border: 1px solid #666;
    color: #ccc;
}

.btn.secondary:hover {
    background: #666;
    color: white;
}

/* Responsive adjustments for privacy */
@media (max-width: 768px) {
    .privacy-settings {
        width: 95vw;
        padding: 1rem;
    }

    .data-actions {
        flex-direction: column;
    }

    .privacy-actions {
        flex-direction: column;
    }

    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .banner-actions {
        justify-content: center;
    }
}

/* Scan URL styling */
.scan-url {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--background-color);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.scan-url span {
    flex: 1;
    font-family: monospace;
    font-size: 0.9em;
    color: var(--primary-color);
    word-break: break-all;
}

.copy-btn {
    background: none;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s;
}

.copy-btn:hover {
    background-color: var(--border-color);
}

.copy-btn:active {
    background-color: var(--primary-color);
    color: white;
}