/* ==========================================================================
   KYC LUXURY FINTECH STYLE SYSTEM
   Designed with deep metallic gradients, premium dark glassmorphism, 
   glowing micro-animations, and complete responsive support.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #08080C;
    --card-bg: rgba(18, 18, 26, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --gold-primary: #D4AF37;
    --gold-secondary: #C5A880;
    --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #AA7C11 50%, #F3E5AB 100%);
    --gold-glow: rgba(212, 175, 55, 0.25);

    --success-green: #10B981;
    --success-gradient: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --success-glow: rgba(16, 185, 129, 0.2);

    --error-red: #EF4444;
    --error-gradient: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    --error-glow: rgba(239, 68, 68, 0.2);

    --text-primary: #FFFFFF;
    --text-secondary: #8E8E9F;
    --text-muted: #5C5C6E;

    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 20px;
}

/* Drifting Premium Gradient Background */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(8, 8, 12, 1) 0%, rgba(8, 8, 12, 0.95) 100%);
    z-index: -1;
    animation: driftBackground 20s ease-in-out infinite alternate;
}

@keyframes driftBackground {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(2%, 2%) scale(1.05);
    }
}

/* Overall Wrapper */
.kyc-container {
    width: 100%;
    max-width: 580px;
    position: relative;
    z-index: 10;
}

/* Header & Trust badges */
.kyc-header {
    text-align: center;
    margin-bottom: 30px;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--gold-secondary);
    text-transform: uppercase;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.brand-badge svg {
    color: var(--gold-primary);
    width: 13px;
    height: 13px;
}

.kyc-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #FFFFFF 0%, #D4D4D8 50%, #A1A1AA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.kyc-header p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.user-email-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 6px 16px;
    border-radius: 50px;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
}

.user-email-banner svg {
    color: var(--text-secondary);
}

/* Glassmorphism Main Card */
.kyc-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.kyc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold-gradient);
}

/* Step Progress Bar */
.steps-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 40px;
    padding: 0 10px;
}

.steps-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
    transform: translateY(-50%);
}

.progress-bar-fill {
    position: absolute;
    top: 50%;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gold-gradient);
    z-index: 2;
    transform: translateY(-50%);
    transition: var(--transition-smooth);
}

.step-node {
    padding: 8px 20px;
    height: auto;
    border-radius: 30px;
    background: #12121A;
    border: 2px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    z-index: 3;
    transition: var(--transition-smooth);
}

.step-node.active {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    background: #1A1A26;
    box-shadow: 0 0 15px var(--gold-glow);
}

.step-node.completed {
    border-color: var(--gold-primary);
    background: var(--gold-gradient);
    color: #08080C;
    box-shadow: 0 0 15px var(--gold-glow);
}

/* Sub Steps Indicator System */
.sub-steps-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: -20px;
    margin-bottom: 30px;
    animation: fadeSlideIn 0.5s ease forwards;
}

.sub-step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
    position: relative;
}

.sub-step-dot.active {
    background: var(--gold-primary);
    box-shadow: 0 0 10px var(--gold-primary);
    transform: scale(1.25);
}

.sub-step-dot.completed {
    background: var(--gold-secondary);
}

.sub-step-line {
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.sub-step-line.active {
    background: var(--gold-secondary);
    opacity: 0.5;
}

/* Step Content Wrapper */
.step-content {
    display: none;
    animation: fadeSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.step-content.active {
    display: block;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

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

.step-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.step-content p.step-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Secure Encrypted Info Panel */
.secure-info-panel {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 25px;
}

.secure-icon-box {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
}

.secure-icon-box svg {
    width: 20px;
    height: 20px;
}

.secure-info-text h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.secure-info-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Form Groups & Inputs */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper svg {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 16px 14px 48px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.form-control[readonly] {
    background: rgba(255, 255, 255, 0.01);
    color: var(--text-secondary);
    border-style: dashed;
    cursor: not-allowed;
}

/* Beautiful Drag and Drop Upload Card */
.upload-dropzone {
    border: 2px dashed var(--border-color);
    background: rgba(255, 255, 255, 0.01);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
    border-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.02);
}

.upload-icon-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.upload-dropzone:hover .upload-icon-container {
    color: var(--gold-primary);
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.05);
    transform: translateY(-3px);
}

.upload-icon-container svg {
    width: 24px;
    height: 24px;
}

.upload-dropzone h4 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.upload-dropzone p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.upload-dropzone input[type="file"] {
    display: none;
}

/* Preview of Uploaded ID Card */
.preview-container {
    display: none;
    margin-top: 15px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #000;
    max-height: 250px;
}

.preview-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.remove-preview-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: var(--transition-smooth);
}

.remove-preview-btn:hover {
    background: var(--error-red);
    border-color: var(--error-red);
    transform: scale(1.1);
}

/* Live Biometric Camera Stream UI */
.camera-box-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: #000;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

.camera-stream {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
    /* Mirror view for natural interaction */
}

/* Face Scan Guide Overlay */
.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

/* Elegant circular mask in center of camera */
.face-ellipse-guide {
    width: 250px;
    height: 250px;
    max-width: 68vw;
    max-height: 68vw;
    border: none; /* Completely removed blocky CSS dashed borders! */
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 0 9999px rgba(8, 8, 12, 0.7);
    /* Elegant darkened surrounding */
    transition: var(--transition-smooth);
}

/* Rotating vector arcs with rounded caps */
.rotating-arcs-svg {
    position: absolute;
    top: -6px;
    left: -6px;
    width: calc(100% + 12px);
    height: calc(100% + 12px);
    pointer-events: none;
    z-index: 6;
}

.rotating-arc-circle {
    transform-origin: center;
    animation: rotateGuide 8s linear infinite;
}

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

/* Scan line laser overlay */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, transparent, var(--gold-primary), transparent);
    opacity: 0.8;
    box-shadow: 0 0 15px var(--gold-primary);
    animation: scannerMotion 2.5s ease-in-out infinite;
    z-index: 6;
}

@keyframes scannerMotion {

    0%,
    100% {
        top: 10%;
    }

    50% {
        top: 90%;
    }
}

/* Corner bracket frames */
.camera-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(212, 175, 55, 0.4);
    z-index: 6;
}

.camera-corner-tl {
    top: 20px;
    left: 20px;
    border-right: 0;
    border-bottom: 0;
}

.camera-corner-tr {
    top: 20px;
    right: 20px;
    border-left: 0;
    border-bottom: 0;
}

.camera-corner-bl {
    bottom: 20px;
    left: 20px;
    border-right: 0;
    border-top: 0;
}

.camera-corner-br {
    bottom: 20px;
    right: 20px;
    border-left: 0;
    border-top: 0;
}

/* Captured Picture Overlay Preview */
.captured-preview-container {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 8;
    background: #000;
}

.captured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
    /* Keep mirror view for standard consistency */
}

/* Camera Status Banner */
.camera-status-banner {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid var(--border-color);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    z-index: 9;
}

.camera-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-green);
    box-shadow: 0 0 8px var(--success-green);
    animation: blink 1.5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/* Premium Buttons & Button Wrappers */
.btn-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    flex: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--gold-gradient);
    color: #08080C;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
    transform: translateY(-2px);
}

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

.btn-primary:disabled {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Compact Capture Button Specifics */
.btn-capture {
    background: linear-gradient(135deg, #FFFFFF 0%, #E4E4E7 100%);
    color: #08080C;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

.btn-capture:hover {
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

/* AI verification Loading screen */
.loading-panel {
    text-align: center;
    padding: 30px 10px;
}

.premium-spinner-box {
    width: 90px;
    height: 90px;
    margin: 0 auto 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-outer {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--gold-primary);
    border-bottom-color: var(--gold-primary);
    animation: rotateClockwise 2s cubic-bezier(0.53, 0.21, 0.29, 0.87) infinite;
}

.spinner-inner {
    position: absolute;
    width: 75%;
    height: 75%;
    border-radius: 50%;
    border: 2px solid transparent;
    border-left-color: var(--gold-secondary);
    border-right-color: var(--gold-secondary);
    animation: rotateCounterClockwise 1.5s cubic-bezier(0.53, 0.21, 0.29, 0.87) infinite;
}

.spinner-logo {
    color: var(--gold-primary);
    animation: pulseLogo 1.5s ease-in-out infinite alternate;
}

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

@keyframes rotateCounterClockwise {
    100% {
        transform: rotate(-360deg);
    }
}

@keyframes pulseLogo {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }

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

.loading-panel h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.loading-panel p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.verifying-progress-wrapper {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-top: 25px;
    overflow: hidden;
}

.verifying-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--gold-gradient);
    border-radius: 10px;
    animation: simulateProgress 8s cubic-bezier(0.1, 0.8, 0.1, 1) forwards;
}

@keyframes simulateProgress {
    0% {
        width: 0%;
    }

    50% {
        width: 75%;
    }

    90% {
        width: 92%;
    }

    100% {
        width: 98%;
    }
}

/* Beautiful Verification Results UI */
.result-panel {
    text-align: center;
    padding: 20px 0;
}

.result-icon-container {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    position: relative;
}

.result-icon-container svg {
    width: 44px;
    height: 44px;
}

/* Verified Success Specifics */
.success-container .result-icon-container {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--success-green);
    box-shadow: 0 0 30px var(--success-glow);
}

.success-container .result-icon-container::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    border-radius: 50%;
    border: 1px solid rgba(16, 185, 129, 0.15);
    animation: successPulse 2.5s infinite;
}

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

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

.success-container h2 {
    font-size: 1.85rem;
    font-weight: 700;
    color: #FFF;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #FFFFFF 0%, #10B981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Failed Verification Specifics */
.failed-container .result-icon-container {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: var(--error-red);
    box-shadow: 0 0 30px var(--error-glow);
}

.failed-container .result-icon-container::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    border-radius: 50%;
    border: 1px solid rgba(239, 68, 68, 0.15);
    animation: successPulse 2.5s infinite;
}

.failed-container h2 {
    font-size: 1.85rem;
    font-weight: 700;
    color: #FFF;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #FFFFFF 0%, #EF4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.result-detail-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 16px;
    margin: 25px 0;
    text-align: left;
}

.result-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.result-row:last-child {
    margin-bottom: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.result-row .label {
    color: var(--text-secondary);
}

.result-row .val {
    font-weight: 600;
    color: var(--text-primary);
}

.score-badge {
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.score-badge.match {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.score-badge.mismatch {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.result-panel p.info-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Footer elements */
.kyc-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.kyc-footer p {
    margin-bottom: 8px;
}

.kyc-footer .trust-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 12px;
}

.kyc-footer .trust-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
}

.kyc-footer .trust-item svg {
    width: 12px;
    height: 12px;
}

/* Error/Success Alert Toasts */
.alert-toast {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #12121A;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    max-width: 400px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.alert-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.alert-toast.error {
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.1);
}

.alert-toast.error .alert-icon {
    color: var(--error-red);
}

.alert-toast.success {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
}

.alert-toast.success .alert-icon {
    color: var(--success-green);
}

.alert-text h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

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


/* ==========================================================================
   LIVENESS INNER-CIRCLE EYE BLINK GUIDE STYLING
   ========================================================================== */
.circle-blink-guide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    /* Completely removed the outer round border! */
    box-shadow: none;
    /* Completely removed outer box-shadow */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.blink-eyes-container {
    display: flex;
    gap: 52px; /* High-definition biological gap distance */
    justify-content: center;
    align-items: center;
    padding: 6px 12px;
    transition: all 0.3s ease;
}

.blink-eye-shape {
    position: relative;
    width: 28px; /* Elegant oval eye shape width */
    height: 16px; /* Elegant oval eye shape height */
    border-radius: 50% / 50%; /* Perfect organic oval eye contours! */
    border: 2px solid var(--gold-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

/* Pupil */
.blink-eye-shape::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--gold-primary);
    border-radius: 50%;
    box-shadow: 0 0 4px var(--gold-primary);
    transition: all 0.3s ease;
}

/* Moving eyelids representing the blink animation */
.eye-lid-upper,
.eye-lid-lower {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--gold-primary);
    transition: all 0.3s ease;
}

.eye-lid-upper {
    top: 0;
    transform: translateY(-100%);
}

.eye-lid-lower {
    bottom: 0;
    transform: translateY(100%);
}

/* Blink loop state */
.circle-blink-guide.blinking .eye-lid-upper {
    animation: animateUpperLid 1.5s infinite;
}

.circle-blink-guide.blinking .eye-lid-lower {
    animation: animateLowerLid 1.5s infinite;
}

@keyframes animateUpperLid {

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

    88%,
    92% {
        transform: translateY(0%);
    }
}

@keyframes animateLowerLid {

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

    88%,
    92% {
        transform: translateY(0%);
    }
}

/* Scanning State: Glowing Gold */
.circle-blink-guide.state-scanning .blink-eye-shape {
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.circle-blink-guide.state-scanning .eye-lid-upper,
.circle-blink-guide.state-scanning .eye-lid-lower,
.circle-blink-guide.state-scanning .blink-eye-shape::before {
    background: var(--gold-primary);
}

/* Active Liveness Challenge State: High-tech Cyan */
.circle-blink-guide.state-liveness .blink-eye-shape {
    border-color: #00F0FF;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}

.circle-blink-guide.state-liveness .eye-lid-upper,
.circle-blink-guide.state-liveness .eye-lid-lower,
.circle-blink-guide.state-liveness .blink-eye-shape::before {
    background: #00F0FF;
}

/* Verified Success State: Secure Green */
.circle-blink-guide.state-verified .blink-eye-shape {
    border-color: #10B981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.circle-blink-guide.state-verified .eye-lid-upper,
.circle-blink-guide.state-verified .eye-lid-lower,
.circle-blink-guide.state-verified .blink-eye-shape::before {
    background: #10B981;
}

.circle-blink-guide.state-verified .blink-eyes-container {
    display: none;
}

.circle-blink-guide.state-verified::after {
    content: '✓';
    font-size: 2.2rem;
    font-weight: bold;
    color: #10B981;
    filter: drop-shadow(0 0 5px #10B981);
}


/* Custom Config modal/controls (Optional view details) */
.developer-credentials-badge {
    position: fixed;
    bottom: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    z-index: 500;
    backdrop-filter: blur(5px);
}

/* Responsive Scaling details */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .kyc-card {
        padding: 24px;
        border-radius: 20px;
    }

    .kyc-header h1 {
        font-size: 1.85rem;
    }

    .btn-group {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
    }

    .alert-toast {
        top: 20px;
        bottom: auto;
        left: 20px;
        right: 20px;
        max-width: none;
        padding: 14px 18px;
        transform: translateY(-120px);
    }
}

/* ==========================================================================
   NEW KYC STEPS: CREDIT CARD, PDF CONSENT, SIGNATURE PAD
   ========================================================================== */

/* PDF Viewer Container styles */
.pdf-viewer-container {
    width: 100%;
    height: 380px;
    background: rgba(8, 8, 12, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pdf-iframe-view {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
}

.pdf-fallback-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding: 30px;
    color: var(--text-secondary);
}

.pdf-fallback-container h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.pdf-fallback-container p {
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 320px;
    margin-bottom: 10px;
}

.pdf-fallback-container code {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--gold-secondary);
    font-family: monospace;
}

/* Luxury Animated Custom Checkboxes */
.consent-checkboxes-block {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 16px;
}

.consent-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.hidden-checkbox {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 0;
    z-index: 2;
}

.custom-checkbox {
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    position: relative;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hidden-checkbox:checked ~ .custom-checkbox {
    background: var(--gold-gradient) !important;
    border-color: var(--gold-primary) !important;
    box-shadow: 0 0 10px var(--gold-glow) !important;
}

.custom-checkbox::after {
    content: "";
    position: absolute;
    display: none;
    width: 5px;
    height: 10px;
    border: solid #08080C;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}

.hidden-checkbox:checked ~ .custom-checkbox::after {
    display: block;
}

.checkbox-label-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.4;
    transition: var(--transition-smooth);
}

.consent-checkbox-wrapper:hover .custom-checkbox {
    border-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.05);
}

.consent-checkbox-wrapper:hover .checkbox-label-text {
    color: var(--text-primary);
}

.hidden-checkbox:checked ~ .checkbox-label-text {
    color: var(--text-primary);
}

/* Digital Signature Pad Styles */
.signature-pad-wrapper {
    width: 100%;
    height: 220px;
    position: relative;
    background: rgba(8, 8, 12, 0.85);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.signature-pad-wrapper:hover {
    border-color: rgba(212, 175, 55, 0.3);
}

.signature-canvas-pad {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    cursor: crosshair;
    background: transparent;
}

/* Subtle banking security grid for aesthetics */
.canvas-grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.08;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.3) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center;
}

.canvas-grid-lines::after {
    content: "SIGN WITHIN BOUNDS";
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-primary);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    opacity: 0.25;
}

.clear-canvas-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
}

.clear-canvas-btn:hover {
    background: var(--error-gradient);
    color: #FFF;
    border-color: var(--error-red);
    box-shadow: 0 0 10px var(--error-glow);
}

/* ==========================================================================
   SCROLLABLE DOCUMENT READER STYLES
   ========================================================================== */
.consent-document-reader {
    width: 100%;
    height: 380px;
    background: rgba(8, 8, 12, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow-y: auto;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 24px;
    text-align: left;
}

/* Custom Scrollbar for terms & conditions */
.consent-document-reader::-webkit-scrollbar {
    width: 6px;
}
.consent-document-reader::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}
.consent-document-reader::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    transition: var(--transition-smooth);
}
.consent-document-reader::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.4);
}

.consent-document-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.consent-document-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    border-left: 3px solid var(--gold-primary);
    padding-left: 10px;
    margin-top: 5px;
}

.consent-document-content .policy-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: -10px;
}

.consent-document-content p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.consent-document-content .policy-divider {
    height: 1px;
    background: var(--border-color);
    margin: 10px 0;
}

.consent-document-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: -5px;
}

.consent-document-content ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 5px;
}

.consent-document-content ul li {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-secondary);
    position: relative;
    padding-left: 18px;
}

.consent-document-content ul li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: var(--gold-primary);
    font-size: 0.75rem;
    top: 0;
}

/* ==========================================================================
   CREDENTIALS SHORTCUT BOX PREVIEWS & FULLSCREEN ZOOM LIGHTBOX MODAL
   ========================================================================== */
.shortcut-preview-box:hover {
    border-color: var(--gold-primary) !important;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.15);
    transform: translateY(-2px);
}

.shortcut-preview-box:hover .preview-overlay {
    opacity: 1 !important;
}

.shortcut-preview-box:hover img {
    transform: scale(1.05);
}

/* Lightbox Modal styles */
.kyc-lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(8, 8, 12, 0.95);
    backdrop-filter: blur(15px);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kyc-lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.kyc-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0d0d13;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.kyc-lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
}

.kyc-lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kyc-lightbox-close:hover {
    background: var(--error-red);
    border-color: var(--error-red);
    transform: rotate(90deg);
}

.kyc-lightbox-title {
    margin-top: 12px;
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--gold-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}