/* ==========================================================================
   QR Code Generator - Styles
   Matching Vikilinks Email Signature Generator Design
   ========================================================================== */

/* CSS Variables */
:root {
    --primary: #02c39a;
    --primary-dark: #00a884;
    --bg: #0d1f1c;
    --bg-light: #1a3a35;
    --surface: #0f2922;
    --surface-light: #163830;
    --text: #ffffff;
    --text-muted: #94a3b8;
    --border: #1e4a42;
    --border-light: #2a5f54;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --radius: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

input, select, textarea {
    font-family: inherit;
    font-size: 1rem;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 31, 28, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo svg {
    height: 36px;
    width: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-nav a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
}

.header-nav a:hover {
    color: var(--text);
}

.qr-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--surface);
    border-radius: var(--radius);
    font-size: 0.85rem;
}

.counter-icon {
    font-size: 1rem;
}

.counter-text {
    color: var(--text-muted);
}

.counter-text strong {
    color: var(--primary);
    font-weight: 600;
}

/* Header Actions & Buttons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-bookmark,
.btn-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.8rem;
    font-weight: 500;
    font-family: inherit;
    white-space: nowrap;
}

.btn-bookmark svg,
.btn-share svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.btn-bookmark:hover,
.btn-share:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 195, 154, 0.3);
}

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

.btn-share:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(2, 195, 154, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(2, 195, 154, 0.1) 0%, transparent 50%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2302c39a' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-text {
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(2, 195, 154, 0.1);
    border: 1px solid rgba(2, 195, 154, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text > p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--primary);
    color: #0a0a0a;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    transition: all var(--transition);
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(2, 195, 154, 0.3);
}

.hero-preview {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-hero-showcase {
    position: relative;
    width: 400px;
    height: 400px;
}

.qr-hero-card {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.qr-hero-card:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.qr-card-main {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 1.5rem;
    z-index: 5;
}

.qr-card-main:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

.qr-card-wifi {
    top: 0;
    left: 0;
    padding: 0.75rem;
    animation: floatCard1 4s ease-in-out infinite;
}

.qr-card-vcard {
    top: 0;
    right: 0;
    padding: 0.75rem;
    animation: floatCard2 4s ease-in-out infinite 0.5s;
}

.qr-card-whatsapp {
    bottom: 0;
    left: 0;
    padding: 0.75rem;
    animation: floatCard3 4s ease-in-out infinite 1s;
}

.qr-card-email {
    bottom: 0;
    right: 0;
    padding: 0.75rem;
    animation: floatCard4 4s ease-in-out infinite 1.5s;
}

@keyframes floatCard1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5px, -8px); }
}

@keyframes floatCard2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-5px, -8px); }
}

@keyframes floatCard3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(8px, 5px); }
}

@keyframes floatCard4 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-8px, 5px); }
}

.qr-card-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--primary);
    color: #0a0a0a;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.qr-card-badge.badge-wifi { background: #10b981; }
.qr-card-badge.badge-vcard { background: #8b5cf6; color: white; }
.qr-card-badge.badge-whatsapp { background: #25d366; }
.qr-card-badge.badge-email { background: #f59e0b; }

.qr-sample {
    width: 160px;
    height: 160px;
    margin: 0 auto 0.75rem;
    background: white;
    border-radius: var(--radius);
    padding: 0.75rem;
}

.qr-sample-sm {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    padding: 0.5rem;
}

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

.qr-hero-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* ==========================================================================
   Mode Toggle (Generate / Read)
   ========================================================================== */
.mode-toggle-container {
    max-width: 1400px;
    margin: 0 auto 2rem;
    display: flex;
    justify-content: center;
}

.mode-toggle {
    display: inline-flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0.375rem;
    gap: 0.25rem;
}

.mode-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

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

.mode-btn.active {
    background: var(--primary);
    color: #0a0a0a;
}

.mode-btn svg {
    flex-shrink: 0;
}

/* ==========================================================================
   QR Reader Section
   ========================================================================== */
.qr-reader-section {
    max-width: 1000px;
    margin: 0 auto;
}

.reader-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.reader-upload-area {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.upload-zone {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary);
    background: rgba(2, 195, 154, 0.05);
}

.upload-zone.dragover {
    transform: scale(1.02);
}

.upload-icon {
    color: var(--primary);
    margin-bottom: 1rem;
}

.upload-zone h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.upload-zone p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.upload-formats {
    font-size: 0.8rem !important;
    color: var(--text-muted);
    opacity: 0.7;
}

.btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-upload:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

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

/* Upload zone as clickable label */
label.upload-zone {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

label.upload-zone:hover {
    border-color: var(--primary);
    background: rgba(2, 195, 154, 0.08);
    transform: translateY(-2px);
}

label.upload-zone:active {
    transform: translateY(0);
}

.upload-btn-visual {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: var(--bg-dark);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    margin: 1rem 0;
    transition: all var(--transition);
}

label.upload-zone:hover .upload-btn-visual {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.upload-preview {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
}

.upload-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 4px;
}

.btn-remove-image {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--error);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-remove-image:hover {
    transform: scale(1.1);
}

.reader-result-area {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.result-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.result-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-muted);
}

.result-empty svg {
    margin-bottom: 1rem;
    opacity: 0.3;
}

.result-empty p {
    font-size: 0.95rem;
}

.result-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.result-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: #0a0a0a;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius);
}

.result-success {
    color: var(--success);
    font-size: 0.85rem;
    font-weight: 500;
}

.result-data {
    margin-bottom: 1.25rem;
}

.result-data label,
.result-parsed label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.result-text-container {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    max-height: 150px;
    overflow-y: auto;
}

.result-text-container pre {
    margin: 0;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem;
    white-space: pre-wrap;
    word-break: break-all;
    color: var(--text);
}

.result-parsed {
    margin-bottom: 1.25rem;
}

.parsed-fields {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
}

.parsed-field {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.parsed-field:last-child {
    border-bottom: none;
}

.parsed-field-label,
.field-label {
    min-width: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.parsed-field-value,
.field-value {
    flex: 1;
    font-size: 0.9rem;
    word-break: break-all;
}

.field-link {
    color: var(--primary);
    text-decoration: none;
}

.field-link:hover {
    text-decoration: underline;
}

.field-password {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-password {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
}

.toggle-password:hover {
    color: var(--primary);
}

.result-actions {
    margin-top: auto;
    display: flex;
    gap: 0.75rem;
}

.result-actions .btn-action {
    flex: 1;
}

.result-actions .btn-action.btn-primary {
    background: var(--primary);
    color: #0a0a0a;
    border-color: var(--primary);
}

.result-actions .btn-action.btn-primary:hover {
    background: var(--primary-dark);
}

.result-error {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--error);
}

.result-error svg {
    margin-bottom: 1rem;
}

.result-error h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.result-error p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Spin animation for loading */
.spin-animation {
    animation: spin 1s linear infinite;
}

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

/* ==========================================================================
   Generator Section
   ========================================================================== */
.generator-section {
    padding: 4rem 2rem;
    background: var(--bg-light);
}

.generator-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
}

.generator-form-area {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

/* QR Type Tabs */
.qr-type-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.qr-type-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition);
}

.qr-type-tab svg {
    width: 18px;
    height: 18px;
}

.qr-type-tab:hover {
    border-color: var(--primary);
    color: var(--text);
}

.qr-type-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #0a0a0a;
}

/* QR Forms */
.qr-content-forms {
    min-height: 300px;
}

.qr-form {
    display: none;
}

.qr-form.active {
    display: block;
}

.form-group {
    margin-bottom: 1.25rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 1rem;
    transition: all var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(2, 195, 154, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    cursor: pointer;
}

.input-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.375rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Checkbox */
.checkbox-group {
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: #0a0a0a;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Secondary Button */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}

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

/* ==========================================================================
   Preview Area
   ========================================================================== */
.generator-preview-area {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.qr-preview-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.preview-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.btn-refresh {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    transition: all var(--transition);
}

.btn-refresh:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.qr-preview-container {
    width: 100%;
    aspect-ratio: 1;
    background: white;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
}

.qr-preview-container canvas,
.qr-preview-container img {
    max-width: 100%;
    max-height: 100%;
}

.qr-placeholder {
    text-align: center;
    padding: 2rem;
}

.qr-placeholder svg {
    color: #ccc;
    margin-bottom: 1rem;
}

.qr-placeholder p {
    color: #666;
    font-size: 0.9rem;
}

/* QR Actions */
.qr-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.625rem 0.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--transition);
}

.btn-action:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-action.btn-download:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #0a0a0a;
}

.btn-action.btn-email {
    background: var(--primary);
    border-color: var(--primary);
    color: #0a0a0a;
}

.btn-action.btn-email:hover {
    background: var(--primary-dark);
}

/* ==========================================================================
   Customization Card
   ========================================================================== */
.customization-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    overflow: hidden;
}

.customization-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.customize-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.customize-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.customize-section h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

/* Color Options */
.color-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.color-option {
    min-width: 0;
    overflow: hidden;
}

.color-option label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.375rem;
}

.color-input-wrapper {
    display: flex;
    gap: 0.5rem;
    min-width: 0;
}

.color-input-wrapper input[type="color"] {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 2px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    background: var(--bg);
    flex-shrink: 0;
}

.color-input-wrapper input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 0.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.8rem;
    font-family: monospace;
    width: 100%;
}

/* Color Presets */
.color-presets {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.color-preset {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border);
    padding: 3px;
    background: var(--bg);
    cursor: pointer;
    transition: all var(--transition);
}

.color-preset:hover {
    border-color: var(--primary);
    transform: scale(1.1);
}

.color-preset span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* Size Options */
.size-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.size-option {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.625rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.75rem;
    transition: all var(--transition);
    min-width: 0;
    overflow: hidden;
}

.size-option span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.size-option:hover {
    border-color: var(--primary);
}

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

.size-option input[type="radio"]:checked + span {
    color: var(--primary);
}

.size-option:has(input:checked) {
    border-color: var(--primary);
    background: rgba(2, 195, 154, 0.1);
}

/* Error Correction Select */
.customization-card select {
    width: 100%;
    padding: 0.625rem 0.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.85rem;
    cursor: pointer;
}

.customization-card .input-hint {
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

/* ==========================================================================
   QR Types Section
   ========================================================================== */
.qr-types-section {
    padding: 5rem 2rem;
    background: var(--bg);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-container h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.section-container > p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.qr-types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.qr-type-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
}

.qr-type-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(2, 195, 154, 0.1);
}

.qr-type-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: rgba(2, 195, 154, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.qr-type-icon.whatsapp {
    color: #25D366;
    background: rgba(37, 211, 102, 0.1);
}

.qr-type-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.qr-type-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   How It Works
   ========================================================================== */
.how-it-works {
    padding: 5rem 2rem;
    background: var(--bg-light);
}

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

.step-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #0a0a0a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   Use Cases Section
   ========================================================================== */
.use-cases-section {
    padding: 5rem 2rem;
    background: var(--bg);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.use-case-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition);
}

.use-case-card:hover {
    border-color: var(--primary);
}

.use-case-emoji {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.use-case-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.use-case-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
    padding: 5rem 2rem;
    background: var(--bg-light);
}

.faq-list {
    max-width: 800px;
    margin: 2rem auto 0;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-item summary {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform var(--transition);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-seo-text {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.5;
    margin-top: 0.75rem;
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: none;
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition);
}

.modal-close:hover {
    background: var(--error);
    color: white;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body > p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-actions .btn-secondary {
    flex: 1;
    justify-content: center;
}

.modal-actions .btn-primary {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--primary);
    border: none;
    border-radius: var(--radius);
    color: #0a0a0a;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
}

.modal-actions .btn-primary:hover {
    background: var(--primary-dark);
}

/* Download Modal */
.download-modal-content {
    max-width: 450px;
}

.download-preview {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.download-preview #download-preview-qr {
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-preview #download-preview-qr canvas,
.download-preview #download-preview-qr img {
    border-radius: 4px;
}

.filename-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.filename-input-wrapper input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 0.875rem 1rem !important;
    min-width: 0;
}

.filename-input-wrapper input:focus {
    box-shadow: none !important;
}

.filename-extension {
    padding: 0.875rem 1rem;
    background: var(--surface);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    border-left: 1px solid var(--border);
    flex-shrink: 0;
}

.download-size-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.download-size-option {
    cursor: pointer;
}

.download-size-option input {
    display: none;
}

.download-size-option .size-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
    text-align: center;
}

.download-size-option .size-box strong {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.download-size-option .size-box small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.download-size-option:hover .size-box {
    border-color: var(--primary);
}

.download-size-option input:checked + .size-box {
    border-color: var(--primary);
    background: rgba(2, 195, 154, 0.1);
}

.download-size-option input:checked + .size-box strong {
    color: var(--primary);
}

.btn-download-action {
    position: relative;
}

/* Download Actions Row */
.download-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.download-action-buttons {
    display: flex;
    gap: 0.75rem;
}

.btn-email-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-email-action:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(2, 195, 154, 0.05);
}

.btn-email-action svg {
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .download-actions-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .download-action-buttons {
        width: 100%;
        flex-direction: column;
    }

    .btn-email-action,
    .download-action-buttons .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .download-actions-row .btn-secondary {
        width: 100%;
        order: 3;
    }
}

/* Download Success Animation */
.download-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    background: rgba(2, 195, 154, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    animation: successPop 0.4s ease-out;
}

.success-checkmark svg {
    color: var(--primary);
    animation: checkDraw 0.4s ease-out 0.2s both;
}

.download-success p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    animation: fadeInUp 0.3s ease-out 0.3s both;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkDraw {
    0% {
        stroke-dashoffset: 100;
        opacity: 0;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        transform: translateY(10px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Privacy Modal */
.privacy-modal-content {
    max-width: 700px;
}

.privacy-body {
    max-height: 60vh;
    overflow-y: auto;
}

.privacy-content {
    padding: 0.5rem;
}

.privacy-section {
    margin-bottom: 1.5rem;
}

.privacy-section h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.privacy-section p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.privacy-section ul {
    list-style: none;
    padding-left: 0;
}

.privacy-section ul li {
    color: var(--text-muted);
    padding: 0.375rem 0 0.375rem 1.5rem;
    position: relative;
}

.privacy-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

/* Share Modal */
.share-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.share-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.share-modal {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.share-modal-overlay.active .share-modal {
    transform: scale(1);
}

.share-modal h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.share-modal p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.facebook { background: #1877f2; color: white; }
.share-btn.twitter { background: #1da1f2; color: white; }
.share-btn.linkedin { background: #0a66c2; color: white; }
.share-btn.whatsapp { background: #25d366; color: white; }
.share-btn.copy { background: var(--primary); color: #0a0a0a; }

.share-modal-close {
    padding: 0.75rem 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    cursor: pointer;
    transition: all var(--transition);
}

.share-modal-close:hover {
    background: var(--text);
    color: var(--bg);
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 10001;
    opacity: 0;
    transition: all 0.3s ease;
}

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

.toast.success {
    border-color: var(--success);
}

.toast.error {
    border-color: var(--error);
}

.toast-message {
    font-size: 0.9rem;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 1200px) {
    .generator-container {
        grid-template-columns: 1fr;
    }

    .generator-preview-area {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-preview {
        display: flex;
    }

    .qr-hero-showcase {
        width: 320px;
        height: 320px;
    }

    .qr-sample {
        width: 120px;
        height: 120px;
    }

    .qr-sample-sm {
        width: 60px;
        height: 60px;
        padding: 0.375rem;
    }

    .qr-card-main {
        padding: 1rem;
    }

    .qr-card-main p {
        font-size: 0.75rem;
    }

    .qr-card-badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
    }

    .qr-types-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .hero-preview {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }

    .header-nav {
        display: none;
    }

    .qr-counter {
        display: none;
    }

    .logo svg {
        height: 32px;
    }

    .hero {
        padding: 5rem 1rem 2rem;
        min-height: auto;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text > p {
        font-size: 1rem;
    }

    .generator-section {
        padding: 2rem 1rem;
    }

    .generator-preview-area {
        grid-template-columns: 1fr;
    }

    .qr-type-tabs {
        gap: 0.375rem;
    }

    .qr-type-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .qr-type-tab span {
        display: none;
    }

    .qr-types-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

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

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

    .section-container h2 {
        font-size: 1.75rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .footer-seo-text {
        display: none;
    }

    /* QR Reader Responsive */
    .reader-container {
        grid-template-columns: 1fr;
    }

    .reader-upload-area,
    .reader-result-area {
        min-height: auto;
    }

    .upload-zone {
        padding: 1.5rem;
    }

    .upload-zone h3 {
        font-size: 1rem;
    }

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

    .parsed-field {
        flex-direction: column;
        gap: 0.25rem;
    }

    .field-label {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.75rem 0;
    }

    .header-container {
        padding: 0 0.75rem;
    }

    .logo svg {
        height: 28px;
    }

    .header-buttons {
        gap: 0.375rem;
    }

    .btn-bookmark span,
    .btn-share span {
        display: none;
    }

    .btn-bookmark,
    .btn-share {
        padding: 0.5rem;
        border-radius: 50%;
        width: 36px;
        height: 36px;
    }

    .hero {
        padding: 5rem 0.75rem 1.5rem;
    }

    .hero-text h1 {
        font-size: 1.65rem;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }

    .generator-section {
        padding: 1.5rem 0.75rem;
    }

    .generator-form-area,
    .qr-preview-card,
    .customization-card {
        padding: 1rem;
    }

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

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

    .color-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .color-input-wrapper {
        gap: 0.75rem;
    }

    .color-input-wrapper input[type="text"] {
        font-size: 0.9rem;
    }

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

    .size-option {
        padding: 0.625rem;
        font-size: 0.8rem;
    }

    .customization-card select {
        font-size: 0.9rem;
    }

    .qr-types-grid,
    .use-cases-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .qr-type-card,
    .use-case-card {
        padding: 1rem;
    }

    .qr-type-icon {
        width: 48px;
        height: 48px;
    }

    .qr-type-card h4 {
        font-size: 0.9rem;
    }

    .faq-item summary {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .faq-item p {
        padding: 0 1rem 1rem;
        font-size: 0.85rem;
    }

    .modal-content {
        margin: 0.5rem;
        max-height: 95vh;
    }

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

    /* Download modal responsive */
    .download-size-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .download-size-option .size-box {
        padding: 0.75rem 0.5rem;
    }

    .download-size-option .size-box strong {
        font-size: 0.85rem;
    }

    .download-size-option .size-box small {
        font-size: 0.7rem;
    }

    .download-preview {
        padding: 1rem;
    }

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

    .modal-actions .btn-secondary,
    .modal-actions .btn-primary {
        width: 100%;
        flex: unset;
    }
}

@media (max-width: 360px) {
    .hero-text h1 {
        font-size: 1.4rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .qr-type-tab {
        padding: 0.375rem 0.5rem;
    }

    .qr-type-tab svg {
        width: 16px;
        height: 16px;
    }

    .color-input-wrapper input[type="color"] {
        width: 32px;
        min-width: 32px;
        height: 32px;
    }

    .size-option {
        padding: 0.5rem;
        font-size: 0.7rem;
    }

    .download-size-options {
        gap: 0.375rem;
    }

    .download-size-option .size-box {
        padding: 0.5rem;
    }

    .download-size-option .size-box strong {
        font-size: 0.8rem;
    }

    .download-size-option .size-box small {
        font-size: 0.65rem;
    }
}
