/* 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 .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: clamp(44px, 7vw, 88px);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.04em;
    margin: 0 0 24px;
    color: var(--wte-ink);
}

.qr-hero__title span {
    display: block;
    color: var(--color-bg);
}

.qr-hero__subtitle {
    font-size: 18px;
    line-height: 1.65;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    max-width: 480px;
}

.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__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;
}
/* =========================================================
   QR ROADMAP — hand-drawn S curve timeline
   ========================================================= */
.qr-roadmap {
    --road-bg: #f9f1e8;
    --road-surface: rgba(255, 255, 255, 0.88);
    --road-surface-strong: #fffdf9;
    --road-ink: #3f3024;
    --road-muted: #6e6257;
    --road-green: #7f9d58;
    --road-green-dark: #688745;
    --road-green-soft: #d7e3bf;
    --road-shadow: 0 24px 60px rgba(75, 58, 45, 0.14);
    --road-shadow-soft: 0 16px 38px rgba(75, 58, 45, 0.1);
    --road-radius-lg: 28px;
    --road-radius-md: 22px;
    --road-transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    background:
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.65), transparent 42%),
        linear-gradient(180deg, #fcf6ef 0%, var(--road-bg) 52%, #f5ebdf 100%);
    padding-top: 76px;
    padding-bottom: 76px;
}

.qr-roadmap .section__title {
    color: var(--road-ink);
}

.qr-roadmap .section__subtitle {
    color: var(--road-muted);
}

.qr-roadmap__stage {
    position: relative;
    margin-top: 42px;
    padding: 10px 56px 80px;
}

.qr-roadmap__road {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
    z-index: 1;
}

.qr-roadmap__step-row {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 54px;
    padding: 40px 0;
    color: var(--c);
}

.qr-roadmap__step-row--left {
    flex-direction: row;
}

.qr-roadmap__step-row--right {
    flex-direction: row-reverse;
}

.qr-roadmap__video-block {
    flex: 0 0 550px;
    width: 550px;
    aspect-ratio: 105 / 64;
    border-radius: var(--road-radius-md);
    background: var(--road-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--road-shadow-soft);
    transition: transform var(--road-transition), box-shadow var(--road-transition);
    border: 2.5px dashed var(--c);
}

.qr-roadmap__video-block:hover {
    transform: translateY(-5px);
    box-shadow: var(--road-shadow);
}

.qr-roadmap__video-block video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--road-radius-md) - 3px);
    display: block;
    background: #191919;
}

.qr-roadmap__text-block {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.qr-roadmap__step-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qr-roadmap__step-badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--c);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.3px;
    box-shadow: 0 12px 20px color-mix(in srgb, var(--c) 34%, transparent);
}

.qr-roadmap__step-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2.5px solid var(--c);
    background: var(--road-surface-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.qr-roadmap__step-icon svg {
    width: 24px;
    height: 24px;
}

.qr-roadmap__title {
    margin: 0;
    font-size: clamp(17px, 2vw, 22px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--c);
}

.qr-roadmap__desc {
    margin: 0;
    max-width: 360px;
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--road-muted);
}

.qr-roadmap__btn {
    display: inline-block;
    width: fit-content;
    padding: 8px 22px;
    border-radius: 999px;
    border: 1.5px solid var(--c);
    color: var(--c);
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    transition: background var(--road-transition), color var(--road-transition), transform var(--road-transition);
}

.qr-roadmap__btn:hover {
    background: var(--c);
    color: #fff;
    transform: translateY(-2px);
}

.qr-roadmap__cta-bar {
    padding: 0 56px;
}

.qr-roadmap__cta-inner {
    background: var(--road-green-soft);
    border-radius: var(--road-radius-lg);
    padding: 30px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.qr-roadmap__cta-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.qr-roadmap__cta-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--road-green-dark);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qr-roadmap__cta-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--road-ink);
}

.qr-roadmap__cta-desc {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--road-muted);
}

.qr-roadmap__cta-btn {
    background: var(--road-green-dark);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 14px 34px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--road-transition), transform var(--road-transition);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    box-shadow: 0 18px 30px rgba(104, 135, 69, 0.18);
}

.qr-roadmap__cta-btn:hover {
    background: var(--road-green);
    color: #fff;
    transform: translateY(-2px);
}

.qr-roadmap__cta-btn small {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.85;
}

@media (max-width: 960px) {
    .qr-roadmap__stage,
    .qr-roadmap__cta-bar {
        padding-left: 24px;
        padding-right: 24px;
    }

    .qr-roadmap__step-row {
        gap: 28px;
    }

    .qr-roadmap__video-block {
        flex-basis: 420px;
        width: 420px;
    }
}

@media (max-width: 820px) {
    .qr-roadmap {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .qr-roadmap__road {
        display: none;
    }

    .qr-roadmap__stage {
        padding-bottom: 56px;
    }

    .qr-roadmap__step-row,
    .qr-roadmap__step-row--left,
    .qr-roadmap__step-row--right {
        flex-direction: column;
        gap: 22px;
        padding: 28px 0;
    }

    .qr-roadmap__video-block {
        flex: none;
        width: 100%;
        max-width: 520px;
    }

    .qr-roadmap__text-block,
    .qr-roadmap__step-header {
        width: 100%;
    }

    .qr-roadmap__desc {
        max-width: none;
    }

    .qr-roadmap__cta-inner {
        padding: 28px 24px;
        justify-content: center;
        text-align: center;
    }

    .qr-roadmap__cta-left {
        flex-direction: column;
    }

    .qr-roadmap__cta-copy {
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .qr-roadmap__video-block,
    .qr-roadmap__btn,
    .qr-roadmap__cta-btn {
        transition: none;
    }
}


/* ===== TM-ANIM V3: ADMIN PANEL REPLICA ===== */

.tm-anim {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: 14px;
  overflow: hidden;
  background: #F4F7FE;
  font-family: 'DM Sans', system-ui, sans-serif;
  display: flex;
}

/* ── Sidebar ── */
.tm-a-sidebar {
  width: 88px;
  background: #fff;
  border-right: 1px solid #f0f0f7;
  display: flex;
  flex-direction: column;
  padding: 10px 0 0;
  flex-shrink: 0;
}

.tm-a-brand {
  font-size: 10px;
  font-weight: 800;
  color: #2B3674;
  letter-spacing: 0.03em;
  padding: 0 10px 10px;
  text-align: center;
}

.tm-a-brand span { color: #4318FF; }

.tm-a-item {
  font-size: 9px;
  color: #A3AED0;
  padding: 5px 10px;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.tm-a-item--active {
  color: #2B3674;
  font-weight: 700;
  background: #F4F7FE;
}

.tm-a-item--active::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 3px;
  background: #4318FF;
  border-radius: 3px 0 0 3px;
}

/* ── Main area ── */
.tm-a-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Topbar ── */
.tm-a-topbar {
  height: 36px;
  background: #fff;
  border-bottom: 1px solid #f0f0f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  flex-shrink: 0;
}

.tm-a-breadcrumb { font-size: 8.5px; color: #A3AED0; }

.tm-a-avatar {
  width: 22px;
  height: 22px;
  background: #4318FF;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Body ── */
.tm-a-body {
  flex: 1;
  padding: 10px;
  overflow: hidden;
}

.tm-a-pt {
  font-size: 11px;
  font-weight: 700;
  color: #2B3674;
  margin-bottom: 7px;
}

/* ── Card ── */
.tm-a-card {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 4px 24px rgba(112,144,176,.10);
}

.tm-a-card-title {
  font-size: 11px;
  font-weight: 700;
  color: #2B3674;
  margin-bottom: 10px;
  text-align: center;
}

/* ── Form fields ── */
.tm-a-field { margin-bottom: 7px; }

.tm-a-lbl {
  font-size: 8.5px;
  color: #A3AED0;
  font-weight: 500;
  margin-bottom: 2px;
}

.tm-a-input {
  background: #F4F7FE;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 9.5px;
  color: #2B3674;
  min-height: 22px;
  display: flex;
  align-items: center;
}

.tm-a-frow { display: flex; gap: 6px; }
.tm-a-frow .tm-a-field { flex: 1; }
.tm-a-frow .tm-a-field:first-child { flex: 0 0 46px; }

/* ── Caret ── */
.tm-a-caret {
  display: inline-block;
  width: 1px;
  height: 10px;
  background: #4318FF;
  margin-left: 1px;
  vertical-align: middle;
  animation: tmBlink .7s steps(2, start) infinite;
}

@keyframes tmBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Button ── */
.tm-a-btn {
  display: inline-flex;
  align-items: center;
  background: #4318FF;
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 40px;
  cursor: default;
  margin-top: 4px;
}

/* ── Table rows ── */
.tm-a-trow {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
  border-bottom: 1px solid #f5f5f7;
}

.tm-a-trow:last-of-type { border-bottom: none; }

.tm-a-tname {
  flex: 1;
  font-size: 9.5px;
  color: #2B3674;
  font-weight: 500;
}

.tm-a-tcount { font-size: 8.5px; color: #A3AED0; }

/* ── Badges ── */
.tm-a-badge {
  font-size: 7.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.tm-a-badge--green { background: #ECFDF5; color: #01B574; }
.tm-a-badge--gray  { background: #F4F7FE;  color: #A3AED0; }

/* ── Upload zone ── */
.tm-a-upload {
  border: 1.5px dashed #C9D5EC;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  margin-bottom: 7px;
}

.tm-a-upload-icon { font-size: 16px; margin-bottom: 2px; }
.tm-a-upload-text { font-size: 8.5px; color: #A3AED0; }
.tm-a-upload-hint { font-size: 7.5px; color: #C9D5EC; }

/* ── Progress bar ── */
.tm-a-prog-wrap  { margin: 4px 0 8px; }
.tm-a-prog-track { height: 4px; background: #F4F7FE; border-radius: 10px; overflow: hidden; }
.tm-a-prog-fill  { height: 100%; background: #4318FF; border-radius: 10px; width: 0; }

/* ── Media grid ── */
.tm-a-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.tm-a-grid-item {
  border-radius: 5px;
  aspect-ratio: 1;
  opacity: 0;
}

.tm-a-grid-item:nth-child(1) { background: #E9D5C0; }
.tm-a-grid-item:nth-child(2) { background: #C0D5E9; }
.tm-a-grid-item:nth-child(3) { background: #D5E9C0; }
.tm-a-grid-item:nth-child(4) { background: #E9C0D5; }
.tm-a-grid-item:nth-child(5) { background: #C0E9D5; }
.tm-a-grid-item:nth-child(6) { background: #D5C0E9; }

/* ── Toggle ── */
.tm-a-toggle-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0;
}

.tm-a-toggle {
  width: 28px;
  height: 15px;
  background: #E2E8F0;
  border-radius: 10px;
  position: relative;
  flex-shrink: 0;
}

.tm-a-toggle-knob {
  width: 11px;
  height: 11px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}

.tm-a-toggle-lbl { font-size: 8.5px; color: #A3AED0; }
.tm-a-toggle-lbl--on { color: #01B574; font-weight: 600; }

/* ── Stat pills ── */
.tm-a-pills { display: flex; gap: 4px; flex-wrap: wrap; margin: 6px 0; opacity: 0; }

.tm-a-pill {
  background: #F4F7FE;
  color: #2B3674;
  font-size: 8px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
}

/* ── Live badge ── */
.tm-a-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ECFDF5;
  color: #01B574;
  font-size: 9px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  opacity: 0;
}

/* ── QR ── */
.tm-a-qr-wrap { text-align: center; padding: 4px 0; }

.tm-a-qr-frame {
  width: 68px;
  height: 68px;
  border: 2px solid #2B3674;
  border-radius: 6px;
  margin: 0 auto 5px;
  position: relative;
  overflow: hidden;
  opacity: 0;
}

.tm-a-qr-inner {
  position: absolute;
  inset: 4px;
  background: repeating-conic-gradient(#2B3674 0% 25%, transparent 0% 50%) 0/8px 8px;
  opacity: 0.5;
}

.tm-a-qr-beam {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #4318FF;
  opacity: 0.9;
  top: 0;
}

.tm-a-qr-label { font-size: 8.5px; color: #A3AED0; margin-bottom: 6px; opacity: 0; }

.tm-a-share-row { display: flex; gap: 4px; justify-content: center; opacity: 0; }

.tm-a-share-btn {
  font-size: 8.5px;
  color: #A3AED0;
  border: 1px solid #E0E5F5;
  padding: 3px 8px;
  border-radius: 20px;
  cursor: default;
}

.tm-a-share-btn--primary {
  background: #4318FF;
  color: #fff;
  border-color: #4318FF;
}

/* ── Toast ── */
.tm-a-toast {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #01B574;
  color: #fff;
  font-size: 9.5px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(1,181,116,.30);
  opacity: 0;
  pointer-events: none;
}

/* ── Step 1: full-width form (no sidebar) ── */
.tm-anim--s1 { display: block; }

.tm-anim--s1 .tm-a-main {
  width: 100%;
  height: 100%;
}

.tm-anim--s1 .tm-a-topbar { justify-content: center; }

.tm-anim--s1 .tm-a-topbar .tm-a-brand {
  font-size: 13px;
  padding: 0;
}

.tm-anim--s1 .tm-a-body {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tm-anim--s1 .tm-a-card { width: 195px; opacity: 0; }

/* ═══ KEYFRAME ANIMATIONS ═══ */

/* Shared: toast */
@keyframes tmToast {
  0%,70%  { opacity: 0; transform: translateX(-50%) translateY(8px); }
  82%     { opacity: 1; transform: translateX(-50%) translateY(0);   }
  93%     { opacity: 1; transform: translateX(-50%) translateY(0);   }
  100%    { opacity: 0; transform: translateX(-50%) translateY(8px); }
}

/* ── Step 1 ── */
.tm-anim--s1 .tm-a-card         { animation: s1Card 8s linear forwards; }
.tm-anim--s1 .tm-a-field:nth-child(1) { animation: s1F1   8s linear forwards; }
.tm-anim--s1 .tm-a-field:nth-child(2) { animation: s1F2   8s linear forwards; }
.tm-anim--s1 .tm-a-btn          { animation: s1Btn  8s linear forwards; }
.tm-anim--s1 .tm-a-toast        { animation: tmToast 8s linear forwards; }

@keyframes s1Card {
  0%   { opacity: 0; transform: translateY(8px); }
  8%   { opacity: 1; transform: translateY(0);   }
  100% { opacity: 1; }
}
@keyframes s1F1 {
  0%,8%  { opacity: 0; }
  16%    { opacity: 1; }
  100%   { opacity: 1; }
}
@keyframes s1F2 {
  0%,25% { opacity: 0; }
  33%    { opacity: 1; }
  100%   { opacity: 1; }
}
@keyframes s1Btn {
  0%,40%  { opacity: 0.4; }
  48%     { opacity: 1;   transform: scale(0.94); }
  54%     { opacity: 1;   transform: scale(1);    }
  100%    { opacity: 1; }
}

/* ── Step 2: Categories ── */
.tm-anim--s2 .tm-a-trow:nth-child(1) { animation: s2R1 8s linear forwards; }
.tm-anim--s2 .tm-a-trow:nth-child(2) { animation: s2R2 8s linear forwards; }
.tm-anim--s2 .tm-a-trow:nth-child(3) { animation: s2R3 8s linear forwards; }
.tm-anim--s2 .tm-a-trow:nth-child(4) { animation: s2R4 8s linear forwards; }
.tm-anim--s2 .tm-a-btn               { animation: s2Btn 8s linear forwards; }
.tm-anim--s2 .tm-a-toast             { animation: tmToast 8s linear forwards; }

@keyframes s2R1 {
  0%,5%  { opacity: 0; transform: translateX(-5px); }
  14%    { opacity: 1; transform: translateX(0);    }
  100%   { opacity: 1; }
}
@keyframes s2R2 {
  0%,18% { opacity: 0; transform: translateX(-5px); }
  27%    { opacity: 1; transform: translateX(0);    }
  100%   { opacity: 1; }
}
@keyframes s2R3 {
  0%,30% { opacity: 0; transform: translateX(-5px); }
  39%    { opacity: 1; transform: translateX(0);    }
  100%   { opacity: 1; }
}
@keyframes s2R4 {
  0%,43% { opacity: 0; transform: translateX(-5px); }
  52%    { opacity: 1; transform: translateX(0);    }
  100%   { opacity: 1; }
}
@keyframes s2Btn {
  0%,55% { opacity: 0; }
  63%    { opacity: 1; }
  100%   { opacity: 1; }
}

/* ── Step 3: Add Product ── */
.tm-anim--s3 .tm-a-field:nth-child(1) { animation: s3F1   8s linear forwards; }
.tm-anim--s3 .tm-a-frow               { animation: s3Frow 8s linear forwards; }
.tm-anim--s3 .tm-a-btn                { animation: s3Btn  8s linear forwards; }
.tm-anim--s3 .tm-a-trow               { animation: s3TRow 8s linear forwards; }
.tm-anim--s3 .tm-a-toast              { animation: tmToast 8s linear forwards; }

@keyframes s3F1 {
  0%,5%  { opacity: 0; }
  13%    { opacity: 1; }
  100%   { opacity: 1; }
}
@keyframes s3Frow {
  0%,18% { opacity: 0; }
  26%    { opacity: 1; }
  100%   { opacity: 1; }
}
@keyframes s3Btn {
  0%,33%  { opacity: 0.4; }
  41%     { opacity: 1;   transform: scale(0.94); }
  47%     { opacity: 1;   transform: scale(1);    }
  100%    { opacity: 1; }
}
@keyframes s3TRow {
  0%,50%  { opacity: 0; transform: translateY(5px); }
  62%     { opacity: 1; transform: translateY(0);   }
  100%    { opacity: 1; }
}

/* ── Step 4: Upload Media ── */
.tm-anim--s4 .tm-a-prog-fill             { animation: s4Prog 8s linear forwards; }
.tm-anim--s4 .tm-a-grid-item:nth-child(1){ animation: s4Gi1 8s linear forwards; }
.tm-anim--s4 .tm-a-grid-item:nth-child(2){ animation: s4Gi2 8s linear forwards; }
.tm-anim--s4 .tm-a-grid-item:nth-child(3){ animation: s4Gi3 8s linear forwards; }
.tm-anim--s4 .tm-a-grid-item:nth-child(4){ animation: s4Gi4 8s linear forwards; }
.tm-anim--s4 .tm-a-grid-item:nth-child(5){ animation: s4Gi5 8s linear forwards; }
.tm-anim--s4 .tm-a-grid-item:nth-child(6){ animation: s4Gi6 8s linear forwards; }
.tm-anim--s4 .tm-a-toast                 { animation: tmToast 8s linear forwards; }

@keyframes s4Prog {
  0%,10% { width: 0%; }
  55%    { width: 100%; }
  100%   { width: 100%; }
}
@keyframes s4Gi1 {
  0%,46% { opacity: 0; transform: scale(0.7); }
  55%    { opacity: 1; transform: scale(1);   }
  100%   { opacity: 1; }
}
@keyframes s4Gi2 {
  0%,49% { opacity: 0; transform: scale(0.7); }
  58%    { opacity: 1; transform: scale(1);   }
  100%   { opacity: 1; }
}
@keyframes s4Gi3 {
  0%,52% { opacity: 0; transform: scale(0.7); }
  61%    { opacity: 1; transform: scale(1);   }
  100%   { opacity: 1; }
}
@keyframes s4Gi4 {
  0%,55% { opacity: 0; transform: scale(0.7); }
  64%    { opacity: 1; transform: scale(1);   }
  100%   { opacity: 1; }
}
@keyframes s4Gi5 {
  0%,58% { opacity: 0; transform: scale(0.7); }
  67%    { opacity: 1; transform: scale(1);   }
  100%   { opacity: 1; }
}
@keyframes s4Gi6 {
  0%,61% { opacity: 0; transform: scale(0.7); }
  70%    { opacity: 1; transform: scale(1);   }
  100%   { opacity: 1; }
}

/* ── Step 5: Publish ── */
.tm-anim--s5 .tm-a-toggle      { animation: s5Tog   8s linear forwards; }
.tm-anim--s5 .tm-a-toggle-knob { animation: s5Knob  8s linear forwards; }
.tm-anim--s5 .tm-a-pills       { animation: s5Pills 8s linear forwards; }
.tm-anim--s5 .tm-a-live        { animation: s5Live  8s linear forwards; }
.tm-anim--s5 .tm-a-toast       { animation: tmToast 8s linear forwards; }

@keyframes s5Tog {
  0%,25%  { background: #E2E8F0; }
  40%     { background: #4318FF; }
  100%    { background: #4318FF; }
}
@keyframes s5Knob {
  0%,25%  { left: 2px;  }
  40%     { left: 15px; }
  100%    { left: 15px; }
}
@keyframes s5Pills {
  0%,38%  { opacity: 0; }
  50%     { opacity: 1; }
  100%    { opacity: 1; }
}
@keyframes s5Live {
  0%,45%  { opacity: 0; transform: scale(0.8); }
  58%     { opacity: 1; transform: scale(1);   }
  100%    { opacity: 1; }
}

/* ── Step 6: QR ── */
.tm-anim--s6 .tm-a-qr-frame  { animation: s6QrIn   8s linear forwards; }
.tm-anim--s6 .tm-a-qr-beam   { animation: s6Beam   8s linear forwards; }
.tm-anim--s6 .tm-a-qr-label  { animation: s6Detail 8s linear forwards; }
.tm-anim--s6 .tm-a-share-row { animation: s6Detail 8s linear forwards; }
.tm-anim--s6 .tm-a-toast     { animation: tmToast  8s linear forwards; }

@keyframes s6QrIn {
  0%,5%  { opacity: 0; transform: scale(0.5); }
  18%    { opacity: 1; transform: scale(1);   }
  100%   { opacity: 1; }
}
@keyframes s6Beam {
  0%,12%  { top: 0; }
  78%     { top: calc(100% - 2px); }
  92%     { top: calc(100% - 2px); }
  100%    { top: 0; }
}
@keyframes s6Detail {
  0%,20%  { opacity: 0; }
  32%     { opacity: 1; }
  100%    { opacity: 1; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .tm-anim * { animation: none !important; }
  .tm-anim--s1 .tm-a-card,
  .tm-a-grid-item,
  .tm-a-qr-frame,
  .tm-a-live { opacity: 1; }
}
