/* ============================================
   3-STEP FLOW ADDITIONS
============================================ */
#qrfix-3step-generator {
    max-width: 1400px;
    margin: 40px auto;
    padding: 20px;
}

/* Hide duplicate back buttons outside step containers */
body>.back-to-details-btn,
#qrfix-3step-generator>.back-to-details-btn {
    display: none !important;
}

/* Only show back buttons inside step containers */
.step-content .form-actions .btn-secondary {
    display: inline-block;
}

.step-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.step-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all 0.3s ease;
}

.step-dot.active {
    background: linear-gradient(135deg, #897FFF, #4A3AFF);
    color: white;
}

.step-line {
    width: 100px;
    height: 3px;
    background: #e0e0e0;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

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

.step-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
}

/* STEP 1: Grid */
.qr-types-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 1200px) {
    .qr-types-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 768px) {
    .qr-types-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   GRADIENT & LOGO CONTROLS - ADDITIONS
   Add these styles to your existing qrfix-styles.css
============================================ */

/* Radio Group Styles */
.radio-group {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.radio-option {
    position: relative;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-option label {
    display: inline-block;
    padding: 8px 16px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    transition: all 0.2s ease;
    user-select: none;
}

.radio-option input[type="radio"]:checked+label {
    background: #ede9fe;
    border-color: #7a39ff;
    color: #4A3AFF;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

.radio-option label:hover {
    border-color: #d1d5db;
    transform: translateY(-1px);
}

/* Color Input Group */
.color-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-input-wrapper input[type="text"] {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    font-weight: 500;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.color-input-wrapper input[type="text"]:focus {
    outline: none;
    border-color: #7a39ff;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.color-picker-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.color-picker-btn:hover {
    border-color: #7a39ff;
    transform: scale(1.05);
}

.color-picker-btn input[type="color"] {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    border: none;
    cursor: pointer;
}

.eyedropper-btn {
    width: 40px;
    height: 40px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.eyedropper-btn:hover {
    background: #ede9fe;
    border-color: #7a39ff;
}

.eyedropper-btn:active {
    transform: scale(0.95);
}

/* Gradient Controls */
.gradient-controls {
    display: none;
    margin-top: 16px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.gradient-controls.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.gradient-colors {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.gradient-color-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gradient-color-row label {
    font-size: 13px;
    color: #6b7280;
    min-width: 70px;
    font-weight: 500;
}

/* Eye Patterns Grid */
.eye-patterns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.pattern-option {
    aspect-ratio: 1;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: white;
    padding: 8px;
}

.pattern-option:hover {
    border-color: #7a39ff;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15);
}

.pattern-option.active {
    border-color: #7a39ff;
    background: #ede9fe;
    box-shadow: 0 2px 12px rgba(139, 92, 246, 0.25);
}

.pattern-option svg {
    width: 100%;
    height: 100%;
}

/* ===========================
   Logo Integration section
   =========================== */

/* Source toggle (URL / Upload) */
.logo-source-toggle {
    display: inline-flex;
    gap: 8px;
    padding: 4px;
    border-radius: 999px;
    background: #f3f4ff;
    margin-bottom: 12px;
}

.logo-source-toggle .toggle-option {
    position: relative;
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.logo-source-toggle .toggle-option input[type="radio"] {
    display: none;
}

.logo-source-toggle .toggle-option span {
    pointer-events: none;
}

/* checked state */
.logo-source-toggle .toggle-option input[type="radio"]:checked+span,
.logo-source-toggle .toggle-option input[type="radio"]:checked~span {
    color: #4f46e5;
}

.logo-source-toggle .toggle-option input[type="radio"]:checked~span::before {
    content: '';
}

/* “pill” highlight */
.logo-source-toggle .toggle-option input[type="radio"]:checked+span,
.logo-source-toggle .toggle-option input[type="radio"]:checked~span {
    position: relative;
}

.logo-source-toggle .toggle-option input[type="radio"]:checked~span {
    background: transparent;
}

.logo-source-toggle .toggle-option input[type="radio"]:checked~span::after {
    content: '';
    position: absolute;
    inset: -6px -12px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 0 0 1px #e5e7ff;
    z-index: -1;
}

/* File input small helper text */
#logo-upload-row .help-text {
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}

/* Logo background toggle */
#logo-bg-enable {
    margin-right: 6px;
}

#logo-bg-controls {
    margin-top: 6px;
}

/* Background color row (hex + picker) */
#logo-bg-controls .color-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

#logo-bg-controls .color-hex {
    flex: 1;
}

#logo-bg-controls .color-picker {
    width: 44px;
    height: 36px;
    padding: 0;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    cursor: pointer;
}


/* Border Controls */
.border-controls {
    display: grid;
    gap: 16px;
}

.border-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.border-input {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.border-input label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.border-input input[type="number"] {
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.border-input input[type="number"]:focus {
    outline: none;
    border-color: #7a39ff;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Customization Section Headers */
.section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e5e7eb;
}

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

.section h3 {
    font-size: 16px;
    color: #1a1a1a;
    margin-bottom: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Scrollbar Styling */
.logo-grid::-webkit-scrollbar {
    width: 8px;
}

.logo-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.logo-grid::-webkit-scrollbar-thumb {
    background: #7a39ff;
    border-radius: 4px;
}

.logo-grid::-webkit-scrollbar-thumb:hover {
    background: #4A3AFF;
}



/* Focus States for Accessibility */
.radio-option input[type="radio"]:focus+label {
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.logo-tab:focus {
    outline: 2px solid #7a39ff;
    outline-offset: 2px;
}

.pattern-option:focus {
    outline: 2px solid #7a39ff;
    outline-offset: 2px;
}

.logo-item:focus {
    outline: 2px solid #7a39ff;
    outline-offset: 2px;
}

/* Loading State */
.pattern-option.loading,
.logo-item.loading {
    opacity: 0.5;
    pointer-events: none;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }
}

/* Empty State */
.logo-grid:empty::after {
    content: 'No logos available';
    display: block;
    text-align: center;
    padding: 40px;
    color: #9ca3af;
    font-size: 14px;
}

/* Helper Text */
.helper-text {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

/* Section Descriptions */
.section-description {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
    line-height: 1.5;
}

.qr-type-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qr-type-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #897FFF;
}

.qr-type-item.selected {
    border-color: #897FFF;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.qr-type-item .icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.qr-type-item .label {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.explore-more-btn {
    display: block;
    margin: 0 auto;
    padding: 12px 40px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    cursor: pointer;
}

/* STEP 2: Form */
.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

/* Locked input for template URLs */
.form-input-locked {
    background: #f8f9fb !important;
    color: #6b7280;
    cursor: not-allowed;
    border-color: #d1d5db;
}

.form-input-locked:focus {
    outline: none;
    border-color: #d1d5db;
    box-shadow: none;
}

/* Template URL Notice */
.template-url-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(137, 127, 255, 0.08), rgba(74, 58, 255, 0.08));
    border: 1px solid rgba(122, 57, 255, 0.2);
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #7a39ff;
}

.template-url-notice svg {
    flex-shrink: 0;
    color: #7a39ff;
}

.toggle-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin: 30px 0;
}

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

.toggle-switch {
    position: relative;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 34px;
    transition: 0.4s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
}

.toggle-switch input:checked+.toggle-slider {
    background: linear-gradient(135deg, #897FFF, #4A3AFF);
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(26px);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #897FFF, #4A3AFF);
    color: white;
    flex: 1;
}

.btn-secondary {
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
}

.btn-pro {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

#notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

.notification {
    background: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 12px;
}

/* ============================================
   ORIGINAL STYLES BELOW
============================================ */

/**
 * QRFix Ultimate Styles
 * Complete styling for QR generator
 */

/* ============================================
   GLOBAL & CONTAINER
============================================ */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

#qrfix-generator {
    max-width: 1800px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    padding: 20px;
    box-sizing: border-box;
    overflow-x: hidden;
    width: 100%;
}

* {
    box-sizing: border-box;
}

/* Prevent horizontal scroll on all containers */
.qrfix-main-grid,
.qrfix-controls,
.qr-section,
.qr-section-content {
    max-width: 100%;
    overflow-x: hidden;
}

/* ============================================
   HEADER
============================================ */
.qrfix-header {
    text-align: center;
    margin-bottom: 40px;
}

.qrfix-header h1 {
    font-size: 42px;
    margin: 0 0 12px;
    background: linear-gradient(135deg, #897FFF 0%, #4A3AFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.qrfix-header p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* ============================================
   STATUS BANNER
============================================ */
.qrfix-status-banner {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.qrfix-status-banner.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.qrfix-status-banner.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

.qrfix-status-banner span {
    font-weight: 700;
    font-size: 18px;
}

.qrfix-status-banner.success span {
    color: #155724;
}

.qrfix-status-banner.error span {
    color: #721c24;
}

/* ============================================
   MAIN LAYOUT
============================================ */
.qrfix-main-grid {
    display: grid;
    grid-template-columns: 700px 1fr;
    gap: 30px;
}

@media (max-width: 1400px) {
    .qrfix-main-grid {
        grid-template-columns: 600px 1fr;
    }
}

@media (max-width: 1200px) {
    .qrfix-main-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   CONTROLS SIDEBAR
============================================ */
.qrfix-controls {
    max-height: 85vh;
    overflow-y: auto;
    padding-right: 10px;
}

.qrfix-controls::-webkit-scrollbar {
    width: 8px;
}

.qrfix-controls::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.qrfix-controls::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.qrfix-controls::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ============================================
   SECTIONS
============================================ */
.qr-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.qr-section:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.qr-section h3 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qr-section label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
}

/* ============================================
   TYPE SELECTOR
============================================ */
.qr-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding: 4px;
    margin-bottom: 20px;
}

.qr-type-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.qr-type-card:hover {
    border-color: #897FFF;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.2);
}

.qr-type-card.active {
    border-color: #897FFF;
    background: linear-gradient(135deg, #E3F2FD 0%, #E1BEE7 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.qr-type-card .icon {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
}

.qr-type-card .name {
    font-size: 11px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.qr-type-card .category-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 8px;
    padding: 2px 6px;
    background: #897FFF;
    color: #fff;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   FORM FIELDS
============================================ */
.qr-form-fields {
    margin-top: 20px;
}

.qr-field-group {
    margin-bottom: 16px;
}

.qr-input,
.qr-select,
.qr-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
    background: #fff;
}

.qr-input:focus,
.qr-select:focus,
.qr-textarea:focus {
    outline: none;
    border-color: #897FFF;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.qr-textarea {
    min-height: 80px;
    resize: vertical;
}

.qr-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.color-input {
    width: 100%;
    height: 44px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.color-input:hover {
    border-color: #897FFF;
}

/* ============================================
   SHAPE GRIDS
============================================ */
.shape-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.shape-btn {
    padding: 10px 4px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
    color: #666;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shape-btn:hover {
    border-color: #897FFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.15);
}

.shape-btn.active {
    border-color: #897FFF;
    background: linear-gradient(135deg, #897FFF 0%, #4A3AFF 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* ============================================
   TEMPLATE GRID
============================================ */
.template-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
    padding: 4px;
}

.template-card {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
}

.template-card:hover {
    border-color: #897FFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

/* ============================================
   BUTTONS
============================================ */
.action-btn {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: inherit;
}

.action-btn.primary {
    background: linear-gradient(135deg, #897FFF 0%, #4A3AFF 100%);
    color: #fff;
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.action-btn.secondary {
    background: #6c757d;
    color: #fff;
}

.action-btn.secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.action-btn.success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
}

.action-btn.success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 153, 142, 0.4);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   PREVIEW SECTION
============================================ */
.qrfix-preview-sticky {
    position: sticky;
    top: 20px;
}

#qr-preview {
    min-height: 350px;
    background: #f9fafb;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

#qr-preview:has(svg) {
    border-style: solid;
    border-color: #897FFF;
    background: #fff;
}

#qr-preview svg {
    max-width: 100%;
    height: auto;
}

.qr-preview-placeholder {
    text-align: center;
    color: #9ca3af;
}

.qr-preview-placeholder .icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.qr-preview-placeholder p {
    font-size: 14px;
    margin: 0;
}

#status {
    padding: 14px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: none;
    animation: slideIn 0.3s ease;
}

#status.show {
    display: block;
}

#status.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

#status.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

#status.info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

/* ============================================
   FRAME MODAL
============================================ */
#frame-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
}

#frame-modal.active {
    display: block;
}

.frame-modal-content {
    max-width: 1200px;
    margin: 40px auto;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

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

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

#close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 36px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
}

#close-modal:hover {
    color: #897FFF;
}

.frame-modal-content h2 {
    margin: 0 0 24px;
    font-size: 24px;
    padding-right: 50px;
}

#frame-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 4px;
}

.frame-card {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    text-align: center;
}

.frame-card:hover {
    border-color: #897FFF;
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.2);
}

.frame-card.selected {
    border-color: #897FFF;
    background: linear-gradient(135deg, #E3F2FD 0%, #E1BEE7 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.frame-card .frame-preview {
    padding: 24px;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 32px;
}

.frame-card .frame-name {
    font-size: 13px;
    font-weight: 700;
    color: #333;
}

/* ============================================
   CUSTOMIZATION PANEL
============================================ */
#frame-customization {
    margin: 16px 0;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

#frame-customization h4 {
    margin: 0 0 12px;
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

.color-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ============================================
   RANGE INPUTS
============================================ */
input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #897FFF;
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #897FFF;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

/* ============================================
   LOADING STATES
============================================ */
.qr-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

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

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

/* ============================================
   DYNAMIC QR TOGGLE
============================================ */
.dynamic-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 16px;
}

.dynamic-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.dynamic-toggle label {
    margin: 0;
    cursor: pointer;
    flex: 1;
}

.dynamic-toggle .badge {
    font-size: 10px;
    padding: 4px 8px;
    background: #897FFF;
    color: #fff;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

/* ============================================
   SAVE DIALOG
============================================ */
.save-dialog {
    margin-top: 16px;
    padding: 16px;
    background: #fff;
    border: 2px solid #897FFF;
    border-radius: 8px;
}

.save-dialog h4 {
    margin: 0 0 12px;
    font-size: 14px;
    color: #333;
}

/* ============================================
   ERROR CORRECTION SELECTOR
============================================ */
.error-correction-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.ec-option {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.ec-option:hover {
    border-color: #897FFF;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.ec-option.active {
    border-color: #897FFF;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f3ff 100%);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.25);
}

.ec-option.active::before {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    background: #897FFF;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.ec-preview {
    width: 100%;
    aspect-ratio: 1;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.ec-option:hover .ec-preview {
    border-color: #897FFF;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.ec-option.active .ec-preview {
    border-color: #897FFF;
    background: #fafbff;
}

.ec-preview svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ec-info {
    text-align: center;
}

.ec-info strong {
    display: block;
    font-size: 13px;
    color: #1f2937;
    margin-bottom: 4px;
    font-weight: 600;
}

.ec-option.active .ec-info strong {
    color: #897FFF;
}

.ec-info small {
    display: block;
    font-size: 11px;
    color: #6b7280;
    line-height: 1.4;
}

/* Animation for selection */
@keyframes ecSelect {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

.ec-option.active {
    animation: ecSelect 0.3s ease;
}

/* ============================================
   QR Type Indicators
============================================ */
.qr-type-indicator {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 10px 12px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 13px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: slideInUp 0.3s ease;
}

.qr-type-indicator.dynamic {
    background: linear-gradient(135deg, #7a39ff 0%, #4A3AFF 100%);
}

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

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

/* ============================================
   DOWNLOAD SECTION - NEW
============================================ */

/* Download Section Container */
.qrfix-download-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

/* Format & Size Row */
.download-options-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.download-option-group {
    display: flex;
    flex-direction: column;
}

.download-option-group label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

/* Custom Select Wrapper */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.download-select {
    width: 100%;
    padding: 12px 36px 12px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    background: #fff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.download-select:hover {
    border-color: #897FFF;
}

.download-select:focus {
    outline: none;
    border-color: #897FFF;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.custom-select-wrapper:hover .select-arrow {
    color: #897FFF;
}

/* Main Download Button */
.download-main-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #897FFF 0%, #4A3AFF 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.download-main-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.45);
}

.download-main-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
}

.download-main-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.download-main-btn svg {
    flex-shrink: 0;
}

/* Download Button Loading State */
.download-main-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.download-main-btn.loading span {
    display: none;
}

.download-main-btn.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Terms Text */
.download-terms {
    font-size: 11px;
    color: #9ca3af;
    text-align: center;
    margin: 12px 0 16px;
    line-height: 1.5;
}

.download-terms a {
    color: #897FFF;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.download-terms a:hover {
    color: #4A3AFF;
}

/* Bottom Actions Row */
.download-bottom-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

/* Reset Button */
.reset-link {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.reset-link:hover {
    color: #897FFF;
    background: rgba(102, 126, 234, 0.08);
}

.reset-link svg {
    flex-shrink: 0;
}

/* QR Options Dropdown */
.qr-options-dropdown {
    position: relative;
}

.options-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #897FFF;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.options-toggle:hover {
    background: rgba(102, 126, 234, 0.08);
}

.options-toggle svg {
    transition: transform 0.2s ease;
}

.qr-options-dropdown.active .options-toggle svg {
    transform: rotate(180deg);
}

/* Options Menu */
.options-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 8px;
    margin-bottom: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.qr-options-dropdown.active .options-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.options-menu button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: none;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-align: left;
}

.options-menu button:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #897FFF;
}

.options-menu button svg {
    flex-shrink: 0;
    color: #9ca3af;
    transition: color 0.2s ease;
}

.options-menu button:hover svg {
    color: #897FFF;
}

/* Divider in menu */
.options-menu hr {
    border: none;
    border-top: 1px solid #f3f4f6;
    margin: 6px 0;
}

/* Success Animation */
@keyframes downloadSuccess {
    0% {
        background: linear-gradient(135deg, #897FFF 0%, #4A3AFF 100%);
    }

    50% {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    }

    100% {
        background: linear-gradient(135deg, #897FFF 0%, #4A3AFF 100%);
    }
}

.download-main-btn.success {
    animation: downloadSuccess 1s ease;
}

/* ============================================
   PATTERN GRID (Visual Pattern Cards)
============================================ */
.pattern-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.pattern-grid.small {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.pattern-card {
    aspect-ratio: 1;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    transition: all 0.2s ease;
}

.pattern-card:hover {
    border-color: #897FFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.2);
}

.pattern-card.active {
    border-color: #7a39ff;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.pattern-card svg {
    width: 100%;
    height: 100%;
    fill: #1f2937;
}

/* ============================================
   TEMPLATE GRID & CARDS
============================================ */
#template-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding: 4px;
}

@media (max-width: 768px) {
    #template-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    #template-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.template-card {
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.template-card:hover {
    transform: translateY(-2px);
}

.template-card:hover .template-preview {
    border-color: #897FFF;
    box-shadow: 0 4px 12px rgba(137, 127, 255, 0.2);
}

.template-card.active .template-preview {
    border-color: #897FFF;
    box-shadow: 0 0 0 3px rgba(137, 127, 255, 0.3);
}

.template-preview {
    position: relative;
    aspect-ratio: 1;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    overflow: hidden;
}

/* Decorative SVG layer - covers full preview */
.template-decor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* QR preview SVG - centered */
.template-qr {
    width: 55%;
    height: 55%;
    position: relative;
    z-index: 2;
}

/* QR Preview Decorative Overlay */
.qr-preview-decorated {
    position: relative;
    display: inline-block;
    width: 100%;
}

.qr-decor-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.qr-decor-overlay svg {
    width: 100%;
    height: 100%;
}

.qr-svg-container {
    position: relative;
    z-index: 1;
}

.qr-svg-container svg {
    width: 100%;
    height: auto;
}

.template-name {
    font-size: 11px;
    color: #374151;
    margin-top: 6px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Frame badge on templates that include premium frames */
.template-frame-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* ============================================
   LOGO PRESET CARDS
============================================ */
.logo-preset-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.logo-preset-card {
    width: 60px;
    height: 60px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logo-preset-card:hover {
    border-color: #897FFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(137, 127, 255, 0.2);
}

.logo-preset-card.active {
    border-color: #897FFF;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    box-shadow: 0 0 0 3px rgba(137, 127, 255, 0.2);
}

.logo-preset-card svg {
    width: 32px;
    height: 32px;
}

#view-more-logos {
    color: #897FFF;
    font-size: 13px;
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s ease;
}

#view-more-logos:hover {
    color: #4A3AFF;
    text-decoration: underline;
}

/* Logo Modal Cards */
.logo-modal-card {
    width: 100%;
    aspect-ratio: 1;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 8px;
}

.logo-modal-card:hover {
    border-color: #897FFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(137, 127, 255, 0.15);
}

.logo-modal-card.selected {
    border-color: #897FFF;
    box-shadow: 0 0 0 3px rgba(137, 127, 255, 0.2);
}

.logo-modal-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* ============================================
   COLOR TYPE SELECTOR (Radio Options)
============================================ */
.color-type-selector {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
}

.color-type-selector.compact {
    gap: 12px;
    margin-bottom: 10px;
}

.radio-dot {
    width: 16px;
    height: 16px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
}

.radio-option input[type="radio"]:checked+.radio-dot {
    border-color: #7a39ff;
}

.radio-option input[type="radio"]:checked+.radio-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #7a39ff;
    border-radius: 50%;
}

.radio-option.small {
    font-size: 12px;
}

.radio-option.small .radio-dot {
    width: 14px;
    height: 14px;
}

.radio-option.small input[type="radio"]:checked+.radio-dot::after {
    width: 6px;
    height: 6px;
}

/* ============================================
   HEX COLOR INPUT WITH PICKER
============================================ */
.hex-color-input {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px 10px;
    transition: border-color 0.2s ease;
}

.hex-color-input:focus-within {
    border-color: #7a39ff;
}

.hex-color-input.small {
    padding: 4px 8px;
}

.hex-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    color: #1f2937;
    background: transparent;
    min-width: 0;
}

.hex-input::placeholder {
    color: #9ca3af;
}

.color-picker-box {
    width: 32px;
    height: 32px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    flex-shrink: 0;
}

.color-picker-box::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker-box::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

.hex-color-input.small .color-picker-box {
    width: 28px;
    height: 28px;
}

/* ============================================
   GRADIENT CONTROLS
============================================ */
.gradient-type-selector {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.gradient-type-selector.compact {
    gap: 10px;
    margin-bottom: 8px;
}

.gradient-colors-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.gradient-colors-row.compact {
    gap: 8px;
    margin-bottom: 8px;
}

.gradient-colors-row .hex-color-input {
    flex: 1;
}

.gradient-angle-row {
    margin-top: 12px;
}

.gradient-angle-row label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.angle-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #e5e7eb, #7a39ff);
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

.angle-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #7a39ff;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.4);
}

.angle-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #7a39ff;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.4);
}

/* ============================================
   EYE PATTERNS CONTAINER (Side by Side)
============================================ */
.eye-patterns-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.eye-pattern-column {
    background: #f9fafb;
    border-radius: 10px;
    padding: 16px;
}

.eye-pattern-column h4 {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 12px;
}


/* ============================================
   BACKGROUND TYPE TABS
============================================ */
.bg-type-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.bg-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bg-tab:hover {
    border-color: #897FFF;
    color: #4A3AFF;
}

.bg-tab.active {
    border-color: #7a39ff;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    color: #4A3AFF;
}

.bg-tab svg {
    flex-shrink: 0;
}

.bg-controls {
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.bg-hint {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    text-align: center;
    padding: 8px;
}


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

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

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 8px !important;
}

.mb-2 {
    margin-bottom: 16px !important;
}

.mb-3 {
    margin-bottom: 24px !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.mt-1 {
    margin-top: 8px !important;
}

.mt-2 {
    margin-top: 16px !important;
}

.mt-3 {
    margin-top: 24px !important;
}

/* ============================================
   FRAME PREVIEW IMPROVEMENTS (from customizer)
============================================ */
.frame-preview-svg {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(137, 127, 255, 0.05), rgba(74, 58, 255, 0.05));
    border: 1px solid rgba(137, 127, 255, 0.15);
    border-radius: 8px;
    overflow: hidden;
    padding: 8px;
}

.frame-preview-svg svg {
    max-width: 100%;
    max-height: 100%;
    width: auto !important;
    height: auto !important;
}

.frame-preview-loading {
    width: 100%;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(137, 127, 255, 0.05), rgba(74, 58, 255, 0.05));
    border: 1px solid rgba(137, 127, 255, 0.15);
    border-radius: 8px;
}

.frame-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(137, 127, 255, 0.15);
    border-radius: 8px;
}

.frame-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(122, 57, 255, 0.15);
    border-color: #897FFF;
}

.frame-card .frame-name {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    color: #170F49;
}

#frame-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 4px;
}

/* Loading state */
#frame-grid:empty::after {
    content: "Loading frames...";
    display: block;
    text-align: center;
    padding: 40px;
    color: #8b8b95;
    font-size: 16px;
}

/* ============================================
   CUSTOM SCROLLBAR FOR CONTROLS SIDEBAR
============================================ */
.qrfix-controls::-webkit-scrollbar {
    width: 12px;
}

.qrfix-controls::-webkit-scrollbar-track {
    background: linear-gradient(135deg, rgba(137, 127, 255, 0.05), rgba(74, 58, 255, 0.05));
    border-radius: 10px;
    margin: 8px 0;
}

.qrfix-controls::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #897FFF, #4A3AFF);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.qrfix-controls::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7a39ff, #3a2ad9);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.qrfix-controls::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, #6a2aef, #2a1ac9);
    border-radius: 10px;
}

/* Firefox scrollbar */
.qrfix-controls {
    scrollbar-width: thin;
    scrollbar-color: #897FFF rgba(137, 127, 255, 0.1);
}

/* ============================================
   ACCORDION FUNCTIONALITY FOR QR SECTIONS
============================================ */
.qr-section {
    margin-bottom: 16px;
    border: 1px solid rgba(137, 127, 255, 0.15);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
}

.qr-section h3 {
    margin: 0;
    padding: 16px;
    cursor: pointer;
    user-select: none;
    background: linear-gradient(135deg, rgba(137, 127, 255, 0.05), rgba(74, 58, 255, 0.05));
    position: relative;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 600;
    color: #170F49;
}

.qr-section h3:hover {
    background: linear-gradient(135deg, rgba(137, 127, 255, 0.1), rgba(74, 58, 255, 0.08));
}

.qr-section h3::after {
    content: '▼';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s ease;
    color: #897FFF;
    font-size: 12px;
}

.qr-section.collapsed h3::after {
    transform: translateY(-50%) rotate(-90deg);
}

.qr-section-content {
    padding: 16px;
    max-height: 5000px;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.qr-section.collapsed .qr-section-content {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE & TABLET
============================================ */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .qr-types-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    #qrfix-generator {
        padding: 15px !important;
        margin: 20px auto !important;
    }

    .qrfix-header h1 {
        font-size: 32px !important;
    }

    .qrfix-header p {
        font-size: 14px !important;
    }

    .qrfix-controls {
        max-height: none !important;
        padding-right: 0 !important;
    }

    /* Pattern grids - fewer columns on tablet */
    .pattern-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 8px !important;
    }

    .template-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
    }

    /* Error correction grid */
    .error-correction-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    /* Eye patterns side by side */
    .eye-patterns-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Mobile (320px - 767px) */
@media (max-width: 767px) {
    .qr-types-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    #qrfix-generator {
        padding: 10px !important;
        margin: 10px auto !important;
    }

    .qrfix-header {
        margin-bottom: 20px !important;
    }

    .qrfix-header h1 {
        font-size: 24px !important;
        margin-bottom: 8px !important;
    }

    .qrfix-header p {
        font-size: 13px !important;
    }

    /* Main grid - single column on mobile */
    .qrfix-main-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .qrfix-controls {
        padding-right: 0 !important;
    }

    /* QR Sections - reduce padding */
    .qr-section h3 {
        padding: 12px !important;
        font-size: 14px !important;
    }

    .qr-section h3 svg {
        width: 16px !important;
        height: 16px !important;
    }

    .qr-section h3::after {
        font-size: 10px !important;
        right: 12px !important;
    }

    .qr-section-content {
        padding: 12px !important;
    }

    /* Pattern grids - 3 columns on mobile */
    .pattern-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }

    .pattern-card {
        min-height: 50px !important;
    }

    /* Template grid - 2 columns on mobile */
    .template-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    /* Error correction - single column on mobile */
    .error-correction-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .ec-option {
        padding: 12px !important;
    }

    .ec-preview {
        height: 80px !important;
    }

    /* Background tabs - stack on mobile */
    .bg-type-tabs {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .bg-tab {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Color type selector - stack on mobile */
    .color-type-selector {
        flex-direction: column;
        gap: 8px;
    }

    /* Gradient controls - stack on mobile */
    .gradient-type-selector {
        flex-direction: column;
        gap: 8px;
    }

    /* Radio & background controls */
    .radio-group {
        flex-direction: column;
    }

    .radio-option label {
        display: block;
        text-align: center;
    }

    .border-row {
        grid-template-columns: 1fr;
    }

    .eye-patterns-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    }

    .logo-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }

    .bg-type-tabs {
        flex-direction: column;
    }

    .pattern-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Hex color input - adjust for mobile */
    .hex-color-input {
        padding: 4px 8px !important;
    }

    .hex-input {
        font-size: 12px !important;
    }

    /* Form inputs */
    .qr-input,
    .qr-select,
    .qr-textarea {
        font-size: 14px !important;
        padding: 10px !important;
    }

    /* Buttons */
    .action-btn {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }

    /* Download section */
    .download-main-btn {
        padding: 14px 20px;
        font-size: 15px;
    }

    .download-options-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .download-bottom-actions {
        flex-direction: column;
        gap: 12px;
    }

    .options-menu {
        right: -20px;
        min-width: 180px;
    }

    /* QR Preview */
    #qr-preview {
        min-height: 250px !important;
    }

    .qrfix-preview-sticky {
        position: static !important;
        margin-bottom: 20px !important;
    }

    .qr-type-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }

    .shape-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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

    .download-buttons {
        grid-template-columns: 1fr;
    }

    #frame-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

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

    /* Frame modal */
    .frame-modal-content {
        width: 95% !important;
        max-height: 90vh !important;
        padding: 20px !important;
    }

    #frame-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    /* Step indicator */
    .step-indicator {
        padding: 15px !important;
    }

    .step-dot {
        width: 30px !important;
        height: 30px !important;
        font-size: 13px !important;
    }

    .step-line {
        width: 50px !important;
    }

    /* Form actions */
    .form-actions {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .form-actions button {
        width: 100% !important;
    }

    /* Custom scrollbar - hide on mobile for better touch experience */
    .qrfix-controls::-webkit-scrollbar {
        width: 6px !important;
    }

    .qrfix-controls::-webkit-scrollbar-thumb {
        border-radius: 6px !important;
    }
}

/* Extra small mobile (320px - 480px) */
@media (max-width: 480px) {
    .qrfix-header h1 {
        font-size: 20px !important;
    }

    /* Pattern grids - 2 columns on very small screens */
    .pattern-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Frame grid - single column on very small screens */
    #frame-grid {
        grid-template-columns: 1fr;
    }

    /* Reduce spacing */
    .qr-section {
        margin-bottom: 12px !important;
    }

    .qr-section h3 {
        padding: 10px !important;
        font-size: 13px !important;
    }

    .qr-section-content {
        padding: 10px !important;
    }

    .error-correction-grid {
        grid-template-columns: 1fr;
    }
}

/* Landscape mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .qrfix-controls {
        max-height: 70vh !important;
    }

    .frame-modal-content {
        max-height: 85vh !important;
    }

    #frame-grid {
        max-height: 60vh !important;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {

    /* Increase touch targets */
    .pattern-card,
    .template-card,
    .ec-option,
    .bg-tab,
    .radio-option {
        min-height: 44px;
        min-width: 44px;
    }

    /* Remove hover effects on touch devices */
    .pattern-card:hover,
    .template-card:hover,
    .frame-card:hover,
    .ec-option:hover {
        transform: none;
    }

    /* Add active state for better feedback */
    .pattern-card:active,
    .template-card:active,
    .frame-card:active,
    .ec-option:active {
        opacity: 0.7;
    }
}

/* ============================================
   PLAN-LOCKED SHAPES & FEATURES
   Shows greyed out shapes with upgrade tooltip
============================================ */

/* Locked pattern card base styles */
.pattern-card.plan-locked {
    position: relative !important;
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    filter: grayscale(80%) !important;
    pointer-events: auto !important;
}

.pattern-card.plan-locked:hover {
    opacity: 0.5 !important;
    transform: none !important;
    border-color: #9ca3af !important;
    box-shadow: none !important;
}

.pattern-card.plan-locked.active {
    border-color: #9ca3af !important;
    background: #f3f4f6 !important;
    box-shadow: none !important;
}

/* Lock icon badge */
.pattern-card.plan-locked::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    background: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='10' height='10'%3E%3Cpath d='M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z'/%3E%3C/svg%3E");
    background-size: 10px 10px;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Premium crown badge for premium shapes */
.pattern-card.plan-locked.premium-shape::after {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='10' height='10'%3E%3Cpath d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-2 16l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z'/%3E%3C/svg%3E");
}

/* Tooltip container */
.pattern-card.plan-locked .upgrade-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: linear-gradient(135deg, #1f2937, #111827);
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

/* Tooltip arrow */
.pattern-card.plan-locked .upgrade-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1f2937;
}

/* Show tooltip on hover */
.pattern-card.plan-locked:hover .upgrade-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

/* Tooltip link styling */
.pattern-card.plan-locked .upgrade-tooltip a {
    color: #60a5fa;
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
}

.pattern-card.plan-locked .upgrade-tooltip a:hover {
    color: #93c5fd;
}

/* Logo section locked styles */
.logo-section-locked {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.logo-section-locked::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(243, 244, 246, 0.7);
    border-radius: 8px;
    z-index: 5;
}

.logo-section-locked .upgrade-banner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10;
    text-align: center;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
    pointer-events: auto;
}

.logo-section-locked .upgrade-banner a {
    color: white;
    text-decoration: underline;
}

.logo-section-locked .upgrade-banner a:hover {
    color: #e0e7ff;
}

/* Plan badge styles */
.plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-badge.premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.plan-badge.enterprise {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
}

/* ============================================
   LOCKED BG TAB (Transparent Background)
============================================ */
.bg-tab.plan-locked {
    position: relative !important;
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    filter: grayscale(80%) !important;
    pointer-events: auto !important;
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
    color: #9ca3af !important;
}

.bg-tab.plan-locked:hover {
    opacity: 0.5 !important;
    transform: none !important;
    border-color: #9ca3af !important;
    background: #e5e7eb !important;
    box-shadow: none !important;
}

.bg-tab.plan-locked.active {
    border-color: #9ca3af !important;
    background: #e5e7eb !important;
    box-shadow: none !important;
}

.bg-tab.plan-locked .upgrade-tooltip {
    position: absolute !important;
    bottom: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(-8px) !important;
    background: linear-gradient(135deg, #1f2937, #111827) !important;
    color: white !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.2s ease !important;
    z-index: 1000 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    pointer-events: none !important;
}

.bg-tab.plan-locked .upgrade-tooltip::after {
    content: '' !important;
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border: 6px solid transparent !important;
    border-top-color: #1f2937 !important;
}

.bg-tab.plan-locked:hover .upgrade-tooltip {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(-4px) !important;
}

.bg-tab.plan-locked .upgrade-tooltip a {
    color: #60a5fa !important;
    text-decoration: underline !important;
}

/* ============================================
   LOCKED LOGO INTEGRATION SECTION
============================================ */
.plan-locked-section {
    position: relative !important;
}

/* Locked input field */
.input-locked {
    opacity: 0.5 !important;
    background-color: #f3f4f6 !important;
    cursor: not-allowed !important;
    border-color: #d1d5db !important;
}

.input-locked::placeholder {
    color: #9ca3af !important;
    font-style: italic !important;
}

/* Locked slider */
.slider-locked {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    filter: grayscale(100%) !important;
}

.slider-locked::-webkit-slider-thumb {
    cursor: not-allowed !important;
}

/* Locked toggle options */
.option-locked {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    filter: grayscale(80%) !important;
}

.option-locked:hover {
    background: transparent !important;
}

/* Locked buttons */
.btn-locked {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    filter: grayscale(80%) !important;
    pointer-events: none !important;
}

/* Logo locked overlay */
.logo-locked-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(243, 244, 246, 0.85) !important;
    border-radius: 8px !important;
    z-index: 50 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none !important;
}

.logo-locked-overlay .locked-banner {
    background: linear-gradient(135deg, #7c3aed, #4f46e5) !important;
    color: white !important;
    padding: 14px 28px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center !important;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3) !important;
    pointer-events: auto !important;
}

.logo-locked-overlay .locked-banner a {
    color: #c4b5fd !important;
    text-decoration: underline !important;
}

.logo-locked-overlay .locked-banner a:hover {
    color: #e0e7ff !important;
}

/* Locked brand/social logo buttons */
.logo-item.logo-locked,
.brand-logo-btn.logo-locked {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    filter: grayscale(80%) !important;
    pointer-events: auto !important;
}

.logo-item.logo-locked:hover,
.brand-logo-btn.logo-locked:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: #9ca3af !important;
}