        @import url('https://cdn.fontcdn.ir/Font/Persian/Vazir/Vazir.css');

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Vazir', 'Segoe UI', system-ui, sans-serif;
            background: #1E355F;
            min-height: 100vh;
            overflow: hidden;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Sophisticated 3D Background */
        .background-3d {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
            perspective: 2000px;
            transform-style: preserve-3d;
        }

        .geometric-layer {
            position: absolute;
            width: 100%;
            height: 100%;
            transform-style: preserve-3d;
        }

        .floating-element {
            position: absolute;
            background: rgba(168, 225, 12, 0.1);
            border: 1px solid rgba(168, 225, 12, 0.3);
            backdrop-filter: blur(10px);
            animation: floatElegant 20s infinite linear;
        }

        .element-1 {
            width: 120px;
            height: 120px;
            top: 10%;
            left: 15%;
            border-radius: 50%;
            animation-delay: 0s;
        }

        .element-2 {
            width: 80px;
            height: 80px;
            top: 25%;
            right: 20%;
            clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
            animation-delay: 5s;
        }

        .element-3 {
            width: 100px;
            height: 100px;
            bottom: 30%;
            left: 25%;
            border-radius: 20px;
            animation-delay: 10s;
        }

        .element-4 {
            width: 90px;
            height: 90px;
            bottom: 15%;
            right: 15%;
            clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
            animation-delay: 15s;
        }

        @keyframes floatElegant {
            0% { 
                transform: translateY(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
                opacity: 0.3;
            }
            25% { 
                transform: translateY(-40px) rotateX(90deg) rotateY(45deg) rotateZ(15deg);
                opacity: 0.6;
            }
            50% { 
                transform: translateY(-60px) rotateX(180deg) rotateY(90deg) rotateZ(30deg);
                opacity: 0.8;
            }
            75% { 
                transform: translateY(-40px) rotateX(270deg) rotateY(135deg) rotateZ(45deg);
                opacity: 0.6;
            }
            100% { 
                transform: translateY(0px) rotateX(360deg) rotateY(180deg) rotateZ(60deg);
                opacity: 0.3;
            }
        }

        /* Main Container */
        .onboarding-wrapper {
            position: relative;
            width: 90%;
            max-width: 1000px;
            height: 700px;
            z-index: 10;
            perspective: 1500px;
            transform-style: preserve-3d;
        }

        /* Card Stack System */
        .card-stack {
            position: relative;
            width: 100%;
            height: 100%;
            transform-style: preserve-3d;
        }

        .guide-card {
            position: absolute;
            width: 100%;
            height: 100%;
            background: #FFFFFF;
            border: 2px solid rgba(168, 225, 12, 0.2);
            border-radius: 24px;
            padding: 80px 60px;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            box-shadow: 
                0 25px 80px rgba(0, 0, 0, 0.15),
                0 0 40px rgba(168, 225, 12, 0.1);
            transform-style: preserve-3d;
            backface-visibility: hidden;
            transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
            opacity: 0;
            transform: 
                translateX(100px) 
                translateZ(-200px) 
                rotateY(45deg) 
                scale(0.85);
        }

        .guide-card.active {
            opacity: 1;
            transform: 
                translateX(0px) 
                translateZ(0px) 
                rotateY(0deg) 
                scale(1);
            z-index: 100;
            box-shadow: 
                0 40px 120px rgba(0, 0, 0, 0.2),
                0 0 60px rgba(168, 225, 12, 0.15);
        }

        .guide-card.exiting {
            opacity: 0;
            transform: 
                translateX(-100px) 
                translateZ(-100px) 
                rotateY(-30deg) 
                scale(0.9);
            z-index: 50;
        }

        .guide-card.next {
            opacity: 0;
            transform: 
                translateX(50px) 
                translateZ(-100px) 
                rotateY(20deg) 
                scale(0.92);
            z-index: 75;
        }

        /* Icon Design */
        .icon-container {
            width: 160px;
            height: 160px;
            background: #1E355F;
            border: 3px solid #A8E10C;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 4em;
            color: #A8E10C;
            margin-bottom: 40px;
            position: relative;
            box-shadow: 
                0 20px 40px rgba(30, 53, 95, 0.3),
                inset 0 0 20px rgba(168, 225, 12, 0.1);
            animation: iconBreath 4s ease-in-out infinite;
        }

        .icon-container::before {
            content: '';
            position: absolute;
            top: -8px;
            left: -8px;
            right: -8px;
            bottom: -8px;
            border: 1px solid rgba(168, 225, 12, 0.3);
            border-radius: 50%;
            animation: ringPulse 3s ease-in-out infinite;
        }

        @keyframes iconBreath {
            0%, 100% { 
                transform: scale(1);
                box-shadow: 
                    0 20px 40px rgba(30, 53, 95, 0.3),
                    inset 0 0 20px rgba(168, 225, 12, 0.1);
            }
            50% { 
                transform: scale(1.05);
                box-shadow: 
                    0 25px 50px rgba(30, 53, 95, 0.4),
                    inset 0 0 30px rgba(168, 225, 12, 0.2);
            }
        }

        @keyframes ringPulse {
            0%, 100% { 
                transform: scale(1);
                opacity: 0.5;
            }
            50% { 
                transform: scale(1.1);
                opacity: 1;
            }
        }

        /* Typography */
        .guide-title {
            font-size: 2.8em;
            font-weight: 700;
            color: #1E355F;
            margin-bottom: 24px;
            line-height: 1.2;
            letter-spacing: -0.5px;
        }

        .guide-description {
            font-size: 1.1em;
            color: #666;
            line-height: 1.8;
            margin-bottom: 50px;
            max-width: 600px;
            font-weight: 400;
        }

        /* Button Design */
        .action-button {
            background: #A8E10C;
            color: #1E355F;
            border: 2px solid #1E355F;
            padding: 18px 48px;
            border-radius: 50px;
            font-size: 1.1em;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.4s ease;
            font-family: 'Vazir', sans-serif;
            position: relative;
            overflow: hidden;
            text-transform: uppercase;
            letter-spacing: 1px;
            box-shadow: 0 8px 25px rgba(168, 225, 12, 0.3);
        }

        .action-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(30, 53, 95, 0.1), transparent);
            transition: left 0.6s ease;
        }

        .action-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 40px rgba(168, 225, 12, 0.4);
            background: #1E355F;
            color: #A8E10C;
        }

        .action-button:hover::before {
            left: 100%;
        }

        .action-button:active {
            transform: translateY(-1px);
        }

        /* Progress Navigation */
        .progress-nav {
            position: absolute;
            bottom: 40px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            align-items: center;
            gap: 24px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            padding: 20px 40px;
            border-radius: 50px;
            border: 1px solid rgba(168, 225, 12, 0.2);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }

        .progress-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #E0E0E0;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
        }

        .progress-dot.active {
            background: #A8E10C;
            transform: scale(1.4);
            box-shadow: 0 0 20px rgba(168, 225, 12, 0.4);
        }

        .progress-dot.active::before {
            content: '';
            position: absolute;
            top: -4px;
            left: -4px;
            right: -4px;
            bottom: -4px;
            border: 2px solid rgba(168, 225, 12, 0.3);
            border-radius: 50%;
            animation: dotPulse 2s ease-in-out infinite;
        }

        @keyframes dotPulse {
            0%, 100% { 
                transform: scale(1);
                opacity: 1;
            }
            50% { 
                transform: scale(1.2);
                opacity: 0.7;
            }
        }

        /* Navigation Buttons */
        .nav-controls {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .nav-btn {
            width: 36px;
            height: 36px;
            border: 2px solid #1E355F;
            background: transparent;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            font-size: 14px;
            color: #1E355F;
        }

        .nav-btn:hover {
            background: #1E355F;
            color: #A8E10C;
            transform: scale(1.1);
        }

        .nav-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        /* App Container */
        .app-container {
            display: none;
            width: 100vw;
            height: 100vh;
            background: #1E355F;
            position: fixed;
            top: 0;
            left: 0;
            z-index: 1000;
        }

        .app-container.show {
            display: flex;
            align-items: center;
            justify-content: center;
            animation: fadeInApp 0.8s ease-out;
        }

        @keyframes fadeInApp {
            from {
                opacity: 0;
                transform: scale(0.95);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .upload-panel {
            background: #FFFFFF;
            border: 2px solid rgba(168, 225, 12, 0.3);
            border-radius: 32px;
            padding: 60px;
            max-width: 800px;
            width: 90%;
            text-align: center;
            box-shadow: 
                0 50px 100px rgba(0, 0, 0, 0.3),
                0 0 80px rgba(168, 225, 12, 0.1);
            position: relative;
            overflow: hidden;
        }

        .upload-panel::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #A8E10C, #1E355F, #A8E10C);
            background-size: 200% 100%;
            animation: gradientShift 3s ease-in-out infinite;
        }

        @keyframes gradientShift {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

        .upload-title {
            font-size: 2.8em;
            font-weight: 700;
            color: #1E355F;
            margin-bottom: 16px;
            font-family: 'Vazir', sans-serif;
        }

        .upload-subtitle {
            font-size: 1.1em;
            color: #666;
            margin-bottom: 40px;
            line-height: 1.6;
        }

        .drop-zone {
            border: 3px dashed rgba(168, 225, 12, 0.4);
            border-radius: 20px;
            padding: 60px 40px;
            margin: 30px 0;
            background: rgba(168, 225, 12, 0.02);
            cursor: pointer;
            transition: all 0.4s ease;
            position: relative;
            overflow: hidden;
        }

        .drop-zone::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(168, 225, 12, 0.1), transparent);
            transition: left 0.8s ease;
        }

        .drop-zone:hover {
            border-color: #A8E10C;
            background: rgba(168, 225, 12, 0.05);
            transform: translateY(-2px);
            box-shadow: 0 15px 40px rgba(168, 225, 12, 0.1);
        }

        .drop-zone:hover::before {
            left: 100%;
        }

        .drop-zone.dragover {
            border-color: #1E355F;
            background: rgba(168, 225, 12, 0.08);
            transform: scale(1.02);
        }

        .upload-icon {
            font-size: 3.5em;
            color: #A8E10C;
            margin-bottom: 20px;
            animation: iconBounce 2s ease-in-out infinite;
        }

        @keyframes iconBounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }

        .upload-text {
            font-size: 1.3em;
            color: #1E355F;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .upload-hint {
            font-size: 0.95em;
            color: #888;
        }

        .file-input {
            display: none;
        }

        .selected-file {
            background: rgba(168, 225, 12, 0.08);
            border: 2px solid #A8E10C;
            border-radius: 16px;
            padding: 24px;
            margin: 24px 0;
            display: none;
            align-items: center;
            gap: 16px;
            box-shadow: 0 8px 25px rgba(168, 225, 12, 0.15);
        }

        .file-icon {
            font-size: 2em;
            color: #A8E10C;
        }

        .file-details {
            flex: 1;
            text-align: right;
        }

        .file-name {
            font-weight: 600;
            color: #1E355F;
            margin-bottom: 4px;
            font-size: 1.1em;
        }

        .file-size {
            color: #666;
            font-size: 0.9em;
        }

        .process-button {
            background: #A8E10C;
            color: #1E355F;
            border: 2px solid #1E355F;
            padding: 18px 60px;
            border-radius: 50px;
            font-size: 1.2em;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.4s ease;
            margin-top: 30px;
            opacity: 0.5;
            pointer-events: none;
            font-family: 'Vazir', sans-serif;
        }

        .process-button.ready {
            opacity: 1;
            pointer-events: all;
            box-shadow: 0 12px 35px rgba(168, 225, 12, 0.3);
        }

        .process-button:hover {
            background: #1E355F;
            color: #A8E10C;
            transform: translateY(-3px);
            box-shadow: 0 18px 50px rgba(168, 225, 12, 0.4);
        }

        /* Advanced Processing Screen */
        .processing-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #0A0F1C;
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            overflow: hidden;
        }

        .processing-modal.show {
            display: flex;
            animation: fadeInProcessing 0.8s ease-out;
        }

        @keyframes fadeInProcessing {
            from {
                opacity: 0;
                transform: scale(1.1);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        /* Matrix-style Background */
        .matrix-background {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
            opacity: 0.1;
        }

        .matrix-rain {
            position: absolute;
            top: -100%;
            color: #A8E10C;
            font-family: 'Courier New', monospace;
            font-size: 14px;
            white-space: nowrap;
            animation: matrixFall 8s linear infinite;
            text-shadow: 0 0 10px #A8E10C;
        }

        @keyframes matrixFall {
            0% {
                top: -100%;
                opacity: 0;
            }
            10% {
                opacity: 1;
            }
            90% {
                opacity: 1;
            }
            100% {
                top: 100vh;
                opacity: 0;
            }
        }

        /* Main Processing Container */
        .processing-container {
            background: rgba(30, 53, 95, 0.95);
            border: 2px solid #A8E10C;
            border-radius: 30px;
            padding: 60px;
            backdrop-filter: blur(20px);
            box-shadow: 
                0 50px 100px rgba(0, 0, 0, 0.5),
                0 0 100px rgba(168, 225, 12, 0.2),
                inset 0 0 50px rgba(168, 225, 12, 0.05);
            max-width: 800px;
            width: 90%;
            position: relative;
            z-index: 10;
            overflow: hidden;
        }

        .processing-container::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            background: rgba(168, 225, 12, 0.15);
            border-radius: 30px;
            z-index: -1;
            animation: borderGlow 3s ease-in-out infinite;
        }

       /* @keyframes borderGlow {
            0%, 100% {
                background: linear-gradient(45deg, #A8E10C, #1E355F, #A8E10C);
                filter: brightness(1);
            }
            50% {
                background: linear-gradient(45deg, #1E355F, #A8E10C, #1E355F);
                filter: brightness(1.5);
            }
        }*/

        /* Timer Display */
        .timer-section {
            text-align: center;
            margin-bottom: 40px;
        }

        .timer-display {
            font-size: 4em;
            font-weight: 700;
            color: #A8E10C;
            font-family: 'Vazir', monospace;
            text-shadow: 
                0 0 20px #A8E10C,
                0 0 40px rgba(168, 225, 12, 0.5);
            margin-bottom: 10px;
            animation: timerPulse 1s ease-in-out infinite alternate;
        }

        @keyframes timerPulse {
            from {
                transform: scale(1);
                filter: brightness(1);
            }
            to {
                transform: scale(1.05);
                filter: brightness(1.2);
            }
        }

        .timer-label {
            font-size: 1.2em;
            color: rgba(255, 255, 255, 0.8);
            font-weight: 500;
        }

        /* Progress Circle */
        .progress-circle {
            position: relative;
            width: 200px;
            height: 200px;
            margin: 0 auto 40px;
        }

        .circle-bg, .circle-progress {
            fill: none;
            stroke-width: 8;
            transform: rotate(-90deg);
            transform-origin: center;
        }

        .circle-bg {
            stroke: rgba(255, 255, 255, 0.1);
        }

        .circle-progress {
            stroke: #A8E10C;
            stroke-linecap: round;
            filter: drop-shadow(0 0 10px #A8E10C);
            animation: progressPulse 2s ease-in-out infinite;
        }

        @keyframes progressPulse {
            0%, 100% {
                filter: drop-shadow(0 0 10px #A8E10C);
            }
            50% {
                filter: drop-shadow(0 0 20px #A8E10C);
            }
        }

        /* Code Terminal */
        .code-terminal {
            background: #000000;
            border: 1px solid #A8E10C;
            border-radius: 15px;
            padding: 20px;
            margin: 30px 0;
            font-family: 'Courier New', monospace;
            font-size: 12px;
            color: #A8E10C;
            height: 200px;
            overflow: hidden;
            position: relative;
            box-shadow: 
                0 10px 30px rgba(0, 0, 0, 0.5),
                inset 0 0 20px rgba(168, 225, 12, 0.1);
        }

        .terminal-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(168, 225, 12, 0.3);
        }

        .terminal-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
        }

        .dot-red { background: #FF5F57; }
        .dot-yellow { background: #FFBD2E; }
        .dot-green { background: #28CA42; }

        .terminal-title {
            color: rgba(255, 255, 255, 0.7);
            font-size: 11px;
            margin-right: 10px;
        }

        .code-lines {
            height: 150px;
            overflow: hidden;
        }

        .code-line {
            display: block;
            opacity: 0;
            animation: typeCode 0.5s ease-in-out forwards;
            white-space: nowrap;
            margin-bottom: 3px;
        }

        @keyframes typeCode {
            from {
                opacity: 0;
                transform: translateX(-10px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .cursor {
            display: inline-block;
            background: #A8E10C;
            width: 8px;
            height: 14px;
            animation: blink 1s infinite;
            margin-left: 2px;
        }

        @keyframes blink {
            0%, 50% { opacity: 1; }
            51%, 100% { opacity: 0; }
        }

        /* Upload Progress */
        .upload-progress {
            margin: 30px 0;
        }

        .upload-label {
            color: rgba(255, 255, 255, 0.8);
            font-size: 1em;
            margin-bottom: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .upload-bar {
            width: 100%;
            height: 8px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
            overflow: hidden;
            position: relative;
        }

        .upload-fill {
            height: 100%;
            background: linear-gradient(90deg, #A8E10C, #7FB309);
            width: 0%;
            border-radius: 4px;
            transition: width 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .upload-fill::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
            animation: shimmer 2s infinite;
        }

        @keyframes shimmer {
            0% { left: -100%; }
            100% { left: 100%; }
        }

        /* Status Messages */
        .status-messages {
            margin-top: 20px;
            min-height: 60px;
        }

        .status-message {
            color: rgba(255, 255, 255, 0.9);
            font-size: 1.1em;
            margin-bottom: 8px;
            opacity: 0;
            animation: fadeInMessage 0.5s ease-in-out forwards;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        @keyframes fadeInMessage {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .status-icon {
            color: #A8E10C;
            font-size: 1.2em;
            animation: statusSpin 2s linear infinite;
        }

        @keyframes statusSpin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .status-icon.success {
            color: #28CA42;
            animation: none;
        }

        /* Floating Particles */
        .particles-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 5;
        }

        .particle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: #A8E10C;
            border-radius: 50%;
            opacity: 0.7;
            animation: floatParticle 8s linear infinite;
            box-shadow: 0 0 6px #A8E10C;
        }

        @keyframes floatParticle {
            0% {
                transform: translateY(100vh) translateX(0);
                opacity: 0;
            }
            10% {
                opacity: 0.7;
            }
            90% {
                opacity: 0.7;
            }
            100% {
                transform: translateY(-100px) translateX(100px);
                opacity: 0;
            }
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .onboarding-wrapper {
                width: 95%;
                height: 600px;
            }
            
            .guide-card {
                padding: 60px 40px;
            }
            
            .guide-title {
                font-size: 2.2em;
            }
            
            .upload-panel {
                padding: 40px;
                margin: 20px;
            }
            
            .upload-title {
                font-size: 2.2em;
            }
            
            .processing-container {
                padding: 40px;
            }
            
            .timer-display {
                font-size: 3em;
            }
        }
