:root {
    --qr-primary: #4361ee;
    --qr-secondary: #7209b7;
    --qr-success: #06d6a0;
    --qr-warning: #ffd166;
    --qr-danger: #ef476f;
    --qr-light: #f8f9fa;
    --qr-dark: #212529;
    --qr-gray: #6c757d;
    --qr-card-bg: rgba(255, 255, 255, 0.9);
    --qr-text: #333;
    --qr-bg: #f0f2f5;
}

.qr-dark-theme {
    --qr-primary: #5e72e4;
    --qr-secondary: #9b59b6;
    --qr-success: #2ecc71;
    --qr-warning: #f39c12;
    --qr-danger: #e74c3c;
    --qr-light: #2d3436;
    --qr-dark: #f8f9fa;
    --qr-gray: #95a5a6;
    --qr-card-bg: rgba(25, 30, 60, 0.7);
    --qr-text: #e2e8f0;
    --qr-bg: #0b0f2b;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--qr-bg);
    color: var(--qr-text);
    margin: 0;
    padding: 0;
    transition: background 0.3s ease, color 0.3s ease;
    line-height: 1.6;
    overflow-x: hidden;
    touch-action: manipulation;
}

.qr-generator-container {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    z-index: 1;
}

.qr-space-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

@keyframes qr-rocket-movement {
    100% { transform: translate(1200px, -600px); }
}
@keyframes qr-spin-earth {
    100% { transform: rotate(-360deg); }
}
@keyframes qr-move-astronaut {
    100% { transform: translate(-160px, -160px); }
}
@keyframes qr-rotate-astronaut {
    100% { transform: rotate(-720deg); }
}
@keyframes qr-glow-star {
    40% { opacity: 0.3; }
    90%,100% { opacity: 1; transform: scale(1.2); }
}
@keyframes qr-fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes qr-scanLaser {
    0% { top: 0; }
    50% { top: 100%; }
    100% { top: 0; }
}

.qr-object-rocket {
    width: 30px;
    position: absolute;
    top: 75%;
    left: -50px;
    animation: qr-rocket-movement 200s linear infinite;
    z-index: 1;
}

.qr-object-earth {
    width: 100px;
    position: absolute;
    top: 20%;
    left: 15%;
    animation: qr-spin-earth 50s infinite linear;
    z-index: 1;
}

.qr-box-astronaut {
    position: absolute;
    top: 50%;
    right: 10%;
    animation: qr-move-astronaut 95s infinite linear;
    z-index: 1;
    transform: scale(0.2);
}

.qr-object-astronaut {
    width: 60px;
    animation: qr-rotate-astronaut 2300s infinite linear;
}

.qr-glowing-stars {
    position: absolute;
    width: 100%;
    height: 100%;
}

.qr-star {
    position: absolute;
    border-radius: 100%;
    background-color: #fff;
    width: 3px;
    height: 3px;
    opacity: 0.3;
}

.qr-star:nth-child(1) { top: 80%; left: 25%; animation: qr-glow-star 2s infinite ease-in-out alternate 1s; }
.qr-star:nth-child(2) { top: 20%; left: 40%; animation: qr-glow-star 2s infinite ease-in-out alternate 3s; }
.qr-star:nth-child(3) { top: 25%; left: 25%; animation: qr-glow-star 2s infinite ease-in-out alternate 5s; }
.qr-star:nth-child(4) { top: 75%; left: 80%; animation: qr-glow-star 2s infinite ease-in-out alternate 7s; }
.qr-star:nth-child(5) { top: 90%; left: 50%; animation: qr-glow-star 2s infinite ease-in-out alternate 9s; }

.qr-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px;
}

.qr-header {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.qr-dark-theme .qr-header {
    background: rgba(25, 30, 60, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.qr-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.qr-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--qr-primary);
    text-decoration: none;
}

.qr-dark-theme .qr-logo {
    color: var(--qr-primary);
}

.qr-logo-icon {
    background: linear-gradient(135deg, var(--qr-primary), var(--qr-secondary));
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.qr-nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.qr-nav-link {
    color: var(--qr-gray);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.qr-nav-link:hover {
    color: var(--qr-primary);
}

.qr-theme-toggle {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--qr-text);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.qr-dark-theme .qr-theme-toggle {
    background: rgba(255, 255, 255, 0.1);
}

.qr-theme-toggle:hover {
    transform: rotate(15deg);
    background: var(--qr-primary);
    color: white;
}

.qr-mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 101;
}

.qr-mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--qr-text);
    margin: 2px 0;
    transition: all 0.3s ease;
}

.qr-hero {
    padding: 40px 0 30px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.qr-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--qr-primary), var(--qr-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.3;
    font-weight: 800;
}

.qr-hero p {
    font-size: 1rem;
    color: var(--qr-gray);
    margin-bottom: 30px;
}

.qr-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.qr-tab-btn {
    padding: 12px 20px;
    background: rgba(67, 97, 238, 0.1);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: var(--qr-text);
    margin-bottom: 5px;
    flex: 1;
    min-width: 120px;
    max-width: 200px;
    justify-content: center;
    text-align: center;
}

.qr-tab-btn.qr-active {
    background: linear-gradient(135deg, var(--qr-primary), var(--qr-secondary));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.3);
}

.qr-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 60px;
}

@media (max-width: 1100px) {
    .qr-main-content {
        grid-template-columns: 1fr;
    }
}

.qr-card {
    background: var(--qr-card-bg);
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    backdrop-filter: blur(10px);
    animation: qr-fadeIn 0.6s ease forwards;
}

.qr-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.qr-card-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--qr-text);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.qr-card-title i {
    background: linear-gradient(135deg, var(--qr-primary), var(--qr-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.qr-form-group {
    margin-bottom: 22px;
}

.qr-form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--qr-text);
    font-size: 1rem;
}

.qr-content-types {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.qr-type-btn {
    padding: 12px;
    background: rgba(67, 97, 238, 0.05);
    border: 2px solid transparent;
    border-radius: 10px;
    color: var(--qr-primary);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.qr-dark-theme .qr-type-btn {
    background: rgba(67, 97, 238, 0.08);
}

.qr-type-btn:hover {
    background: rgba(67, 97, 238, 0.1);
}

.qr-dark-theme .qr-type-btn:hover {
    background: rgba(67, 97, 238, 0.15);
}

.qr-type-btn.qr-active {
    background: rgba(67, 97, 238, 0.15);
    border-color: var(--qr-primary);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.1);
}

.qr-dark-theme .qr-type-btn.qr-active {
    background: rgba(67, 97, 238, 0.2);
}

.qr-textarea, .qr-input, .qr-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: rgba(240, 242, 245, 0.8);
    color: var(--qr-text);
    font-size: 0.95rem;
    resize: vertical;
    transition: all 0.3s ease;
    -webkit-appearance: none;
}

.qr-dark-theme .qr-textarea,
.qr-dark-theme .qr-input,
.qr-dark-theme .qr-select {
    background: rgba(15, 20, 50, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.qr-textarea:focus, .qr-input:focus, .qr-select:focus {
    outline: none;
    border-color: var(--qr-primary);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.2);
}

.qr-textarea {
    min-height: 120px;
}

.qr-color-pickers {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 15px 0;
}

.qr-color-picker {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qr-color-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qr-color-input input[type="color"] {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    padding: 2px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.qr-dark-theme .qr-color-input input[type="color"] {
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.qr-color-input input[type="text"] {
    flex: 1;
    background: rgba(240, 242, 245, 0.8);
    color: var(--qr-text);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 10px;
    font-size: 0.95rem;
}

.qr-dark-theme .qr-color-input input[type="text"] {
    background: rgba(15, 20, 50, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.qr-logo-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border: 2px dashed rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin: 15px 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qr-dark-theme .qr-logo-upload {
    border: 2px dashed rgba(255, 255, 255, 0.1);
}

.qr-logo-upload:hover {
    border-color: var(--qr-primary);
    background: rgba(67, 97, 238, 0.05);
}

.qr-dark-theme .qr-logo-upload:hover {
    border-color: var(--qr-primary);
    background: rgba(67, 97, 238, 0.05);
}

.qr-logo-upload i {
    font-size: 2rem;
    color: var(--qr-primary);
}

.qr-logo-upload p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.qr-logo-preview {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    margin: 8px auto;
    display: none;
}

.qr-result-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-qrcode-wrapper {
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 14px;
    margin: 15px 0;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.qr-dark-theme .qr-qrcode-wrapper {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#qrcode {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 15px;
}

.qr-placeholder {
    text-align: center;
    color: var(--qr-gray);
    padding: 30px 15px;
    font-style: italic;
}

.qr-action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    width: 100%;
    margin-top: 15px;
}

.qr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 44px;
}

.qr-btn-download {
    background: var(--qr-success);
    color: white;
}

.qr-btn-copy {
    background: var(--qr-primary);
    color: white;
}

.qr-btn-share {
    background: var(--qr-secondary);
    color: white;
}

.qr-btn-test {
    background: var(--qr-warning);
    color: var(--qr-dark);
}

.qr-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.qr-btn:active {
    transform: translateY(0);
}

.qr-result-info {
    width: 100%;
    margin-top: 25px;
}

.qr-info-card {
    background: rgba(67, 97, 238, 0.05);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 15px;
    border-left: 4px solid var(--qr-primary);
}

.qr-dark-theme .qr-info-card {
    background: rgba(67, 97, 238, 0.05);
    border-left: 4px solid var(--qr-primary);
}

.qr-info-card h3 {
    margin-bottom: 10px;
    color: var(--qr-text);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

.qr-link-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: rgba(240, 242, 245, 0.8);
    color: var(--qr-text);
    margin-top: 8px;
    font-size: 0.9rem;
}

.qr-dark-theme .qr-link-input {
    background: rgba(15, 20, 50, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.qr-copy-btn {
    background: var(--qr-primary);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.qr-copy-btn:hover {
    background: #3a56d4;
    transform: translateY(-2px);
}

.qr-scanner-container {
    max-width: 1000px;
    margin: 0 auto;
    animation: qr-fadeIn 0.6s ease forwards;
}

.qr-payment-container {
    display: none;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    animation: qr-fadeIn 0.6s ease forwards;
}

.qr-payment-info {
    background: rgba(6, 214, 160, 0.1);
    padding: 18px;
    border-radius: 14px;
    margin-bottom: 25px;
    border-left: 4px solid var(--qr-success);
}

.qr-dark-theme .qr-payment-info {
    background: rgba(6, 214, 160, 0.1);
    border-left: 4px solid var(--qr-success);
}

.qr-payment-info h3 {
    margin-top: 0;
    color: var(--qr-success);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
}

.qr-payment-types {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.qr-payment-type {
    flex: 1;
    min-width: 130px;
    padding: 16px;
    background: var(--qr-card-bg);
    border-radius: 14px;
    cursor: pointer;
    border: 2px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.qr-dark-theme .qr-payment-type {
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.qr-payment-type.qr-active {
    border-color: var(--qr-primary);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.2);
    transform: translateY(-3px);
}

.qr-payment-type i {
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--qr-primary);
}

.qr-payment-type h4 {
    margin: 8px 0;
    font-size: 0.95rem;
}

.qr-payment-form {
    background: var(--qr-card-bg);
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.qr-payment-field {
    margin-bottom: 18px;
}

.qr-payment-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--qr-text);
    font-size: 0.95rem;
}

.qr-recipient-type {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.qr-recipient-type label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.qr-payment-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.qr-scanner-view {
    width: 100%;
    max-width: 100%;
    height: 500px;
    margin: 0 auto 15px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.05);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-dark-theme .qr-scanner-view {
    background: rgba(15, 20, 50, 0.5);
}

#scanner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qr-scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.qr-scanner-guide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    height: 85%;
    border: 2px solid var(--qr-primary);
    border-radius: 8px;
    box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-scanner-laser {
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 4px;
    background: var(--qr-danger);
    box-shadow: 0 0 8px rgba(239, 71, 111, 0.8);
    animation: qr-scanLaser 2s infinite ease-in-out;
}

.qr-scanner-result {
    background: var(--qr-card-bg);
    padding: 18px;
    border-radius: 14px;
    margin-top: 18px;
    text-align: left;
    backdrop-filter: blur(10px);
}

.qr-scanner-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.qr-scanner-status {
    padding: 10px 16px;
    border-radius: 10px;
    margin: 12px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.qr-status-searching {
    background: rgba(67, 97, 238, 0.1);
    color: var(--qr-primary);
    border-left: 4px solid var(--qr-primary);
}

.qr-status-success {
    background: rgba(6, 214, 160, 0.1);
    color: var(--qr-success);
    border-left: 4px solid var(--qr-success);
}

.qr-status-error {
    background: rgba(239, 71, 111, 0.1);
    color: var(--qr-danger);
    border-left: 4px solid var(--qr-danger);
}

.qr-camera-selector {
    margin: 12px 0;
    width: 100%;
    padding: 10px 16px;
    background: rgba(240, 242, 245, 0.8);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    color: var(--qr-text);
    font-size: 0.95rem;
}

.qr-dark-theme .qr-camera-selector {
    background: rgba(15, 20, 50, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.qr-scanner-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 12px 0;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
}

.qr-zoom-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--qr-card-bg);
    padding: 6px 12px;
    border-radius: 10px;
}

.qr-zoom-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--qr-primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1rem;
}

.qr-focus-btn {
    background: var(--qr-secondary);
    padding: 8px 16px;
    border-radius: 10px;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
}

.qr-scanner-hints {
    background: rgba(67, 97, 238, 0.1);
    border-left: 4px solid var(--qr-primary);
    padding: 12px;
    border-radius: 8px;
    margin: 18px 0;
    font-size: 0.9rem;
}

.qr-hint-item {
    display: flex;
    gap: 8px;
    margin: 8px 0;
    align-items: flex-start;
}

.qr-hint-icon {
    color: var(--qr-primary);
    font-size: 1.1rem;
    min-width: 22px;
    padding-top: 2px;
}

.qr-debug-panel {
    background: var(--qr-card-bg);
    padding: 12px;
    border-radius: 14px;
    margin-top: 18px;
    font-family: monospace;
    font-size: 0.8rem;
    max-height: 180px;
    overflow: auto;
    display: none;
    backdrop-filter: blur(10px);
}

.qr-debug-toggle {
    background: var(--qr-dark);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.qr-history-container {
    display: none;
    margin-top: 25px;
    animation: qr-fadeIn 0.6s ease forwards;
}

.qr-history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 18px;
}

.qr-history-item {
    background: rgba(240, 242, 245, 0.8);
    border-radius: 14px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qr-dark-theme .qr-history-item {
    background: rgba(15, 20, 50, 0.5);
}

.qr-history-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.qr-history-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.qr-history-item p {
    margin-top: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qr-footer {
    background: var(--qr-card-bg);
    padding: 35px 0 25px;
    margin-top: 50px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.qr-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 35px;
}

.qr-footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 18px;
    color: var(--qr-text);
}

.qr-footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qr-footer-link {
    color: var(--qr-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.qr-footer-link:hover {
    color: var(--qr-primary);
}

.qr-copyright {
    text-align: center;
    padding-top: 25px;
    margin-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--qr-gray);
    font-size: 0.9rem;
}

.qr-data-warning {
    background-color: rgba(255, 243, 205, 0.5);
    border-left: 4px solid #ffc107;
    color: #856404;
    padding: 12px;
    margin: 12px 0;
    border-radius: 4px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qr-scanned-items {
    margin-top: 25px;
}

.qr-scanned-item {
    background: rgba(240, 242, 245, 0.8);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qr-scanned-item-content {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-grow: 1;
    font-size: 0.9rem;
}

.qr-rotate-icon {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    cursor: pointer;
}

.qr-scanner-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    max-height: 180px;
    overflow-y: auto;
    background: rgba(240, 242, 245, 0.8);
    padding: 8px;
    border-radius: 8px;
    margin: 8px 0;
    font-size: 0.9rem;
}

.qr-payment-result {
    display: none;
    margin-top: 25px;
}

.qr-ai-styles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.qr-ai-style {
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qr-ai-style.qr-active {
    border-color: var(--qr-primary);
    transform: scale(0.95);
}

.qr-ai-style img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.qr-ai-style p {
    text-align: center;
    padding: 5px;
    margin: 0;
    font-size: 0.8rem;
}

.qr-crypto-form {
    display: grid;
    gap: 15px;
}

.qr-form-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px;
    align-items: center;
}

@media (max-width: 768px) {
    .qr-nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--qr-card-bg);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        gap: 25px;
        transition: right 0.4s ease;
        z-index: 100;
    }

    .qr-nav-links.qr-active {
        right: 0;
    }

    .qr-mobile-menu-btn {
        display: flex;
        z-index: 101;
    }

    .qr-mobile-menu-btn.qr-active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .qr-mobile-menu-btn.qr-active span:nth-child(2) {
        opacity: 0;
    }

    .qr-mobile-menu-btn.qr-active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .qr-hero h1 {
        font-size: 1.8rem;
    }

    .qr-hero p {
        font-size: 0.95rem;
    }

    .qr-tab-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
        min-width: 100px;
    }

    .qr-card {
        padding: 20px;
    }

    .qr-card-title {
        font-size: 1.3rem;
    }

    .qr-qrcode-wrapper {
        width: 200px;
        height: 200px;
    }

    .qr-scanner-view {
        height: 350px;
    }

    .qr-payment-types {
        flex-direction: column;
    }

    .qr-payment-type {
        min-width: 100%;
    }

    .qr-footer-column {
        text-align: center;
    }

    .qr-footer-links {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .qr-content-wrapper {
        padding: 10px;
    }

    .qr-logo span {
        font-size: 1.3rem;
    }

    .qr-hero {
        padding: 30px 0 20px;
    }

    .qr-hero h1 {
        font-size: 1.6rem;
    }

    .qr-tabs {
        gap: 8px;
    }

    .qr-tab-btn {
        padding: 10px 12px;
        font-size: 0.85rem;
        min-width: 90px;
    }

    .qr-card {
        padding: 18px;
        border-radius: 12px;
    }

    .qr-content-types {
        grid-template-columns: repeat(2, 1fr);
    }

    .qr-type-btn {
        padding: 10px;
        font-size: 0.8rem;
    }

    .qr-textarea, .qr-input, .qr-select {
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    .qr-textarea {
        min-height: 100px;
    }

    .qr-qrcode-wrapper {
        width: 180px;
        height: 180px;
    }

    .qr-action-buttons {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 8px;
    }

    .qr-btn {
        padding: 10px 12px;
        font-size: 0.85rem;
        min-height: 40px;
    }

    .qr-scanner-view {
        height: 220px;
    }

    .qr-scanner-controls {
        gap: 8px;
    }

    .qr-history-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 12px;
    }

    .qr-footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* Стили для формы PayPal */
.qr-paypal-form {
display: grid;
grid-template-columns: 1fr;
gap: 15px;
margin-top: 10px;
}

.qr-paypal-form .qr-form-row {
display: flex;
flex-direction: column;
}

.qr-paypal-form label {
margin-bottom: 5px;
font-size: 14px;
color: var(--text-color);
}

.qr-paypal-form .qr-input {
padding: 10px;
border: 1px solid var(--border-color);
border-radius: 8px;
background-color: var(--input-bg);
color: var(--text-color);
}
.gagarin-image {
	width: 200px;          /* можно изменить под нужный размер */
	height: 200px;
	object-fit: cover;
	border-radius: 50%;
	display: block;
	margin: 20px auto;     /* центрирует изображение */
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* необязательно: тень */
}
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 20px;
margin-top: 20px;
}

.feature-card {
background: #fff;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
padding: 20px;
text-align: center;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
transform: translateY(-5px);
box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.feature-icon {
font-size: 32px;
color: #0077ff;
margin-bottom: 10px;
}

.feature-title {
font-size: 16px;
font-weight: 600;
margin: 10px 0 8px;
color: #333;
}

.feature-description {
font-size: 14px;
color: #555;
line-height: 1.5;
}

.qr-seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.qr-seo-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 20px;
  transition: 0.3s ease;
}

.qr-seo-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transform: translateY(-5px);
}

.qr-seo-card h4 {
  font-size: 16px;
  color: #1a1a1a;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.qr-seo-card p {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}

.result-actions {
margin-top: 20px;
text-align: center;
}

.share-buttons {
display: flex;
flex-wrap: wrap;
gap: 8px; /* немного уменьшили */
justify-content: center;
}

.share-btn {
padding: 6px 10px; /* уменьшили кнопки */
font-size: 13px; /* чуть меньше шрифт */
border: none;
border-radius: 4px;
color: white;
cursor: pointer;
display: flex;
align-items: center;
gap: 6px; /* уменьшили расстояние между иконкой и текстом */
transition: opacity 0.3s;
}

.share-btn:hover {
opacity: 0.9;
}

.whatsapp-btn { background-color: #25D366; }
.telegram-btn { background-color: #0088cc; }
.instagram-btn {
background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.tiktok-btn { background-color: #000000; }
/* Стили для переключателя режимов */
.qr-payment-mode-selector {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.qr-mode-btn {
    padding: 12px 24px;
    background: #f5f5f5;
    border: none;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.qr-mode-btn:hover {
    background: #e0e0e0;
}

.qr-mode-btn.active {
    background: #4361ee;
    color: white;
    position: relative;
}

.qr-mode-btn.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #4361ee;
}