.hero-mockup {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    perspective: 800px;
}
.floating-id-card {
    position: absolute;
    width: 200px;
    height: 126px;
    right: -60px;
    top: 50%;
    transform: translate3d(250px, -50%, 0) rotateY(-35deg) rotateX(15deg);
    opacity: 0;
    z-index: 20;
    pointer-events: none;
    transition: none;
    transform-style: preserve-3d;
}

.floating-id-card.fly-in {
    opacity: 1;
    transform: translate3d(0, -50%, 60px) rotateY(-8deg) rotateX(8deg);
    transition: transform 0.9s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.5s ease;
}

.floating-id-card.settle {
    opacity: 1;
    transform: translate3d(-30px, -50%, 30px) rotateY(0deg) rotateX(12deg);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.floating-id-card.scan-active {
    opacity: 1;
    transform: translate3d(-30px, -50%, 30px) rotateY(0deg) rotateX(12deg);
}

.floating-id-card.fly-out {
    opacity: 0;
    transform: translate3d(-250px, -50%, 0) rotateY(25deg) rotateX(-10deg);
    transition: transform 0.7s cubic-bezier(0.55, 0, 1, 0.45), opacity 0.5s ease 0.2s;
}

.fid-front {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #fcfcff 0%, #f5f7fb 40%, #edf2f9 100%);
    border-radius: 10px;
    border: 1px solid #c8d4e0;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.18),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    padding: 10px 12px 6px;
    position: relative;
    overflow: hidden;
}

.fid-flag {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #e30a17;
}

.fid-hologram {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        rgba(255, 0, 0, 0.08),
        rgba(255, 165, 0, 0.1),
        rgba(255, 255, 0, 0.08),
        rgba(0, 128, 0, 0.1),
        rgba(0, 0, 255, 0.08),
        rgba(128, 0, 128, 0.1),
        rgba(255, 0, 0, 0.08)
    );
    border: 0.5px solid rgba(200, 200, 200, 0.4);
    opacity: 0.7;
}

.fid-hologram::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: conic-gradient(
        from 120deg,
        rgba(66, 165, 245, 0.15),
        rgba(233, 30, 99, 0.1),
        rgba(76, 175, 80, 0.12),
        rgba(66, 165, 245, 0.15)
    );
}

.fid-header {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px;
    margin-top: 2px;
}

.fid-emblem {
    flex-shrink: 0;
    opacity: 0.8;
}

.fid-header-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.fid-country {
    font-size: 5.5px;
    font-weight: 800;
    color: #1a2332;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.fid-type {
    font-size: 4px;
    font-weight: 500;
    color: #90a4ae;
    letter-spacing: 0.4px;
}

.fid-body {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.fid-photo {
    width: 34px;
    height: 42px;
    border-radius: 3px;
    flex-shrink: 0;
    overflow: hidden;
    border: 0.5px solid #bcc8d6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.fid-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 1px;
}

.fid-row {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.fid-label {
    font-size: 3.5px;
    font-weight: 600;
    color: #90a4ae;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fid-val {
    height: 4px;
    border-radius: 1px;
    background: linear-gradient(90deg, #c5cfd9, #dce4ed);
    width: 85%;
}

.fid-val.short {
    width: 55%;
}

.fid-chip {
    position: absolute;
    bottom: 18px;
    left: 12px;
    width: 20px;
    height: 15px;
    border-radius: 2px;
    background: linear-gradient(145deg, #ffd54f, #ffb300, #ffa000);
    border: 0.5px solid rgba(255, 160, 0, 0.5);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.fid-chip-lines {
    position: absolute;
    inset: 2px;
    border: 0.5px solid rgba(255, 143, 0, 0.35);
    border-radius: 1px;
}

.fid-chip-lines::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 0.5px;
    background: rgba(255, 143, 0, 0.3);
}

.fid-chip-lines::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 0.5px;
    background: rgba(255, 143, 0, 0.3);
}

.fid-mrz {
    position: absolute;
    bottom: 3px;
    left: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    border-top: 0.5px solid #dce4ed;
    padding-top: 2px;
}

.fid-mrz span {
    font-family: 'Courier New', Courier, monospace;
    font-size: 3.5px;
    color: #90a4ae;
    letter-spacing: 0.5px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
}

.fid-scan-glow {
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    opacity: 0;
    pointer-events: none;
    background: transparent;
    box-shadow: 0 0 0 0 rgba(21, 101, 192, 0);
    transition: opacity 0.3s ease, box-shadow 0.3s ease;
}

.floating-id-card.scan-active .fid-scan-glow {
    opacity: 1;
    box-shadow: 0 0 20px rgba(21, 101, 192, 0.3), 0 0 40px rgba(21, 101, 192, 0.1);
    animation: idScanPulse 1s ease-in-out infinite;
}

@keyframes idScanPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(21, 101, 192, 0.3), 0 0 40px rgba(21, 101, 192, 0.1); }
    50% { box-shadow: 0 0 30px rgba(21, 101, 192, 0.5), 0 0 60px rgba(21, 101, 192, 0.2); }
}

.phone-frame.tilt-back {
    transform: rotateX(6deg) rotateY(-4deg);
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.phone-frame.tilt-reset {
    transform: rotateX(0) rotateY(0);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.phone-frame {
    position: relative;
    background: linear-gradient(145deg, #2c2c2e, #1c1c1e);
    border-radius: 44px;
    padding: 6px;
    aspect-ratio: 9 / 19.5;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.22),
        0 6px 24px rgba(0, 0, 0, 0.12),
        inset 0 0.5px 0 rgba(255, 255, 255, 0.12),
        inset 0 -0.5px 0 rgba(0, 0, 0, 0.4);
    border: 0.5px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 24px;
    background: #1c1c1e;
    border-radius: 14px;
    z-index: 10;
}

.phone-notch::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 22px;
    transform: translateY(-50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #0a2540;
    box-shadow: inset 0 0 2px rgba(30, 80, 170, 0.6);
}

.phone-notch::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #1565C0;
    opacity: 0.5;
}

.phone-screen {
    position: relative;
    background: linear-gradient(170deg, #f8fbff 0%, #ffffff 40%, #f0f7ff 100%);
    border-radius: 38px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.phone-statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 20px 0;
    height: 24px;
    position: relative;
    z-index: 5;
    flex-shrink: 0;
}

.sb-time {
    font-size: 11px;
    font-weight: 600;
    color: #1a2332;
    letter-spacing: 0.3px;
}

.sb-right {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #1a2332;
}

.sb-icon {
    opacity: 0.85;
}

.sb-5g {
    font-size: 9px;
    font-weight: 700;
    color: #1a2332;
    letter-spacing: -0.2px;
    opacity: 0.85;
}

.sb-battery {
    width: 22px;
    height: 10px;
    border: 1.5px solid rgba(26, 35, 50, 0.7);
    border-radius: 3px;
    padding: 1px;
    position: relative;
}

.sb-battery::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5px;
    height: 5px;
    background: rgba(26, 35, 50, 0.5);
    border-radius: 0 1px 1px 0;
}

.sb-battery-fill {
    width: 80%;
    height: 100%;
    background: #2e7d32;
    border-radius: 1px;
}

.mock-scene {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 44px;
    padding: 8px 16px 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.mock-scene.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    position: relative;
    bottom: auto;
    flex: 1;
}

.mock-scene.exit-left {
    opacity: 0;
    transform: translateX(-30px);
}

.scene-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(21, 101, 192, 0.06);
}

.scene-step {
    font-size: 10px;
    font-weight: 600;
    color: #1565C0;
    background: rgba(21, 101, 192, 0.08);
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.scene-title {
    font-size: 13px;
    font-weight: 700;
    color: #1a2332;
}

.face-scan-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 4px 0;
}

.face-oval {
    width: 130px;
    height: 165px;
    border: 2.5px dashed rgba(21, 101, 192, 0.35);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color 0.4s ease, border-style 0.4s ease, box-shadow 0.4s ease;
}

.face-oval.scanning {
    border-color: #1565C0;
    border-style: solid;
    box-shadow: 0 0 0 6px rgba(21, 101, 192, 0.08);
}

.face-oval.matched {
    border-color: #2e7d32;
    border-style: solid;
    box-shadow: 0 0 20px rgba(46, 125, 50, 0.15), 0 0 0 6px rgba(46, 125, 50, 0.08);
}

.face-percent {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    font-weight: 700;
    color: #1565C0;
    opacity: 0;
    transition: opacity 0.3s ease, color 0.3s ease;
    text-shadow: 0 1px 4px rgba(21, 101, 192, 0.15);
    font-variant-numeric: tabular-nums;
}

.face-oval.scanning .face-percent {
    opacity: 1;
}

.face-oval.matched .face-percent {
    color: #2e7d32;
    opacity: 1;
}

.face-silhouette {
    width: 85px;
    height: 102px;
    color: #90caf9;
    transition: color 0.4s ease;
}

.face-oval.scanning .face-silhouette {
    color: #1565C0;
}

.face-oval.matched .face-silhouette {
    color: #2e7d32;
}

.scan-line {
    position: absolute;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #1565C0, transparent);
    opacity: 0;
    top: 0;
    box-shadow: 0 0 12px rgba(21, 101, 192, 0.5);
}

.face-oval.scanning .scan-line {
    opacity: 1;
    animation: scanDown 2s ease-in-out infinite;
}

@keyframes scanDown {
    0% {
        top: 5%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 90%;
        opacity: 0;
    }
}

.scan-corners {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.corner {
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: #1565C0;
    border-style: solid;
    border-width: 0;
    transition: border-color 0.4s ease;
}

.corner.tl {
    top: -2px;
    left: -2px;
    border-top-width: 3px;
    border-left-width: 3px;
    border-radius: 8px 0 0 0;
}

.corner.tr {
    top: -2px;
    right: -2px;
    border-top-width: 3px;
    border-right-width: 3px;
    border-radius: 0 8px 0 0;
}

.corner.bl {
    bottom: -2px;
    left: -2px;
    border-bottom-width: 3px;
    border-left-width: 3px;
    border-radius: 0 0 0 8px;
}

.corner.br {
    bottom: -2px;
    right: -2px;
    border-bottom-width: 3px;
    border-right-width: 3px;
    border-radius: 0 0 8px 0;
}

.face-oval.matched~.scan-corners .corner {
    border-color: #2e7d32;
}

.scene-info {
    margin-top: auto;
    padding-top: 8px;
}

.pose-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
}

.pose-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4f8;
    border: 1.5px solid #dce4ed;
    color: #90a4ae;
    font-size: 8px;
    transition: all 0.4s ease;
}

.pose-dot.active {
    background: rgba(21, 101, 192, 0.1);
    border-color: #1565C0;
    color: #1565C0;
    animation: posePulse 1s ease-in-out infinite;
}

.pose-dot.done {
    background: #2e7d32;
    border-color: #2e7d32;
    color: #fff;
    animation: none;
}

.pose-dot.done i::before {
    content: "\f00c";
}

@keyframes posePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(21, 101, 192, 0.3);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(21, 101, 192, 0);
    }
}

.scan-status {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    font-size: 11px;
    color: #546e7a;
    font-weight: 500;
    transition: color 0.3s ease;
}

.scan-status.success {
    color: #2e7d32;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1565C0;
    animation: pulse 1.5s ease-in-out infinite;
}

.scan-status.success .pulse-dot {
    background: #2e7d32;
    animation: none;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.7);
    }
}

.id-scan-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    gap: 2px;
}

.id-card {
    width: 100%;
    max-width: 230px;
    aspect-ratio: 1.586;
    background: linear-gradient(135deg, #ffffff, #f5f9ff);
    border-radius: 12px;
    border: 1.5px solid #e3edf7;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.id-card-wrapper {
    position: relative;
    width: 100%;
    max-width: 230px;
    aspect-ratio: 1.586;
}

.id-card-wrapper .id-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.id-card-front {
    transform: scaleX(1);
    z-index: 2;
    background: linear-gradient(135deg, #ffffff, #f5f9ff);
}

.id-card-back {
    transform: scaleX(0);
    z-index: 1;
    background: linear-gradient(135deg, #f5f9ff, #ffffff);
}

.id-card-wrapper.show-back .id-card-front {
    transform: scaleX(0);
}

.id-card-wrapper.show-back .id-card-back {
    transform: scaleX(1);
}

.id-card-back-flag {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #e30a17;
    z-index: 1;
}

.id-card-back-content {
    padding: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.id-card-barcode {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 6px;
    padding: 8px;
}

.barcode-lines {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    height: 100%;
}

.barcode-lines span {
    width: 3px;
    background: #2c3e50;
    border-radius: 1px;
}

.barcode-lines span:nth-child(odd) { height: 60%; }
.barcode-lines span:nth-child(even) { height: 100%; }
.barcode-lines span:nth-child(3n) { height: 80%; }
.barcode-lines span:nth-child(5n) { height: 50%; }

.id-card-back-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.id-back-line {
    height: 5px;
    background: linear-gradient(90deg, #d0d8e0, #e8eef5);
    border-radius: 2px;
}

.id-back-line.l1 { width: 100%; }
.id-back-line.l2 { width: 85%; }
.id-back-line.l3 { width: 90%; }

.id-card-serial {
    text-align: center;
    font-size: 5px;
    color: #90a4ae;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 4px;
    background: rgba(21, 101, 192, 0.05);
    border-radius: 4px;
}

.id-card-scan-beam {
    position: absolute;
    top: 0;
    left: -60%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(21, 101, 192, 0.08), rgba(21, 101, 192, 0.12), rgba(21, 101, 192, 0.08), transparent);
    opacity: 0;
    pointer-events: none;
}

.id-card.scanning .id-scan-beam,
.id-card.scanning .id-card-scan-beam {
    opacity: 1;
    animation: beamSweep 2s ease-in-out infinite;
}

@keyframes beamSweep {
    0% { left: -60%; }
    100% { left: 100%; }
}

.id-card-inner {
    display: flex;
    gap: 10px;
    padding: 12px;
    height: 100%;
    align-items: center;
}

.id-photo-placeholder {
    width: 44px;
    height: 54px;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border: 0.5px solid #d0dae8;
}

.id-card-flag {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #e30a17;
    z-index: 1;
}

.id-card-chip {
    position: absolute;
    bottom: 8px;
    left: 10px;
    width: 16px;
    height: 11px;
    border-radius: 2px;
    background: linear-gradient(145deg, #ffd54f, #ffb300);
    border: 0.5px solid rgba(255, 160, 0, 0.4);
}

.id-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
}

.id-line {
    height: 6px;
    border-radius: 4px;
    background: #e8eef5;
    transition: background 0.4s ease;
}

.id-line.revealed {
    background: linear-gradient(90deg, #bbdefb, #90caf9);
}

.id-line.w80 {
    width: 80%;
}

.id-line.w60 {
    width: 60%;
}

.id-line.w70 {
    width: 70%;
}

.id-line.w50 {
    width: 50%;
}

.id-scan-beam {
    position: absolute;
    top: 0;
    left: -60%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(21, 101, 192, 0.08), rgba(21, 101, 192, 0.12), rgba(21, 101, 192, 0.08), transparent);
    opacity: 0;
    pointer-events: none;
}

.id-card.scanning .id-scan-beam {
    opacity: 1;
    animation: beamSweep 2s ease-in-out infinite;
}

@keyframes beamSweep {
    0% {
        left: -60%;
    }

    100% {
        left: 100%;
    }
}

.ocr-results {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(245, 249, 255, 0.6);
    border: 1px solid rgba(21, 101, 192, 0.06);
    border-radius: 8px;
    padding: 6px 10px;
}

.ocr-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    padding: 2px 0;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.ocr-row.visible {
    opacity: 1;
    transform: translateY(0);
}

.ocr-label {
    color: #78909c;
    font-weight: 500;
}

.ocr-value {
    color: #1a2332;
    font-weight: 600;
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 10px;
    min-width: 80px;
    text-align: right;
}

.id-side-label {
    font-size: 9px;
    font-weight: 600;
    color: #1565C0;
    background: rgba(21, 101, 192, 0.08);
    padding: 3px 12px;
    border-radius: 10px;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.id-side-label.flip {
    animation: sideFlip 0.5s ease;
}

@keyframes sideFlip {
    0% { opacity: 1; transform: scaleX(1); }
    50% { opacity: 0; transform: scaleX(0); }
    100% { opacity: 1; transform: scaleX(1); }
}

.id-badge-label {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 8px;
    font-weight: 800;
    color: #b71c1c;
    background: rgba(183, 28, 28, 0.08);
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.verify-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding-top: 4px;
}

.ai-brain-icon {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
}

.ai-brain-icon i {
    font-size: 16px;
    color: #1565C0;
    z-index: 1;
    transition: color 0.4s ease;
}

.ai-brain-icon.done i {
    color: #2e7d32;
}

.ai-brain-ring {
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-top-color: #1565C0;
    border-radius: 50%;
    animation: brainSpin 1s linear infinite;
}

.ai-brain-icon.done .ai-brain-ring {
    border-top-color: #2e7d32;
    animation: none;
    border-color: rgba(46, 125, 50, 0.2);
}

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

.ai-analysis {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 100%;
}

.analysis-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(245, 249, 255, 0.8);
    border: 1px solid #e3edf7;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.4s ease, background 0.4s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.analysis-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.analysis-card.done {
    background: rgba(232, 245, 233, 0.6);
    border-color: rgba(46, 125, 50, 0.2);
}

.ac-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(21, 101, 192, 0.08);
    color: #1565C0;
    font-size: 11px;
    flex-shrink: 0;
    transition: background 0.4s ease, color 0.4s ease;
}

.analysis-card.done .ac-icon {
    background: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
}

.ac-info {
    flex: 1;
    min-width: 0;
}

.ac-label {
    font-size: 10px;
    font-weight: 600;
    color: #37474f;
    display: block;
    margin-bottom: 4px;
    letter-spacing: 0.1px;
}

.ac-bar {
    width: 100%;
    height: 4px;
    background: #e8eef5;
    border-radius: 4px;
    overflow: hidden;
}

.ac-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #1565C0, #42A5F5);
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.analysis-card.done .ac-bar-fill {
    background: linear-gradient(90deg, #2e7d32, #66bb6a);
}

.ac-score {
    font-size: 12px;
    font-weight: 700;
    color: #1565C0;
    flex-shrink: 0;
    min-width: 32px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    opacity: 0;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.analysis-card.done .ac-score {
    opacity: 1;
    color: #2e7d32;
}

.complete-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #1565C0, #1976D2);
    color: #fff;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
    box-shadow: 0 4px 16px rgba(21, 101, 192, 0.25);
    position: relative;
    overflow: hidden;
}

.complete-badge.visible {
    opacity: 1;
    transform: scale(1);
}

.complete-badge.visible::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: badgeShimmer 2s ease-in-out 0.5s infinite;
}

@keyframes badgeShimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

.complete-badge i {
    font-size: 13px;
}

.phone-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 18px 10px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95), transparent);
    flex-shrink: 0;
}

.phone-progress-bar {
    width: 100%;
    height: 2px;
    background: #e8eef5;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.phone-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #1565C0, #42A5F5);
    border-radius: 2px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.phone-progress-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pdot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cfd8dc;
    transition: background 0.4s ease, transform 0.4s ease;
}

.pdot.active {
    background: #1565C0;
    transform: scale(1.3);
}

.phone-home-indicator {
    width: 100px;
    height: 4px;
    background: rgba(26, 35, 50, 0.2);
    border-radius: 2px;
    margin: 6px auto 8px;
}

.mockup-glow {
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    background: radial-gradient(ellipse at 40% 50%, rgba(21, 101, 192, 0.04) 0%, transparent 60%);
    border-radius: 50px;
    z-index: -1;
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero-mockup {
        max-width: 240px;
    }

    .phone-frame {
        border-radius: 36px;
        padding: 5px;
    }

    .phone-notch {
        width: 76px;
        height: 20px;
        top: 10px;
        border-radius: 12px;
    }

    .phone-screen {
        border-radius: 31px;
    }

    .mock-scene {
        padding: 6px 12px 8px;
    }

    .scene-title {
        font-size: 12px;
    }

    .face-oval {
        width: 100px;
        height: 130px;
    }

    .face-silhouette {
        width: 68px;
        height: 82px;
    }

    .id-card {
        max-width: 190px;
    }

    .analysis-card {
        padding: 4px 8px;
        gap: 6px;
    }

    .ac-icon {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }

    .ac-label {
        font-size: 9px;
    }

    .ac-score {
        font-size: 10px;
    }

    .complete-badge {
        font-size: 10px;
        padding: 6px 12px;
    }

    .pose-dot {
        width: 22px;
        height: 22px;
        font-size: 7px;
    }

    .floating-id-card {
        width: 160px;
        height: 101px;
        right: -40px;
    }
}

@media (max-width: 480px) {
    .hero-mockup {
        max-width: 200px;
    }

    .phone-frame {
        border-radius: 30px;
        padding: 4px;
    }

    .phone-screen {
        border-radius: 26px;
    }

    .floating-id-card {
        width: 140px;
        height: 88px;
        right: -30px;
    }

    .mock-scene {
        padding: 4px 10px 6px;
    }

    .face-oval {
        width: 85px;
        height: 130px;
    }

    .face-silhouette {
        width: 65px;
        height: 78px;
    }

    .id-card {
        max-width: 160px;
    }

    .id-card-wrapper {
        max-width: 160px;
    }

    .id-photo-placeholder {
        width: 34px;
        height: 42px;
    }

    .analysis-card {
        padding: 3px 6px;
        gap: 5px;
    }

    .ac-icon {
        width: 20px;
        height: 20px;
        font-size: 9px;
    }

    .pose-dot {
        width: 20px;
        height: 20px;
        font-size: 6px;
    }
}

@media (min-width: 1024px) {
    .hero-mockup {
        max-width: 320px;
    }

    .phone-frame {
        border-radius: 48px;
        padding: 7px;
    }

    .phone-screen {
        border-radius: 42px;
    }

    .mock-scene {
        padding: 8px 18px 12px;
    }

    .scene-title {
        font-size: 14px;
    }

    .face-oval {
        width: 140px;
        height: 178px;
    }

    .analysis-card {
        padding: 7px 12px;
        gap: 10px;
    }

    .ac-icon {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .ac-score {
        font-size: 13px;
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

@media (prefers-reduced-motion: reduce) {

    .mock-scene,
    .scan-line,
    .id-scan-beam,
    .pulse-dot,
    .analysis-card,
    .ac-bar-fill,
    .pose-dot,
    .ocr-row,
    .complete-badge,
    .phone-progress-fill,
    .phone-frame,
    .mockup-glow,
    .ai-brain-ring {
        animation: none !important;
        transition: none !important;
    }
}