/* OnlyBots Demo - Dark Mode Professional Styles */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a25;
    --bg-elevated: #222230;
    --text-primary: #ffffff;
    --text-secondary: #8888a0;
    --accent-cyan: #00d9ff;
    --accent-green: #00ff94;
    --accent-gold: #ffcc00;
    --accent-red: #ff4757;
    --gradient-main: linear-gradient(135deg, #00d9ff 0%, #00ff94 100%);
    --gradient-gold: linear-gradient(135deg, #ffcc00 0%, #ff9500 100%);
    --gradient-danger: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
    --shadow-glow: 0 0 40px rgba(0, 217, 255, 0.3);
    --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.5);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow: hidden;
}

/* Scanlines Effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.1) 2px,
            rgba(0, 0, 0, 0.1) 4px);
    pointer-events: none;
    z-index: 9999;
    opacity: 0.3;
}

/* App Container */
.app-container {
    width: 100%;
    height: 100vh;
    position: relative;
}

/* Screens */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.screen.active {
    display: flex;
    opacity: 1;
}

/* Detection Screen */
#screen-detection {
    background: var(--bg-primary);
}

.detection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(10, 10, 15, 0.9);
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 255, 148, 0.1);
    border: 1px solid var(--accent-green);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--accent-green);
    font-weight: 600;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

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

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.detection-count {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Passthrough View */
.passthrough-view {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 217, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* Detected People */
.detected-people {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    z-index: 10;
}

.person-card {
    position: relative;
    width: 200px;
    padding: 2rem;
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.person-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-glow);
}

.person-card:hover .bounding-box {
    opacity: 1;
}

.person-card:hover .select-hint {
    opacity: 1;
}

.person-avatar {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.bounding-box {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid var(--accent-cyan);
    border-radius: 20px;
    opacity: 0;
    transition: var(--transition);
    animation: boundingPulse 2s infinite;
}

@keyframes boundingPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 217, 255, 0.4);
    }

    50% {
        box-shadow: 0 0 20px 5px rgba(0, 217, 255, 0.2);
    }
}

.person-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.person-name {
    font-size: 1.2rem;
    font-weight: 600;
}

.person-status {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.select-hint {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-cyan);
    color: var(--bg-primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0;
    transition: var(--transition);
    white-space: nowrap;
}

.detection-footer {
    padding: 1.5rem;
    text-align: center;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

/* Camera Passthrough Screen */
#screen-camera {
    background: var(--bg-primary);
}

.camera-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

#webcam {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
    /* Mirror for selfie view */
}

#detectionCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transform: scaleX(-1);
    /* Mirror to match video */
}

.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: opacity 0.5s ease;
}

.camera-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-camera {
    text-align: center;
}

.loading-camera p {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.camera-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 2rem;
}

.camera-footer p {
    margin: 0;
}

.camera-footer .btn {
    flex: none;
}

.camera-footer .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Bounding Box Styles for Canvas */
.detection-box-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

/* Camera Error State */
.camera-error {
    text-align: center;
    padding: 2rem;
}

.camera-error .error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.camera-error h3 {
    color: var(--accent-red);
    margin-bottom: 0.5rem;
}

.camera-error p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Person Picker Screen */
#screen-person-picker {
    background: var(--bg-primary);
}

.picker-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    overflow-y: auto;
}

.picker-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.picker-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-align: center;
}

.person-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 800px;
}

.person-picker-card {
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: 20px;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.person-picker-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-glow);
}

.person-picker-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-main);
    opacity: 0;
    transition: var(--transition);
}

.person-picker-card:hover::before {
    opacity: 1;
}

.person-face-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.person-face-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-picker-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.person-picker-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.person-picker-badge {
    display: inline-block;
    background: rgba(0, 217, 255, 0.2);
    color: var(--accent-cyan);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Subscribe Modal Screen */
#screen-subscribe {
    justify-content: center;
    align-items: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.subscribe-modal {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 30px;
    padding: 3rem;
    max-width: 450px;
    text-align: center;
    box-shadow: var(--shadow-card);
    animation: modalSlideIn 0.5s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.modal-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
}

.selected-person-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: var(--bg-elevated);
    padding: 1rem 2rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.preview-avatar {
    font-size: 2.5rem;
}

.preview-name {
    font-size: 1.3rem;
    font-weight: 600;
}

.subscribe-question {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.subscribe-question .highlight {
    color: var(--accent-cyan);
    font-weight: 600;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.disclaimer {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    flex: 1;
    padding: 1rem 2rem;
    border: none;
    border-radius: 15px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-yes {
    background: var(--gradient-main);
    color: var(--bg-primary);
}

.btn-yes:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.4);
}

.btn-no {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.btn-no:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-red);
    color: var(--accent-red);
}

/* Pricing Screen */
#screen-pricing {
    justify-content: center;
    align-items: center;
    background: var(--bg-primary);
}

.pricing-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 30px;
    padding: 3rem;
    max-width: 400px;
    text-align: center;
    box-shadow: var(--shadow-card);
    animation: modalSlideIn 0.5s ease;
}

.pricing-header {
    margin-bottom: 2rem;
}

.pricing-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.pricing-header h2 {
    font-size: 1.5rem;
}

.price-display {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
}

.currency {
    font-size: 2rem;
    vertical-align: top;
}

.price-amount {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
}

.price-period {
    font-size: 1.2rem;
    opacity: 0.8;
}

.price-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.price-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

.btn-pay {
    width: 100%;
    background: var(--gradient-main);
    color: var(--bg-primary);
    margin-bottom: 1rem;
}

.btn-pay:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.4);
}

.btn-cancel {
    width: 100%;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

/* Payment Screen */
#screen-payment {
    justify-content: center;
    align-items: center;
    background: var(--bg-primary);
}

.payment-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 30px;
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow-card);
    animation: modalSlideIn 0.5s ease;
}

.payment-header {
    text-align: center;
    margin-bottom: 2rem;
}

.payment-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.payment-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.payment-price {
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 1.2rem;
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

.form-group input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

.card-icons {
    position: absolute;
    right: 1rem;
    top: 2.5rem;
    font-size: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-row .form-group:last-child {
    flex: 0 0 100px;
    max-width: 100px;
}

.btn-submit {
    width: 100%;
    background: var(--gradient-main);
    color: var(--bg-primary);
    padding: 1.2rem;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.4);
}

.btn-submit .btn-loading {
    display: none;
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .btn-loading {
    display: inline;
}

.security-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 1.5rem;
}

/* Processing Screen */
#screen-processing {
    justify-content: center;
    align-items: center;
    background: var(--bg-primary);
}

.processing-content {
    text-align: center;
}

.spinner {
    width: 80px;
    height: 80px;
    border: 4px solid var(--border-subtle);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    margin: 0 auto 2rem;
    animation: spin 1s linear infinite;
}

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

.processing-content h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.processing-content p {
    color: var(--text-secondary);
}

/* Repricing Screen */
#screen-repricing {
    justify-content: center;
    align-items: center;
    background: var(--bg-primary);
}

.repricing-panel {
    background: var(--bg-card);
    border: 2px solid var(--accent-red);
    border-radius: 30px;
    padding: 3rem;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 0 60px rgba(255, 71, 87, 0.3);
    animation: shake 0.5s ease, modalSlideIn 0.5s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-10px);
    }

    40%,
    80% {
        transform: translateX(10px);
    }
}

.repricing-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: bounce 0.5s ease;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.repricing-title {
    font-size: 2.5rem;
    color: var(--accent-red);
    margin-bottom: 0.5rem;
}

.repricing-message {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.new-price-display {
    margin-bottom: 1.5rem;
}

.new-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.new-amount {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-danger);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.loop-counter {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn-repay {
    width: 100%;
    background: var(--gradient-danger);
    color: white;
    margin-bottom: 1rem;
}

.btn-repay:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 71, 87, 0.4);
}

.btn-rage-quit {
    width: 100%;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

/* Success Screen */
#screen-success {
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, var(--bg-primary) 0%, #0d1a0d 100%);
    overflow: hidden;
}

.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -20px;
    animation: confettiFall 4s linear forwards;
}

@keyframes confettiFall {
    to {
        top: 110%;
        transform: rotate(720deg);
    }
}

.success-content {
    text-align: center;
    z-index: 10;
    padding: 2rem;
}

.robot-stage {
    margin-bottom: 2rem;
}

/* Dancing Robot CSS */
.dancing-robot {
    display: inline-block;
    animation: robotDance 0.5s ease-in-out infinite alternate;
}

@keyframes robotDance {
    0% {
        transform: translateY(0) rotate(-5deg);
    }

    100% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.robot-head {
    width: 100px;
    height: 80px;
    background: linear-gradient(180deg, #3a3a4a 0%, #2a2a3a 100%);
    border-radius: 20px;
    margin: 0 auto 10px;
    position: relative;
    border: 3px solid var(--accent-cyan);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
}

.robot-eyes {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 20px;
}

.eye {
    width: 20px;
    height: 20px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: blink 2s infinite;
    box-shadow: 0 0 15px var(--accent-cyan);
}

@keyframes blink {

    0%,
    90%,
    100% {
        transform: scaleY(1);
    }

    95% {
        transform: scaleY(0.1);
    }
}

.robot-mouth {
    width: 40px;
    height: 10px;
    background: var(--accent-green);
    border-radius: 5px;
    margin: 15px auto 0;
    animation: talk 0.3s infinite alternate;
}

@keyframes talk {
    0% {
        height: 5px;
    }

    100% {
        height: 15px;
    }
}

.robot-body {
    width: 120px;
    height: 100px;
    background: linear-gradient(180deg, #3a3a4a 0%, #2a2a3a 100%);
    border-radius: 15px;
    margin: 0 auto;
    position: relative;
    border: 3px solid var(--accent-cyan);
}

.robot-chest {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.heart {
    font-size: 2rem;
    animation: heartbeat 0.5s infinite alternate;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.3);
    }
}

.robot-arm {
    position: absolute;
    width: 20px;
    height: 80px;
    background: linear-gradient(180deg, #3a3a4a 0%, #2a2a3a 100%);
    border-radius: 10px;
    top: 0;
    border: 2px solid var(--accent-cyan);
}

.robot-arm.left {
    left: -30px;
    animation: leftArm 0.5s ease-in-out infinite alternate;
    transform-origin: top center;
}

.robot-arm.right {
    right: -30px;
    animation: rightArm 0.5s ease-in-out infinite alternate;
    transform-origin: top center;
}

@keyframes leftArm {
    0% {
        transform: rotate(-30deg);
    }

    100% {
        transform: rotate(30deg);
    }
}

@keyframes rightArm {
    0% {
        transform: rotate(30deg);
    }

    100% {
        transform: rotate(-30deg);
    }
}

.robot-legs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.robot-leg {
    width: 25px;
    height: 60px;
    background: linear-gradient(180deg, #3a3a4a 0%, #2a2a3a 100%);
    border-radius: 10px;
    border: 2px solid var(--accent-cyan);
}

.robot-leg.left {
    animation: leftLeg 0.25s ease-in-out infinite alternate;
}

.robot-leg.right {
    animation: rightLeg 0.25s ease-in-out infinite alternate;
}

@keyframes leftLeg {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-10px);
    }
}

@keyframes rightLeg {
    0% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

.success-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    animation: glow 1s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.5));
    }

    to {
        filter: drop-shadow(0 0 40px rgba(0, 255, 148, 0.5));
    }
}

.success-message {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.success-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
}

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

.btn-restart {
    background: var(--gradient-main);
    color: var(--bg-primary);
    padding: 1.2rem 3rem;
}

.btn-restart:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 217, 255, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .detected-people {
        flex-direction: column;
        align-items: center;
    }

    .person-card {
        width: 160px;
        padding: 1.5rem;
    }

    .person-avatar {
        font-size: 3rem;
    }

    .pricing-panel,
    .payment-panel,
    .subscribe-modal,
    .repricing-panel {
        margin: 1rem;
        padding: 2rem;
    }

    .price-amount {
        font-size: 3.5rem;
    }

    .success-stats {
        gap: 2rem;
    }

    .robot-head {
        width: 80px;
        height: 60px;
    }

    .robot-body {
        width: 100px;
        height: 80px;
    }
}