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

        .karma-app {
            min-height: 100vh;
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
            color: #f8fafc;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            position: relative;
            overflow-x: hidden;
            width: 100%;
            box-sizing: border-box;
        }

        .karma-app::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
            pointer-events: none;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            /* padding: 2rem 1rem; */
            position: relative;
            z-index: 1;
            width: 100%;
            box-sizing: border-box;
        }

        .header {
            text-align: center;
            margin-bottom: 3rem;
            width: 100%;
            max-width: 100%;
        }

        .main-title {
            /* font-size: clamp(2.5rem, 5vw, 4rem); */
            font-weight: 800;
            background: linear-gradient(135deg, #f59e0b, #f97316, #ec4899);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 1rem;
            text-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
        }

        .subtitle {
            /* font-size: clamp(1rem, 2vw, 1.25rem); */
            color: #cbd5e1;
            max-width: 600px;
            margin: 0 auto;
            line-height: 1.6;
        }

        .main-grid {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
            gap: 2rem;
            margin-bottom: 2rem;
            width: 100%;
            box-sizing: border-box;
        }

        @media (max-width: 1200px) {
            .main-grid {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
        }

        @media (max-width: 768px) {
            .container {
                padding: 1rem 0.5rem;
            }
            
            .main-grid {
                gap: 1rem;
            }
        }

        .card {
            background: rgba(15, 23, 42, 0.8);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(148, 163, 184, 0.1);
            border-radius: 1.5rem;
            padding: 2rem;
            box-shadow: 
                0 20px 25px -5px rgba(0, 0, 0, 0.1),
                0 10px 10px -5px rgba(0, 0, 0, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
            width: 100%;
            box-sizing: border-box;
            min-width: 0;
            overflow: hidden;
        }

        .card:hover {
            transform: translateY(-2px);
            box-shadow: 
                0 25px 50px -12px rgba(0, 0, 0, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        .form-card {
            position: relative;
            width: 100%;
            max-width: 100%;
            min-height: 600px;
        }

        .form-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            color: #f8fafc;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .form-title::before {
            content: '✨';
            font-size: 1.25rem;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-label {
            display: block;
            font-size: 0.875rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: #e2e8f0;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .form-input {
            width: 100%;
            padding: 0.875rem 1rem;
            background: rgba(30, 41, 59, 0.9);
            border: 2px solid rgba(148, 163, 184, 0.2);
            border-radius: 0.75rem;
            color: #f8fafc;
            font-size: 1rem;
            outline: none;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            box-sizing: border-box;
            min-width: 0;
        }

        .form-input:focus {
            border-color: #f59e0b;
            box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
            background: rgba(30, 41, 59, 1);
        }

        .form-input::placeholder {
            color: #94a3b8;
        }

        .form-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
        }

        @media (max-width: 640px) {
            .form-grid {
                grid-template-columns: 1fr;
            }
        }

        .gender-group {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .gender-btn {
            flex: 1;
            min-width: 120px;
            padding: 0.875rem 1.5rem;
            border: 2px solid rgba(148, 163, 184, 0.2);
            background: rgba(30, 41, 59, 0.5);
            color: #cbd5e1;
            border-radius: 0.75rem;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
            text-align: center;
            backdrop-filter: blur(10px);
        }

        .gender-btn:hover {
            border-color: rgba(245, 158, 11, 0.5);
            background: rgba(245, 158, 11, 0.1);
        }

        .gender-btn.active {
            background: linear-gradient(135deg, #f59e0b, #f97316);
            color: #0f172a;
            border-color: #f59e0b;
            box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.4);
        }

        .location-container {
            position: relative;
        }

        .location-suggestions {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: rgba(15, 23, 42, 0.95);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(148, 163, 184, 0.2);
            border-radius: 0.75rem;
            max-height: 200px;
            overflow-y: auto;
            z-index: 10000;
            display: none;
            margin-top: 0.5rem;
            width: 100%;
            box-sizing: border-box;
        }

        @media (max-width: 768px) {
            .location-suggestions {
                position: sticky;
                top: auto;
                left: 1rem;
                right: 1rem;
                bottom: 1rem;
                max-height: 300px;
                border-radius: 1rem;
                z-index: 10001;
            }
        }

        .location-item {
            padding: 0.875rem 1rem;
            cursor: pointer;
            border-bottom: 1px solid rgba(148, 163, 184, 0.1);
            transition: background 0.2s ease;
            color: #e2e8f0;
            font-size: 0.875rem;
        }

        @media (max-width: 768px) {
            .location-item {
                padding: 1rem 1.25rem;
                font-size: 1rem;
                min-height: 48px;
                display: flex;
                align-items: center;
            }
        }

        .location-item:hover {
            background: rgba(245, 158, 11, 0.1);
            color: #f59e0b;
        }

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

        .visit-section {
            border-top: 1px solid rgba(148, 163, 184, 0.2);
            padding-top: 1.5rem;
            margin-top: 1.5rem;
        }

        .visit-question {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            margin-bottom: 1rem;
            flex-wrap: wrap;
        }

        .visit-question-text {
            font-size: 0.875rem;
            color: #cbd5e1;
            font-weight: 500;
        }

        .submit-btn {
            width: 100%;
            padding: 1rem 2rem;
            background: linear-gradient(135deg, #f59e0b, #f97316);
            color: #0f172a;
            border: none;
            border-radius: 0.75rem;
            font-weight: 700;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 1.5rem;
            box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.4);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .submit-btn:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px 0 rgba(245, 158, 11, 0.5);
        }

        .submit-btn:disabled {
            opacity: 0.7;
            cursor: not-allowed;
            transform: none;
        }

        .download-btn {
            background: linear-gradient(135deg, #10b981, #059669) !important;
            box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.4) !important;
        }

        .download-btn:hover:not(:disabled) {
            box-shadow: 0 8px 25px 0 rgba(16, 185, 129, 0.5) !important;
        }

        .loading-spinner {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(15, 23, 42, 0.3);
            border-radius: 50%;
            border-top-color: #0f172a;
            animation: spin 1s linear infinite;
            margin-right: 0.5rem;
        }

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

        .error-message {
            background: linear-gradient(135deg, #dc2626, #ef4444);
            color: white;
            padding: 1rem;
            border-radius: 0.75rem;
            margin-bottom: 1.5rem;
            font-size: 0.875rem;
            display: none;
            animation: slideDown 0.3s ease;
            box-shadow: 0 4px 14px 0 rgba(220, 38, 38, 0.4);
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .result-card {
            min-height: 600px;
            display: flex;
            flex-direction: column;
            width: 100%;
            max-width: 100%;
        }

        .result-placeholder {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
            text-align: center;
            color: #64748b;
        }

        .result-placeholder-content {
            max-width: 300px;
        }

        .result-placeholder-icon {
            font-size: 4rem;
            margin-bottom: 1rem;
            opacity: 0.7;
        }

        .karma-type-section {
            margin-bottom: 2rem;
        }

        .karma-type-label {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: #94a3b8;
            margin-bottom: 0.5rem;
            font-weight: 600;
        }

        .karma-type-value {
            font-size: 2rem;
            font-weight: 800;
            background: linear-gradient(135deg, #f59e0b, #f97316);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 1rem;
        }

        .karma-score-section {
            margin-bottom: 2rem;
        }

        .karma-score-label {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: #94a3b8;
            margin-bottom: 0.5rem;
            font-weight: 600;
        }

        .karma-score-value {
            font-size: 3.5rem;
            font-weight: 900;
            color: #f59e0b;
            margin-bottom: 0.5rem;
            text-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
        }

        .karma-score-subtitle {
            font-size: 0.875rem;
            color: #cbd5e1;
            margin-bottom: 1rem;
        }

        .signs-section {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .sign-item {
            background: rgba(30, 41, 59, 0.5);
            padding: 1rem;
            border-radius: 0.75rem;
            text-align: center;
            border: 1px solid rgba(148, 163, 184, 0.1);
        }

        .sign-label {
            font-size: 0.75rem;
            color: #94a3b8;
            margin-bottom: 0.25rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .sign-value {
            font-size: 1.125rem;
            font-weight: 700;
            color: #f8fafc;
        }

        .traits-section {
            background: rgba(30, 41, 59, 0.3);
            padding: 1rem;
            border-radius: 0.75rem;
            border: 1px solid rgba(148, 163, 184, 0.1);
        }

        .traits-label {
            font-size: 0.75rem;
            color: #94a3b8;
            margin-bottom: 0.5rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            font-weight: 600;
        }

        .traits-content {
            color: #e2e8f0;
            line-height: 1.5;
        }

        .progress-section {
            margin-top: 2rem;
        }

        .progress-card {
            background: rgba(15, 23, 42, 0.8);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(148, 163, 184, 0.1);
            border-radius: 1.5rem;
            padding: 2rem;
            box-shadow: 
                0 20px 25px -5px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        .progress-title {
            font-size: 1.25rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            color: #f8fafc;
        }

        .progress-subtitle {
            font-size: 0.875rem;
            color: #94a3b8;
            margin-bottom: 1.5rem;
        }

        .progress-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1rem;
        }

        .progress-label {
            min-width: 140px;
            font-size: 0.875rem;
            color: #cbd5e1;
            font-weight: 500;
        }

        .progress-item {
            margin-bottom: 1.5rem;
            padding: 1rem;
            background: rgba(15, 23, 42, 0.6);
            border-radius: 0.75rem;
            border: 1px solid rgba(245, 158, 11, 0.1);
            transition: all 0.3s ease;
        }

        .progress-item:hover {
            background: rgba(15, 23, 42, 0.8);
            border-color: rgba(245, 158, 11, 0.2);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(245, 158, 11, 0.1);
        }

        .progress-bar-container {
            flex: 1;
            height: 12px;
            background: linear-gradient(90deg, #1e293b, #334155);
            border-radius: 20px;
            overflow: hidden;
            position: relative;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .progress-bar {
            height: 100%;
            background: linear-gradient(90deg, #f59e0b, #f97316, #ec4899);
            border-radius: 20px;
            transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
        }

        .progress-bar::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            border-radius: 20px;
            animation: shimmer 2s infinite;
        }

        @keyframes shimmer {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }

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

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

        @keyframes pulse {
            0%, 100% {
                opacity: 1;
            }
            50% {
                opacity: 0.7;
            }
        }

        @keyframes stepComplete {
            0% {
                background-color: transparent;
            }
            50% {
                background-color: rgba(16, 185, 129, 0.2);
            }
            100% {
                background-color: transparent;
            }
        }

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

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

        .step-active {
            background-color: rgba(245, 158, 11, 0.1) !important;
            border-left: 3px solid #f59e0b !important;
            animation: pulse 2s infinite;
        }

        .step-completed {
            background-color: rgba(16, 185, 129, 0.1) !important;
            border-left: 3px solid #10b981 !important;
            animation: stepComplete 0.5s ease;
        }

        .progress-value {
            min-width: 50px;
            text-align: right;
            font-size: 1rem;
            color: #f59e0b;
            font-weight: 700;
            text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
        }

        .text-danger {
            color: #ef4444;
            font-size: 0.75rem;
            margin-top: 0.25rem;
            display: block;
        }

        .perfect-score-badge {
            background: linear-gradient(135deg, #10b981, #059669);
            color: white;
            padding: 1rem;
            border-radius: 0.75rem;
            font-size: 0.875rem;
            margin-top: 1rem;
            box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.4);
        }

        @media (max-width: 640px) {
            .container {
                padding: 1rem 0.5rem;
                max-width: 100vw;
            }
            
            .card {
                padding: 1.5rem;
                margin: 0;
                border-radius: 1rem;
            }
            
            .form-card, .result-card {
                min-height: auto;
            }
            
            .signs-section {
                grid-template-columns: 1fr;
            }
            
            .visit-question {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.75rem;
            }
            
            .gender-group {
                width: 100%;
            }
            
            .gender-btn {
                min-width: auto;
                flex: 1;
            }
            
            .subtitle {
                font-size: 1rem;
                padding: 0 1rem;
            }
        }

        /* Fix for very small screens */
        @media (max-width: 480px) {
            .karma-app {
                overflow-x: hidden;
            }
            
            .container {
                padding: 0.5rem;
                width: 100%;
                max-width: 100%;
            }
            
            .card {
                padding: 1rem;
                border-radius: 0.75rem;
            }
            
            .form-grid {
                grid-template-columns: 1fr;
                gap: 0.75rem;
            }
            
        }
        .border{
            border-radius: 30px;
        }

        /* Buffer Preloader Styles */
        .buffer-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(15, 23, 42, 0.95);
            backdrop-filter: blur(10px);
            z-index: 9999;
            display: none;
            align-items: center;
            justify-content: center;
        }

        .buffer-overlay.show-buffer {
            display: flex !important;
            animation: fadeIn 0.3s ease;
        }

        .buffer-content {
            text-align: center;
            max-width: 500px;
            padding: 3rem 2rem;
            background: rgba(30, 41, 59, 0.9);
            border-radius: 1.5rem;
            border: 1px solid rgba(245, 158, 11, 0.3);
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
        }

        .buffer-spinner {
            width: 80px;
            height: 80px;
            border: 4px solid rgba(245, 158, 11, 0.2);
            border-top: 4px solid #f59e0b;
            border-radius: 50%;
            animation: bufferSpin 1s linear infinite;
            margin: 0 auto 2rem;
        }

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

        .buffer-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: #f59e0b;
            margin-bottom: 1rem;
        }

        .buffer-message {
            font-size: 1rem;
            color: #cbd5e1;
            margin-bottom: 2rem;
            line-height: 1.6;
        }

        .buffer-steps {
            text-align: left;
            margin-bottom: 2rem;
        }

        .buffer-step {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 0.75rem;
            padding: 0.75rem;
            border-radius: 0.5rem;
            transition: all 0.3s ease;
            font-size: 0.875rem;
        }

        .buffer-step.active {
            background: rgba(245, 158, 11, 0.1);
            border-left: 3px solid #f59e0b;
            color: #f59e0b;
        }

        .buffer-step.completed {
            background: rgba(16, 185, 129, 0.1);
            border-left: 3px solid #10b981;
            color: #10b981;
        }

        .buffer-step.pending {
            color: #94a3b8;
            opacity: 0.6;
        }

        .buffer-progress-bar {
            width: 100%;
            height: 8px;
            background: rgba(51, 65, 85, 0.6);
            border-radius: 4px;
            overflow: hidden;
            margin-bottom: 1rem;
        }

        .buffer-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #f59e0b, #f97316);
            border-radius: 4px;
            width: 0%;
            transition: width 0.5s ease;
        }

        .buffer-percentage {
            font-size: 0.875rem;
            color: #f59e0b;
            font-weight: 600;
            text-align: center;
        }

        .buffer-warning {
            background: rgba(245, 158, 11, 0.1);
            border: 1px solid rgba(245, 158, 11, 0.3);
            border-radius: 0.5rem;
            padding: 1rem;
            margin-top: 1.5rem;
            font-size: 0.875rem;
            color: #f59e0b;
            display: none;
        }
    