:root {
    --primary-color: #000000;
    --accent-color: #96bf48;
    --bg-color: #f6f6f7;
    --card-bg: #ffffff;
    --text-color: #202223;
    --text-subtle: #6d7175;
    --border-color: #e1e3e5;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --radius: 8px;
    --transition: all 0.2s ease;
}

/* Liveness Modal */
.liveness-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.liveness-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    width: 90%;
    max-width: 500px;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%;
    /* 4:3 Aspect Ratio */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin: 15px 0;
}

#liveness-video,
#liveness-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#liveness-overlay {
    z-index: 2;
}

.status-indicator {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.step-dot {
    width: 12px;
    height: 12px;
    background: #e1e3e5;
    border-radius: 50%;
    transition: background 0.3s;
}

.step-dot.active {
    background: var(--accent-color);
    box-shadow: 0 0 5px var(--accent-color);
}

.guide-circle {
    /* Optional visual guide handled by canvas drawing, but here for CSS fallback */
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Utilities */
.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.hidden {
    display: none !important;
}

.btn-block {
    width: 100%;
}

/* Header */
.main-header {
    background: white;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
}

.logo svg {
    display: block;
}

.lang-selector {
    background: white;
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
}

.lang-selector .flag {
    font-size: 1rem;
}

.lang-selector i {
    font-size: 0.7rem;
    color: var(--text-subtle);
}

/* Main Nav (Tabs) */
.main-nav {
    background: white;
    border-bottom: 1px solid var(--border-color);
}

.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
}

.main-tab {
    background: none;
    border: none;
    padding: 16px 24px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-subtle);
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.main-tab:hover {
    color: var(--text-color);
}

.main-tab.active {
    color: var(--text-color);
    border-bottom-color: var(--primary-color);
}

/* Panels */
.panel {
    display: none;
    padding-top: 30px;
    padding-bottom: 40px;
}

.panel.active {
    display: block;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.subtitle {
    color: var(--text-subtle);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.field-label {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.field-hint {
    color: var(--text-subtle);
    font-size: 0.8rem;
    margin-top: 8px;
    text-align: center;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.875rem;
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    background: white;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #888;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

input::placeholder,
textarea::placeholder {
    color: #aaa;
}

/* Buttons */
.btn {
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #222;
}

.btn-secondary {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: #f9f9f9;
}

.btn-success {
    background: #2e7d32;
    color: white;
}

.btn-sm {
    padding: 10px 16px;
    font-size: 0.85rem;
}

/* Security Note */
.security-note {
    color: var(--text-subtle);
    font-size: 0.8rem;
    text-align: center;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.security-note i {
    font-size: 0.75rem;
}

/* FAQ Section */
.faq-card {
    padding: 40px;
}

.faq-tabs {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.faq-tab {
    background: white;
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
    color: var(--text-color);
}

.faq-tab:hover {
    background: #f9f9f9;
}

.faq-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.faq-group {
    display: none;
}

.faq-group.active {
    display: block;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary .chevron {
    transition: transform 0.2s;
    color: var(--text-subtle);
    font-size: 0.8rem;
}

.faq-item[open] summary .chevron {
    transform: rotate(180deg);
}

.faq-content {
    padding-bottom: 18px;
    color: var(--text-subtle);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Form Row */
.form-row {
    display: flex;
    gap: 16px;
}

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

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Upload Section */
.upload-section {
    background: #f9fafb;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    padding: 24px;
    margin: 24px 0;
    text-align: center;
}

.upload-section h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.small-text {
    font-size: 0.85rem;
    color: var(--text-subtle);
    margin-bottom: 20px;
}

.file-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

/* Capture Groups */
.capture-group {
    background: white;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.capture-preview {
    width: 100%;
    height: 120px;
    background: #f4f6f8;
    border-radius: 6px;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: #bbb;
    font-size: 2rem;
}

.capture-preview img,
.capture-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hidden-input {
    display: none;
}

/* Messages */
.message {
    padding: 14px 18px;
    border-radius: 6px;
    margin-top: 20px;
    font-size: 0.9rem;
}

.message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.message.warning {
    background: #fff8e1;
    color: #f57c00;
    border: 1px solid #ffe082;
}

.message.info {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

/* Track Results */
.track-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.track-result-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.track-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

.track-code {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
}

.track-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3e0;
    color: #e65100;
}

.status-approved,
.status-completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-rejected {
    background: #ffebee;
    color: #c62828;
}

.status-processing {
    background: #e3f2fd;
    color: #1565c0;
}

.status-default {
    background: #f5f5f5;
    color: #616161;
}

.track-result-body {
    padding: 12px 16px;
}

.track-result-body p {
    margin: 4px 0;
    font-size: 0.85rem;
    color: #555;
}

.track-result-body strong {
    color: #333;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    padding: 24px;
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-subtle);
}

.close-modal:hover {
    color: var(--text-color);
}

/* Camera */
.camera-content {
    max-width: 400px;
    text-align: center;
}

.camera-content h2 {
    margin-bottom: 8px;
}

.camera-viewport {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 16px auto;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.camera-viewport video,
.camera-viewport canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Mirroring is handled dynamically in JS */
}

.camera-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.capture-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    padding: 0;
    font-size: 1.25rem;
}

.recording-timer {
    text-align: center;
    color: #e53935;
    font-weight: 700;
    margin-top: 10px;
    font-size: 1.1rem;
}

/* Animation */
.fade-in {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

/* ==========================================
   Liveness Detection Styles
   ========================================== */

/* Liveness Overlay - Sits on top of video */
.liveness-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.liveness-overlay .face-oval {
    width: 100%;
    height: 100%;
}

.liveness-overlay .oval-border {
    transition: stroke 0.3s ease, stroke-width 0.3s ease;
}

.liveness-overlay.success .oval-border {
    stroke: #4caf50;
    stroke-width: 4;
    animation: pulseGreen 0.5s ease-out;
}

@keyframes pulseGreen {
    0% {
        stroke-width: 4;
    }

    50% {
        stroke-width: 8;
    }

    100% {
        stroke-width: 4;
    }
}

/* Direction Arrows */
.direction-arrow {
    position: absolute;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
}

.arrow-up {
    top: 10%;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
}

.arrow-down {
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
}

.arrow-left {
    left: 10%;
    top: 50%;
    transform: translateY(-50%) scale(0.8);
}

.arrow-right {
    right: 10%;
    top: 50%;
    transform: translateY(-50%) scale(0.8);
}

/* Active Direction States */
.liveness-overlay.direction-up .arrow-up,
.liveness-overlay.direction-down .arrow-down,
.liveness-overlay.direction-left .arrow-left,
.liveness-overlay.direction-right .arrow-right {
    opacity: 1;
    color: #fff;
    animation: arrowPulse 1s infinite ease-in-out;
}

.liveness-overlay.direction-up .arrow-up {
    transform: translateX(-50%) scale(1);
}

.liveness-overlay.direction-down .arrow-down {
    transform: translateX(-50%) scale(1);
}

.liveness-overlay.direction-left .arrow-left {
    transform: translateY(-50%) scale(1);
}

.liveness-overlay.direction-right .arrow-right {
    transform: translateY(-50%) scale(1);
}

@keyframes arrowPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Liveness Instruction Box */
.liveness-instruction {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 14px 20px;
    border-radius: 12px;
    margin: 12px auto;
    max-width: 320px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.liveness-step-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.liveness-icon {
    font-size: 1.3rem;
}

.liveness-text {
    flex: 1;
    text-align: center;
}

.btn-confirm-step {
    background: #4caf50;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    pointer-events: auto;
}

.btn-confirm-step:hover {
    background: #43a047;
    transform: scale(1.05);
}

.liveness-instruction.success-flash {
    animation: successFlash 0.3s ease;
}

@keyframes successFlash {

    0%,
    100% {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    }

    50% {
        background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
    }
}

/* Progress Bar */
.liveness-progress-bar {
    width: 100%;
    max-width: 320px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto 16px;
}

.liveness-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* Recording state */
.btn.recording {
    background: #e53935 !important;
    animation: recordingPulse 1s infinite;
}

@keyframes recordingPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(229, 57, 53, 0);
    }
}

/* Recording Dot Indicator */
.recording-dot {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(229, 57, 53, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    animation: recBlink 1s infinite;
    z-index: 20;
    pointer-events: none;
}

@keyframes recBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Capture Checkmark */
.capture-checkmark {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: #4caf50;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Make capture preview relative for checkmark positioning */
.capture-preview {
    position: relative;
}

/* ==========================================
   Orders List Styles
   ========================================== */

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.order-card {
    background: #f9fafb;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.2s ease;
    cursor: default;
}

.order-card:hover {
    border-color: #bbb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-number {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-color);
}

.order-date {
    font-size: 0.85rem;
    color: var(--text-subtle);
}

.order-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-paid {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-pending {
    background: #fff3e0;
    color: #e65100;
}

.status-refunded {
    background: #e3f2fd;
    color: #1565c0;
}

.status-default {
    background: #f5f5f5;
    color: #616161;
}

.order-card-body {
    margin-bottom: 16px;
}

.order-items-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-subtle);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.order-items-preview i {
    color: #888;
}

.order-total {
    font-size: 0.95rem;
    color: var(--text-color);
}

.order-card-footer {
    border-top: 1px solid #eee;
    padding-top: 16px;
    text-align: right;
}

.select-order-btn {
    min-width: 180px;
}

/* Selected Order Display */
.selected-order-display {
    margin-bottom: 24px;
}

.selected-order-info {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 1px solid #a5d6a7;
    border-radius: 10px;
    padding: 16px 20px;
}

.selected-order-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2e7d32;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.selected-order-badge i {
    font-size: 1.1rem;
}

.selected-order-details {
    color: #1b5e20;
    font-size: 0.95rem;
}

.selected-order-details small {
    color: #388e3c;
}

/* Orders Message (empty state / error) */
.orders-message {
    text-align: center;
    padding: 40px 20px;
    border-radius: 8px;
}

.orders-message i {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.orders-message.warning {
    background: #fff8e1;
    color: #f57c00;
}

.orders-message.warning i {
    color: #ffa726;
}

.orders-message.error {
    background: #ffebee;
    color: #c62828;
}

.orders-message.error i {
    color: #ef5350;
}

/* Message warning style */
.message.warning {
    background: #fff8e1;
    color: #f57c00;
    border: 1px solid #ffe082;
}

/* Loading spinner */
.fa-spinner {
    animation: spin 1s linear infinite;
}

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

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

/* Liveness Success Flash Animation */
.liveness-instruction.success-flash {
    animation: successFlash 0.5s ease;
    background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%) !important;
}

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

    50% {
        transform: scale(1.05);
    }

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

/* Step indicator dots */
.liveness-steps-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.3s ease;
}

.step-dot.active {
    background: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.step-dot.completed {
    background: #4caf50;
}

/* Confirm Step Button */
.btn-confirm-step {
    background: linear-gradient(135deg, #4caf50, #43a047);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-confirm-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.btn-confirm-step:active {
    transform: translateY(0);
}

.liveness-step-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.liveness-instruction {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Recording button text */
.btn.recording {
    background: #e53935 !important;
}

/* ==========================================
   Identity Verification Popup
   ========================================== */

.identity-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.identity-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.identity-popup-content {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    animation: popupSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
    color: #000000;
}

.identity-popup-content.identity-popup-large {
    max-width: 750px;
    padding: 40px;
}

.identity-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f4f4f4;
    color: #000;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.identity-popup-close:hover {
    background: #e5e5e5;
    transform: rotate(90deg);
}

@keyframes popupSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

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

.identity-popup-header {
    margin-bottom: 30px;
}

.identity-popup-icon {
    width: 70px;
    height: 70px;
    background: #000000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 24px;
    animation: iconPulseWhite 2s ease-in-out infinite;
}

.identity-popup-icon i {
    font-size: 1.8rem;
    color: #ffffff;
}

@keyframes iconPulseWhite {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.1);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(0, 0, 0, 0);
    }
}

.identity-popup-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 8px;
}

.identity-popup-header p {
    font-size: 1rem;
    color: #666666;
    margin: 0 auto;
    max-width: 80%;
}

.identity-popup-body {
    background: #f9fafb;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.identity-popup-body .file-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.identity-popup-body .capture-group {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e1e3e5;
    transition: all 0.2s ease;
}

.identity-popup-body .capture-group:hover {
    border-color: #000000;
}

.identity-popup-body .capture-group label {
    color: #000000;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: block;
}

.identity-popup-body .capture-preview {
    width: 100%;
    height: 120px;
    background: #f4f6f8;
    border-radius: 6px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: #bbb;
    font-size: 2.22rem;
}

.identity-popup-body .capture-group .btn-secondary {
    background: transparent;
    border: 1px solid #e1e3e5;
    color: #000000;
    font-size: 0.85rem;
    padding: 8px 12px;
}

.identity-popup-body .capture-group .btn-secondary:hover {
    background: #f4f4f4;
    border-color: #000000;
}

.identity-popup-body .capture-preview img,
.identity-popup-body .capture-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.identity-popup-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.identity-popup-actions .btn {
    min-width: 180px;
    padding: 16px 30px;
    font-weight: 600;
    border-radius: 8px;
    font-size: 1rem;
}

.identity-popup-actions .btn-secondary {
    background: #ffffff;
    border: 1px solid #e1e3e5;
    color: #000000;
}

.identity-popup-actions .btn-secondary:hover {
    background: #f4f4f4;
}

.identity-popup-actions .btn-primary {
    background: #000000;
    border: none;
    color: #ffffff;
}

.identity-popup-actions .btn-primary:hover {
    background: #333333;
    transform: translateY(-1px);
}

.identity-popup-actions .btn-primary i {
    margin-right: 10px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .identity-popup-content.identity-popup-large {
        max-width: 90%;
        padding: 30px;
    }

    .identity-popup-body .file-inputs {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .identity-popup-content.identity-popup-large {
        max-width: 95%;
        padding: 25px 20px;
    }

    .identity-popup-body {
        padding: 20px;
    }

    .identity-popup-body .file-inputs {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .identity-popup-body .capture-preview {
        height: 140px;
    }

    .identity-popup-actions {
        flex-direction: column;
        gap: 10px;
    }

    .identity-popup-actions .btn {
        width: 100%;
        min-width: unset;
    }
}

@media (max-width: 480px) {
    .identity-popup-content {
        padding: 30px 15px 20px;
    }

    .identity-popup-header h3 {
        font-size: 1.35rem;
    }

    .identity-popup-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .identity-popup-icon i {
        font-size: 1.5rem;
    }
}