* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --secondary: #06B6D4;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Voice Assistant */
.voice-assistant {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 12px;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    width: 70px;
    transition: all 0.4s ease;
}

.voice-assistant.slide-away {
    transform: translateX(120px);
    opacity: 0;
    pointer-events: none;
}

.voice-assistant.expanded {
    width: calc(100% - 40px);
    top: 20px;
    right: 20px;
    left: 20px;
}

.voice-assistant.expanded.slide-away {
    transform: translateX(0) translateY(-120px);
}

.avatar-container {
    display: flex;
    justify-content: center;
    margin-bottom: 0;
    cursor: pointer;
}

.voice-assistant.expanded .avatar-container {
    margin-bottom: 10px;
}

.avatar-circle {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.avatar-face {
    position: relative;
    width: 100%;
    height: 100%;
}

.avatar-eyes {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}

.eye {
    width: 6px;
    height: 6px;
    background: #4F46E5;
    border-radius: 50%;
    animation: blink 3s infinite;
}

@keyframes blink {
    0%, 96%, 100% { transform: scaleY(1); }
    98% { transform: scaleY(0.1); }
}

.avatar-mouth {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 8px;
    border: 2px solid #4F46E5;
    border-top: none;
    border-radius: 0 0 16px 16px;
}

.avatar-circle.speaking .avatar-mouth {
    animation: speak 0.3s infinite;
}

@keyframes speak {
    0%, 100% { height: 12px; }
    50% { height: 16px; }
}

.sound-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    display: none;
}

.avatar-circle.speaking .sound-waves {
    display: block;
}

.wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(79, 70, 229, 0.4);
    border-radius: 50%;
    animation: wave 1.5s ease-out infinite;
}

.wave:nth-child(2) { animation-delay: 0.3s; }
.wave:nth-child(3) { animation-delay: 0.6s; }
.wave:nth-child(4) { animation-delay: 0.9s; }

@keyframes wave {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.assistant-message {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.voice-assistant.expanded .assistant-message {
    display: block;
    opacity: 1;
}

.assistant-message p {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-dark);
    text-align: center;
    margin: 0;
    font-weight: 500;
}

.voice-controls {
    display: none;
    gap: 8px;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.voice-assistant.expanded .voice-controls {
    display: flex;
    opacity: 1;
}

.voice-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.voice-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.3);
}

.voice-btn .icon {
    font-size: 16px;
}

/* Main Container */
.mobile-container {
    padding: 20px;
    padding-bottom: 40px;
}

/* Screens */
.screen {
    display: none;
    animation: slideIn 0.4s ease-out;
}

.screen.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Welcome Screen */
.welcome-content {
    background: white;
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.app-icon {
    margin-bottom: 24px;
}

.icon-circle {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.icon-symbol {
    font-size: 48px;
}

.welcome-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.welcome-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 32px;
}

.feature-list {
    margin-bottom: 32px;
}

/* Check Size Selection */
.check-size-selection {
    margin-bottom: 32px;
}

.size-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    text-align: center;
}

.size-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.size-option {
    cursor: pointer;
    display: block;
}

.size-option input[type="radio"] {
    display: none;
}

.size-card {
    background: var(--bg-light);
    border: 3px solid #E5E7EB;
    border-radius: 16px;
    padding: 20px 12px;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
}

.size-option input[type="radio"]:checked + .size-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.size-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.size-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.size-dimensions {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.size-description {
    font-size: 12px;
    color: var(--text-light);
}

.feature-list {
    margin-bottom: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 500;
}

.feature-icon {
    font-size: 24px;
}

/* Big Button */
.big-button {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    transition: all 0.3s;
}

.big-button:active {
    transform: scale(0.97);
}

.big-button.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 8px 32px rgba(102, 126, 234, 0.6);
    }
}

.button-icon {
    font-size: 24px;
}

/* Camera Screens */
.camera-header {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.step-indicator {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.camera-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.camera-viewport {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 2.18/1; /* Default: Personal check 6/2.75 */
    max-height: 500px; /* Increased from 300px for elderly visibility */
    min-height: 400px; /* Added minimum height */
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.camera-viewport.business-check {
    aspect-ratio: 3.38/1; /* Business check 11/3.25 */
}

video, canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Guide Frame */
.guide-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%; /* Increased to match check size better */
    height: 85%; /* Increased to match check size better */
    pointer-events: none;
}

.corner-guide {
    position: absolute;
    width: 80px; /* Increased from 60px */
    height: 80px; /* Increased from 60px */
}

.corner-guide.tl {
    top: 0;
    left: 0;
    border-top: 8px solid rgba(16, 185, 129, 0.7); /* Semi-transparent */
    border-left: 8px solid rgba(16, 185, 129, 0.7); /* Semi-transparent */
    border-radius: 12px 0 0 0;
}

.corner-guide.tr {
    top: 0;
    right: 0;
    border-top: 8px solid rgba(16, 185, 129, 0.7); /* Semi-transparent */
    border-right: 8px solid rgba(16, 185, 129, 0.7); /* Semi-transparent */
    border-radius: 0 12px 0 0;
}

.corner-guide.bl {
    bottom: 0;
    left: 0;
    border-bottom: 8px solid rgba(16, 185, 129, 0.7); /* Semi-transparent */
    border-left: 8px solid rgba(16, 185, 129, 0.7); /* Semi-transparent */
    border-radius: 0 0 0 12px;
}

.corner-guide.br {
    bottom: 0;
    right: 0;
    border-bottom: 8px solid rgba(16, 185, 129, 0.7); /* Semi-transparent */
    border-right: 8px solid rgba(16, 185, 129, 0.7); /* Semi-transparent */
    border-radius: 0 0 12px 0;
}

.corner-dot {
    position: absolute;
    width: 20px; /* Increased from 16px */
    height: 20px; /* Increased from 16px */
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 20px #10B981;
    animation: cornerPulse 1.5s infinite;
}

.corner-guide.tl .corner-dot { top: -2px; left: -2px; }
.corner-guide.tr .corner-dot { top: -2px; right: -2px; }
.corner-guide.bl .corner-dot { bottom: -2px; left: -2px; }
.corner-guide.br .corner-dot { bottom: -2px; right: -2px; }

@keyframes cornerPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.guide-text {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(16, 185, 129, 0.95);
    color: white;
    padding: 16px 32px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    text-align: center;
    max-width: 90%;
}

/* Detection Overlay */
.detection-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    padding: 24px;
}

.detection-status {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.status-icon {
    font-size: 32px;
    animation: scanning 2s infinite;
}

@keyframes scanning {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.status-text {
    color: white;
    font-size: 20px;
    font-weight: 700;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10B981, #06B6D4);
    border-radius: 6px;
    width: 0%;
    transition: width 0.3s;
}

/* Countdown */
.capture-countdown {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.capture-countdown.active {
    display: block;
}

.countdown-circle {
    position: relative;
    width: 120px;
    height: 120px;
}

.countdown-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.countdown-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 8;
}

.countdown-progress {
    fill: none;
    stroke: #10B981;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1s linear;
}

.countdown-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    font-weight: 700;
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Success Animation */
.success-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    text-align: center;
}

.success-animation.active {
    display: block;
    animation: successPop 0.5s ease-out;
}

@keyframes successPop {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.success-checkmark {
    width: 100px;
    height: 100px;
    background: #10B981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: white;
    margin: 0 auto 12px;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.5);
}

.success-text {
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Bank Detection */
.bank-detection {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bank-detection.active {
    display: flex;
    animation: slideIn 0.4s ease-out;
}

.bank-icon {
    font-size: 32px;
}

.bank-text {
    flex: 1;
}

.bank-label {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.bank-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

/* Instructions Panel */
.instructions-panel {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Manual Capture Controls */
.manual-capture-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding: 0 20px;
}

.manual-capture-btn {
    flex: 1;
    background: linear-gradient(135deg, #10B981, #06B6D4);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 18px 24px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
    transition: all 0.3s;
}

.manual-capture-btn:disabled {
    background: linear-gradient(135deg, #9CA3AF, #6B7280);
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.manual-capture-btn:not(:disabled):active {
    transform: scale(0.97);
}

.retake-btn {
    flex: 1;
    background: linear-gradient(135deg, #F59E0B, #EF4444);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 18px 24px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
    transition: all 0.3s;
}

.retake-btn:active {
    transform: scale(0.97);
}

.btn-icon {
    font-size: 24px;
}

.btn-text {
    font-size: 18px;
}

/* Capture Preview */
.capture-preview {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 200;
    padding: 20px;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.preview-header h3 {
    font-size: 24px;
    color: white;
    font-weight: 700;
}

.preview-close {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.preview-close:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.3);
}

.capture-preview img {
    flex: 1;
    width: 100%;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.preview-actions {
    display: flex;
    gap: 12px;
}

.btn-primary {
    flex: 1;
    background: linear-gradient(135deg, #10B981, #06B6D4);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 18px 24px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
    transition: all 0.3s;
}

.btn-primary:active {
    transform: scale(0.97);
}

.btn-secondary {
    flex: 1;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 18px 24px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:active {
    transform: scale(0.97);
    background: rgba(255, 255, 255, 0.3);
}

/* Instructions Panel */
.instructions-panel {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    background: var(--bg-light);
    opacity: 0.5;
    transition: all 0.3s;
}

.instruction-item.active {
    opacity: 1;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.inst-number {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.instruction-item.active .inst-number {
    animation: pulse 2s infinite;
}

.inst-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Details Screen */
.details-content {
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.form-section {
    margin-bottom: 32px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.label-icon {
    font-size: 24px;
}

.form-input {
    width: 100%;
    padding: 18px;
    border: 3px solid #E5E7EB;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.amount-input-wrapper {
    position: relative;
}

.currency-symbol {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-light);
}

.amount-input {
    padding-left: 48px;
}

.voice-input-btn {
    width: 100%;
    margin-top: 12px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.voice-input-btn:active {
    transform: scale(0.97);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
}

/* Preview Section */
.preview-section {
    margin-bottom: 32px;
}

.preview-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.preview-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 12px;
}

.preview-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 8px;
}

.preview-card img {
    width: 100%;
    border-radius: 8px;
    border: 2px solid #E5E7EB;
}

/* Success Screen */
.success-content {
    background: white;
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.success-animation-big {
    position: relative;
    margin-bottom: 32px;
}

.success-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #10B981, #06B6D4);
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.4);
    animation: successPulse 2s infinite;
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 12px 40px rgba(16, 185, 129, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 50px rgba(16, 185, 129, 0.6);
    }
}

.success-checkmark-big {
    font-size: 72px;
    color: white;
}

.success-confetti {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary);
    animation: confettiFall 3s ease-out infinite;
}

.confetti:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    background: #F59E0B;
}

.confetti:nth-child(2) {
    left: 30%;
    animation-delay: 0.5s;
    background: #10B981;
}

.confetti:nth-child(3) {
    left: 50%;
    animation-delay: 1s;
    background: #06B6D4;
}

.confetti:nth-child(4) {
    left: 70%;
    animation-delay: 1.5s;
    background: #EF4444;
}

.confetti:nth-child(5) {
    left: 90%;
    animation-delay: 2s;
    background: #8B5CF6;
}

@keyframes confettiFall {
    0% {
        top: -20px;
        opacity: 1;
        transform: rotate(0deg);
    }
    100% {
        top: 200px;
        opacity: 0;
        transform: rotate(360deg);
    }
}

.success-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.success-message {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 32px;
}

.success-details {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 32px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #E5E7EB;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 600;
}

.detail-value {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 700;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    flex-direction: column;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    margin-bottom: 24px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    font-size: 20px;
    color: white;
    font-weight: 600;
}

/* Voice Listening Indicator */
.voice-listening {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 40px;
    border-radius: 24px;
    display: none;
    flex-direction: column;
    align-items: center;
    z-index: 1001;
}

.voice-listening.active {
    display: flex;
}

.listening-animation {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.listening-wave {
    width: 6px;
    background: linear-gradient(to top, #10B981, #06B6D4);
    border-radius: 3px;
    animation: listeningPulse 1s ease-in-out infinite;
}

.listening-wave:nth-child(1) {
    height: 30px;
    animation-delay: 0s;
}

.listening-wave:nth-child(2) {
    height: 50px;
    animation-delay: 0.2s;
}

.listening-wave:nth-child(3) {
    height: 30px;
    animation-delay: 0.4s;
}

@keyframes listeningPulse {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(1.5);
    }
}

.listening-text {
    font-size: 18px;
    color: white;
    font-weight: 600;
}

/* Responsive */
@media (min-width: 481px) and (max-width: 768px) {
    .camera-viewport {
        max-height: 400px;
    }
}

@media (min-width: 769px) {
    .camera-viewport {
        max-height: 500px;
    }
}

@media (max-width: 480px) {
    .voice-assistant {
        top: 15px;
        right: 15px;
    }
    
    .voice-assistant.expanded {
        top: 15px;
        right: 15px;
        left: 15px;
        width: calc(100% - 30px);
    }
    
    .mobile-container {
        padding: 15px;
    }
    
    .welcome-title {
        font-size: 28px;
    }
    
    .camera-title {
        font-size: 20px;
    }
    
    .form-input {
        font-size: 16px;
        padding: 16px;
    }
    
    .camera-viewport {
        max-height: 250px;
    }
}