/* BeQr.css - QR Landing Page Styles */

/* ===== CUSTOM PROPERTIES ===== */
:root {


    /* QR Flow ayarları */
    --qrflow-top-space: clamp(160px, 26vh, 320px);
    /* üstte tek QR için boşluk */
}

/* ===== HERO SECTION ===== */
.qr-hero {
    background: linear-gradient(to bottom, var(--color-primary) 0%, var(--color-primary-dark) 40%, transparent 100%);
    background-size: 200% 200%;

    padding: 60px 0 100px;
    position: relative;
    overflow: hidden;
    color: white;

    /* katmanlar için */
    isolation: isolate;
}

/* Arka plan parıltısı (QR karelerini boğmasın diye z-index kontrol) */


/* Hafif vignette (kontrast toparlar) */


@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ===== QR FLOW (Physics Canvas) ===== */
.qr-hero__qrflow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;

    /* background üstünde, içerik altında */
    z-index: 1;

    pointer-events: none;

    /* kareleri biraz “pop” ettirir */
    opacity: 0.95;
}

/* İçerik üstte kalsın */
.qr-hero__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (min-width: 992px) {
    .qr-hero__inner {
        grid-template-columns: 1fr 1fr;
    }
}

/* QR Flow açıkken: 2. kolon boşluk bırakmasın + içerik QR’ın altına insin */
.qr-hero--qrflow {
    /* istersen burada padding oynayabilirsin */
}

.qr-hero--qrflow .qr-hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;

    /* üstte tek QR alanı bırak */
    padding-top: var(--qrflow-top-space);
    text-align: center;
}

/* Flow modunda içerikleri ortala */
.qr-hero--qrflow .qr-hero__content {
    margin: 0 auto;
    max-width: 760px;
}

.qr-hero--qrflow .qr-hero__cta,
.qr-hero--qrflow .qr-hero__stats {
    justify-content: center;
}

/*
  JS, QR’ı konumlamak için .qr-hero__visual bounding box’ını kullanıyordu.
  Flow modunda bunu “anchor” gibi kullanıyoruz: görünmez ama ölçüsü var.
*/
.qr-hero--qrflow .qr-hero__visual {
    position: absolute;
    top: clamp(16px, 2vh, 28px);
    left: 50%;
    transform: translateX(-50%);
    width: min(44vw, 360px);
    height: min(44vw, 360px);
    z-index: 1;
    opacity: 0;
    /* anchor görünmez */
    pointer-events: none;
}



/* ===== HERO CONTENT ===== */
.qr-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.qr-hero__badge-icon {
    font-size: 18px;
}

.qr-hero__title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .qr-hero__title {
        font-size: 48px;
    }
}

.qr-hero__title-line {
    display: block;
}

.qr-hero__title-line--gradient {
    background: linear-gradient(to right, #fff, #ffd700, #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

.qr-hero__subtitle {
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 24px;
    opacity: 0.95;
    max-width: 540px;
}

.qr-hero--qrflow .qr-hero__subtitle {
    margin-left: auto;
    margin-right: auto;
    max-width: 680px;
}

.qr-hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.qr-hero__stat {
    text-align: center;
}

.qr-hero__stat-number {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 2px;
}

.qr-hero__stat-label {
    font-size: 11px;
    opacity: 0.9;
    font-weight: 500;
}

.qr-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn--large {
    padding: 14px 32px;
    font-size: 16px;
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ===== 3D QR CODE ANIMATION (Fallback / normal mode) ===== */
.qr-hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.qr-hero__qr-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.qr-hero__qr-code {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotateY(0deg);
    }

    25% {
        transform: translateY(-20px) rotateY(5deg);
    }

    50% {
        transform: translateY(0) rotateY(0deg);
    }

    75% {
        transform: translateY(-15px) rotateY(-5deg);
    }
}

.qr-hero__qr-inner {
    width: 100%;
    height: 100%;
}

.qr-hero__qr-inner svg {
    width: 100%;
    height: 100%;
}

/* ===== QR BUILD ANIMATION ===== */
#qr-build-animation {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    grid-template-rows: repeat(11, 1fr);
    gap: 3px;
    width: 100%;
    height: 100%;
}

.qr-cell {
    background: transparent;
    border-radius: 2px;
    transform: scale(0);
    opacity: 0;
    transition: none;
}

.qr-cell--filled {
    background: var(--color-primary);
}

.qr-cell--animating {
    animation: qrCellPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes qrCellPop {
    0% {
        transform: scale(0) rotate(-10deg);
        opacity: 0;
    }

    60% {
        transform: scale(1.15) rotate(3deg);
        opacity: 1;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Hazır Badge */
.qr-hero__ready-badge {
    position: absolute;
    bottom: -12px;
    right: -12px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
    opacity: 0;
    transform: scale(0.5) translateY(10px);
    transition: none;
    z-index: 10;
}

.qr-hero__ready-badge--visible {
    animation: readyBadgePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes readyBadgePop {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(10px);
    }

    70% {
        transform: scale(1.1) translateY(-2px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.qr-hero__ready-icon {
    font-size: 16px;
}

.qr-hero__ready-text {
    letter-spacing: 0.5px;
}





/* ===== QR SIMULATOR ===== */
.qr-simulator {
    background: var(--color-bg);
}

.qr-simulator__card {
    background: white;
    border-radius: var(--radius-card);
    padding: 48px;
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 992px) {
    .qr-simulator__card {
        grid-template-columns: 1fr 1fr;
    }
}

.qr-simulator__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 12px;
}

.qr-simulator__input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    font-family: var(--font-base);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.qr-simulator__input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(104, 135, 69, 0.1);
}

.qr-simulator__generate-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    padding: 14px 24px;
}

.qr-simulator__btn-icon {
    font-size: 20px;
}

.qr-simulator__qr-output {
    min-height: 280px;
    background: #f8f8f8;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 2px dashed #ddd;
    transition: all 0.3s ease;
}

.qr-simulator__qr-output.has-qr {
    background: white;
    border: 2px solid var(--color-primary);
    box-shadow: 0 10px 40px rgba(104, 135, 69, 0.2);
}

.qr-simulator__placeholder {
    text-align: center;
    color: var(--color-muted);
}

.qr-simulator__placeholder-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    opacity: 0.3;
}

.qr-simulator__placeholder p {
    margin: 0;
    font-size: 14px;
}

.qr-simulator__actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.qr-simulator__actions .btn {
    flex: 1;
}

/* ===== FLIP CARDS ===== */
.qr-benefits {
    background: linear-gradient(to bottom, var(--color-bg), #fff);
    padding: 80px 0;
}

.qr-benefits__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
}

@media (min-width: 768px) {
    .qr-benefits__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .qr-benefits__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.flip-card {
    perspective: 1000px;
    height: 320px;
    cursor: pointer;
}

.flip-card__inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card__inner {
    transform: rotateY(180deg);
}

.flip-card__front,
.flip-card__back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius-card);
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.flip-card__front {
    background: white;
    border: 2px solid #f0f0f0;
}

.flip-card__back {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    transform: rotateY(180deg);
}

.flip-card__icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.flip-card__icon--success {
    background: rgba(255, 255, 255, 0.2);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.flip-card__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px;
}

.flip-card__text {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}

.flip-card__hint {
    margin-top: auto;
    font-size: 13px;
    color: var(--color-primary);
    font-weight: 600;
    padding-top: 20px;
}

.flip-card__stat {
    margin-top: 20px;
    font-size: 18px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 999px;
}

/* ===== STATISTICS SECTION ===== */
.qr-stats {
    background: white;
}

.qr-stats__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
}

@media (min-width: 768px) {
    .qr-stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .qr-stats__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: var(--radius-card);
    padding: 32px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--qr-shadow);
}

.stat-card:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stat-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.stat-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.stat-card:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.stat-card__icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.stat-card__number {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 8px;
}

.stat-card__number::after {
    content: attr(data-suffix);
}

.stat-card__label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.stat-card__desc {
    font-size: 13px;
    margin: 0;
    opacity: 0.9;
}

/* ===== CAROUSEL ===== */
.qr-stories {
    background: var(--color-bg);
}

.carousel {
    position: relative;
    max-width: 800px;
    margin: 48px auto 0;
}

.carousel__track {
    position: relative;
    overflow: hidden;
}

.carousel__slide {
    display: none;
    animation: slideIn 0.5s ease-out;
}

.carousel__slide--active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.story-card {
    background: white;
    border-radius: var(--radius-card);
    padding: 40px;
    box-shadow: var(--shadow-soft);
}

.story-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.story-card__logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.story-card__name {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px;
}

.story-card__location {
    font-size: 14px;
    color: var(--color-muted);
    margin: 0;
}

.story-card__quote {
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 24px;
    font-style: italic;
    color: var(--color-text-main);
}

.story-card__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

.story-card__stat {
    text-align: center;
}

.story-card__stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.story-card__stat-label {
    font-size: 13px;
    color: var(--color-muted);
}

/* Carousel Controls */
.carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel__btn:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel__btn--prev {
    left: -24px;
}

.carousel__btn--next {
    right: -24px;
}

@media (max-width: 768px) {
    .carousel__btn--prev {
        left: 8px;
    }

    .carousel__btn--next {
        right: 8px;
    }
}

.carousel__indicators {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
}

.carousel__indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel__indicator--active {
    background: var(--color-primary);
    width: 32px;
    border-radius: 6px;
}

/* ===== FINAL CTA ===== */
.qr-final-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.qr-final-cta__title {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 16px;
}

.qr-final-cta__subtitle {
    font-size: 18px;
    margin: 0 0 40px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.qr-final-cta__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .qr-hero {
        padding: 60px 0 80px;
    }

    .qr-hero__title {
        font-size: 36px;
    }

    .qr-hero__qr-container {
        width: 240px;
        height: 240px;
    }

    .qr-simulator__card {
        padding: 32px;
    }

    .flip-card {
        height: 280px;
    }

    .story-card {
        padding: 24px;
    }

    .qr-final-cta__title {
        font-size: 32px;
    }

    /* Flow modunda üst boşluğu biraz azalt */
    .qr-hero--qrflow {
        --qrflow-top-space: clamp(140px, 22vh, 240px);
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {

    .qr-hero,
    .qr-hero__qr-code,
    .flip-card__inner,
    .carousel__slide {
        animation: none !important;
    }

    .flip-card:hover .flip-card__inner {
        transform: none;
    }

    /* motion yoksa canvas’ı kapat, fallback 3D QR görünsün */
    .qr-hero__qrflow {
        display: none !important;
    }

    .qr-hero--qrflow .qr-hero__qr-container {
        display: block !important;
    }

    .qr-hero--qrflow .qr-hero__visual {
        opacity: 1;
        position: static;
        transform: none;
        width: auto;
        height: auto;
    }

    .qr-hero--qrflow .qr-hero__inner {
        padding-top: 0;
        text-align: left;
    }
}

/* ===== PHONE SCAN OVERLAY ===== */
.qr-hero__qr-code {
    position: relative;
    overflow: hidden;
}

.qr-phone-overlay {
    position: absolute;
    inset: -20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 10;
}

.qr-phone-overlay.active {
    opacity: 1;
}

.qr-phone-frame {
    width: 90%;
    height: 100%;
    background: rgba(20, 20, 20, 0.85);
    border-radius: 32px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.qr-phone-notch {
    width: 80px;
    height: 20px;
    background: #1a1a1a;
    border-radius: 0 0 12px 12px;
    margin-bottom: 8px;
}

.qr-phone-screen {
    flex: 1;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.qr-camera-ui {
    width: 70%;
    height: 70%;
    position: relative;
}

.qr-camera-corners {
    position: absolute;
    inset: 0;
    border: 3px solid var(--color-primary);
    border-radius: 12px;
    /* Corner effect */
    clip-path: polygon(0 0, 30% 0, 30% 3px, 3px 3px, 3px 30%, 0 30%,
            0 70%, 3px 70%, 3px 97%, 30% 97%, 30% 100%, 0 100%,
            100% 100%, 100% 70%, 70% 70%, 70% 100%, 70% 100%, 70% 97%, 97% 97%, 97% 70%, 100% 70%,
            100% 30%, 97% 30%, 97% 3px, 70% 3px, 70% 0, 100% 0);
}

/* Simpler approach with pseudo elements */
.qr-camera-corners::before,
.qr-camera-corners::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid var(--color-primary);
}

.qr-camera-corners::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
    border-radius: 8px 0 0 0;
}

.qr-camera-corners::after {
    top: -2px;
    right: -2px;
    border-left: none;
    border-bottom: none;
    border-radius: 0 8px 0 0;
}

/* Hidden until simpler corners are used */
.qr-camera-corners {
    border: none;
    clip-path: none;
}

/* Corner elements */
.qr-camera-ui::before,
.qr-camera-ui::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid var(--color-primary);
}

.qr-camera-ui::before {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 8px;
}

.qr-camera-ui::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
    border-radius: 0 0 8px 0;
}

/* Scan Beam */
.qr-scan-beam {
    position: absolute;
    left: 5%;
    right: 5%;
    height: 3px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--color-primary) 20%,
            #90EE90 50%,
            var(--color-primary) 80%,
            transparent 100%);
    box-shadow:
        0 0 15px var(--color-primary),
        0 0 30px rgba(104, 135, 69, 0.5);
    border-radius: 2px;
    top: 0;
    opacity: 0;
    transform: scaleX(0.8);
}

.qr-phone-overlay.scanning .qr-scan-beam {
    opacity: 1;
    transform: scaleX(1);
    animation: scanBeam 2s ease-in-out forwards;
}

@keyframes scanBeam {
    0% {
        top: 5%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 90%;
        opacity: 0;
    }
}

/* ===== MENU PREVIEW ===== */
.qr-menu-preview {
    position: absolute;
    inset: 20px;
    background: white;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 15;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.qr-menu-preview.visible {
    opacity: 1;
    transform: scale(1);
}

.qr-menu-preview__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-primary);
}

.qr-menu-preview__icon {
    font-size: 24px;
}

.qr-menu-preview__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.qr-menu-preview__items {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qr-menu-preview__item {
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: shimmerItem 1.5s infinite;
}

.qr-menu-preview__item:nth-child(1) {
    width: 100%;
}

.qr-menu-preview__item:nth-child(2) {
    width: 85%;
}

.qr-menu-preview__item:nth-child(3) {
    width: 70%;
}

@keyframes shimmerItem {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.qr-menu-preview__badge {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    animation: badgePulse 1s ease-in-out infinite alternate;
}

@keyframes badgePulse {
    from {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }

    to {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
}

/* ===== QR CODE BUILD ANIMATION ===== */
#qr-real-code {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#qr-real-code canvas,
#qr-real-code img {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

#qr-real-code.qr-built canvas,
#qr-real-code.qr-built img {
    opacity: 1;
    transform: scale(1);
}

/* Grid overlay for build animation */
.qr-build-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(21, 1fr);
    grid-template-rows: repeat(21, 1fr);
    gap: 1px;
    z-index: 5;
    pointer-events: none;
}

.qr-build-cell {
    background: var(--color-primary);
    opacity: 0;
    transform: scale(0);
    border-radius: 1px;
}

.qr-build-cell.animate {
    animation: cellBuild 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cellBuild {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-15deg);
    }

    60% {
        opacity: 1;
        transform: scale(1.1) rotate(3deg);
    }

    100% {
        opacity: 0;
        transform: scale(0);
    }
}

/* ===== TOUCH HINT (MOBILE) ===== */
.qr-touch-hint {
    display: none;
    position: absolute;
    bottom: -48px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 999px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    gap: 8px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: touchPulse 2s ease-in-out infinite;
    cursor: pointer;
}

.qr-touch-hint__icon {
    font-size: 18px;
    animation: fingerTap 1s ease-in-out infinite;
}

@keyframes touchPulse {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
    }

    50% {
        transform: translateX(-50%) scale(1.05);
    }
}

@keyframes fingerTap {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

@media (max-width: 768px) {
    .qr-touch-hint {
        display: flex;
    }

    .qr-hero__qr-container {
        cursor: pointer;
    }
}

/* QR scanned state */
.qr-hero__qr-code.scanned .qr-hero__qr-inner {
    opacity: 0.3;
    filter: blur(2px);
    transition: all 0.5s ease;
}