
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        /* Accessibility improvements removed to restore original design */
        
        body {
            font-family: 'Inter', sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
            background-attachment: fixed;
            min-height: 100vh;
            color: #333;
            overflow-x: hidden;
            position: relative;
            margin: 0;
        }
        
        /* Mobile background fix */
        @media (max-width: 768px) {
            html {
                background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
                min-height: 100vh;
                background-attachment: scroll;
                background-size: cover;
                background-repeat: no-repeat;
                background-position: center center;
            }
            
            body {
                background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
                background-attachment: scroll;
                background-size: cover;
                background-repeat: no-repeat;
                background-position: center center;
                min-height: 100vh;
            }
            
            .container {
                background: transparent;
            }
        }
        
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
            pointer-events: none;
            z-index: -1;
        }
        
        /* Mobile pseudo-element fix */
        @media (max-width: 768px) {
            body::before {
                position: absolute;
                height: 100vh;
                width: 100%;
                background: 
                    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.4) 0%, transparent 60%),
                    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.4) 0%, transparent 60%),
                    radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.3) 0%, transparent 60%);
            }
        }
        
        /* Extra mobile background fix for iOS */
        @media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 1) {
            html, body {
                background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%) !important;
                background-attachment: scroll !important;
                background-size: cover !important;
                background-repeat: no-repeat !important;
                background-position: center center !important;
                min-height: 100vh !important;
            }
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }
        
        .header {
            text-align: center;
            margin-bottom: 40px;
            color: white;
            position: relative;
        }
        
        /* Header styles for new pages */
        header {
            text-align: center;
            margin-bottom: 40px;
            color: white;
            position: relative;
        }
        
        header h1 {
            font-size: 2.5rem;
            font-weight: 700;
            margin: 20px 0 10px 0;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
        }
        
        header p {
            font-size: 1.1rem;
            opacity: 0.9;
            margin: 0;
            text-shadow: 0.5px 0.5px 1px rgba(0,0,0,0.2);
        }
        
        /* Original design restored */
        
        .logo-container {
            margin-bottom: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .logo {
            max-width: 200px;
            height: auto;
            border-radius: 25px;
            box-shadow: 0 12px 40px rgba(0,0,0,0.3);
            transition: all 0.3s ease;
            background: rgba(255,255,255,0.1);
            backdrop-filter: blur(10px);
            padding: 15px;
            display: block;
            margin: 0 auto 20px auto;
        }
        
        .logo:hover {
            transform: scale(1.008);
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }
        
        
        
        .header p {
            font-size: 1rem;
            opacity: 0.95;
            font-weight: 400;
            text-shadow: 0 1px 3px rgba(0,0,0,0.15);
            letter-spacing: 0.5px;
        }
        
        .stats {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-bottom: 30px;
            color: white;
            font-size: 0.85rem;
        }
        
        .stat {
            text-align: center;
            background: rgba(255,255,255,0.1);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            padding: 15px 20px;
            border: 1px solid rgba(255,255,255,0.2);
            transition: all 0.3s ease;
        }
        
        .stat:hover {
            transform: translateY(-5px);
            background: rgba(255,255,255,0.15);
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        }
        
        .stat-number {
            font-size: 1.5rem;
            font-weight: 800;
            display: block;
            background: linear-gradient(45deg, #fff, #f0f0f0);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        
        .action-buttons {
            display: flex;
            gap: 15px;
            margin-bottom: 30px;
            justify-content: center;
        }
        
        .action-btn {
            background: rgba(255,255,255,0.95);
            backdrop-filter: blur(20px);
            border: 2px solid rgba(255,255,255,0.3);
            border-radius: 15px;
            padding: 12px 20px;
            font-size: 0.95rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            display: flex;
            align-items: center;
            gap: 8px;
            color: #1f2937;
            min-width: 140px;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }
        
        .action-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
            transition: left 0.5s;
        }
        
        .action-btn:hover::before {
            left: 100%;
        }
        
        .action-btn:hover {
            transform: translateY(-1px) scale(1.008);
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }
        
        .action-btn.primary {
            background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
            color: white;
            border-color: transparent;
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
        }
        
        .action-btn.primary:hover {
            box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
            transform: translateY(-8px) scale(1.08);
        }
        
        .action-btn.secondary {
            background: rgba(255,255,255,0.9);
            color: #1f2937;
            backdrop-filter: blur(20px);
        }
        
        .action-btn.secondary:hover {
            background: rgba(255,255,255,1);
            border-color: #667eea;
            transform: translateY(-5px) scale(1.05);
        }
        
        .card {
            background: rgba(255,255,255,0.95);
            backdrop-filter: blur(20px);
            border-radius: 20px;
            padding: 25px;
            box-shadow: 
                0 15px 30px rgba(0,0,0,0.1),
                0 0 0 1px rgba(255,255,255,0.2);
            margin-bottom: 20px;
            animation: slideUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            border: 1px solid rgba(255,255,255,0.3);
            position: relative;
            overflow: hidden;
        }
        
        .card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
            border-radius: 25px 25px 0 0;
        }
        
        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .progress-bar {
            width: 100%;
            height: 12px;
            background: rgba(229, 231, 235, 0.3);
            border-radius: 10px;
            margin-bottom: 35px;
            overflow: hidden;
            position: relative;
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
            border-radius: 10px;
            transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
            width: 0%;
            position: relative;
            overflow: hidden;
        }
        
        .progress-fill::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            animation: progressShine 2s infinite;
        }
        
        @keyframes progressShine {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }
        
        .question {
            display: none;
        }
        
        .question.active {
            display: block;
        }
        
        .question h2 {
            font-size: 1.4rem;
            margin-bottom: 20px;
            color: #1f2937;
            text-align: center;
            font-weight: 700;
            line-height: 1.4;
            background: linear-gradient(135deg, #1f2937, #374151);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        
        .options {
            display: grid;
            gap: 20px;
        }
        
        .option {
            background: rgba(248, 250, 252, 0.8);
            backdrop-filter: blur(10px);
            border: 2px solid rgba(229, 231, 235, 0.5);
            border-radius: 15px;
            padding: 18px;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            display: flex;
            align-items: center;
            gap: 15px;
            position: relative;
            overflow: hidden;
            user-select: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
        }
        
        /* Original option styles restored */
        
        .option::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
            transition: left 0.5s;
        }
        
        .option:hover::before {
            left: 100%;
        }
        
        .option:hover {
            border-color: #667eea;
            background: rgba(240, 244, 255, 0.9);
            transform: translateY(-1px) scale(1.005);
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
        }
        
        .option.selected {
            border-color: #667eea;
            background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
            color: white;
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
        }
        
        .option.selected::before {
            display: none;
        }
        
        .option-emoji {
            font-size: 2rem;
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
            transition: transform 0.3s ease;
        }
        
        .option:hover .option-emoji {
            transform: scale(1.02) rotate(1deg);
        }
        
        .option-text {
            font-size: 0.95rem;
            font-weight: 600;
            line-height: 1.4;
        }
        
        .btn {
            background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
            color: white;
            border: none;
            border-radius: 15px;
            padding: 12px 25px;
            font-size: 1rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            width: 100%;
            margin-top: 30px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
        }
        
        .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: left 0.5s;
        }
        
        .btn:hover::before {
            left: 100%;
        }
        
        .btn:hover {
            transform: translateY(-1px) scale(1.008);
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
        }
        
        .btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
        }
        
        .result {
            display: none;
            text-align: center;
        }
        
        .result.active {
            display: block;
        }
        
        .result-icon {
            font-size: 5rem;
            margin-bottom: 25px;
            filter: drop-shadow(0 4px 20px rgba(0,0,0,0.2));
            animation: iconBounce 2s ease-in-out infinite;
        }
        
        @keyframes iconBounce {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
        }
        
        .result-title {
            font-size: 2rem;
            font-weight: 800;
            margin-bottom: 15px;
            background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }
        
        .result-description {
            font-size: 1rem;
            color: #4b5563;
            margin-bottom: 30px;
            line-height: 1.7;
            font-weight: 500;
            max-width: 90%;
            margin-left: auto;
            margin-right: auto;
        }
        
        .gifts {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 25px;
            margin-bottom: 40px;
        }
        
        .gift {
            background: rgba(248, 250, 252, 0.9);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            padding: 18px;
            border: 2px solid rgba(229, 231, 235, 0.5);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
            overflow: hidden;
        }
        
        .gift::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }
        
        .gift:hover::before {
            transform: scaleX(1);
        }
        
        .gift:hover {
            border-color: #667eea;
            transform: translateY(-1px) scale(1.005);
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
            background: rgba(255, 255, 255, 0.95);
        }
        
        .gift-image {
            width: 100%;
            height: 160px;
            background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
            border-radius: 12px;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 3rem;
            position: relative;
            overflow: hidden;
        }
        
        .gift-image::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
            animation: shimmer 3s infinite;
        }
        
        @keyframes shimmer {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }
        
        .gift-title {
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 10px;
            color: #1f2937;
            background: linear-gradient(135deg, #1f2937, #374151);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        
        .gift-description {
            color: #6b7280;
            margin-bottom: 15px;
            line-height: 1.6;
            font-size: 0.9rem;
        }
        
        .gift-price {
            font-size: 1.2rem;
            font-weight: 800;
            background: linear-gradient(135deg, #059669, #10b981);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 15px;
            text-shadow: 0 1px 3px rgba(5, 150, 105, 0.1);
        }
        
        .buy-btn {
            background: linear-gradient(135deg, #059669, #10b981);
            color: white;
            border: none;
            border-radius: 12px;
            padding: 10px 20px;
            font-weight: 700;
            font-size: 0.95rem;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            width: 100%;
            position: relative;
            overflow: hidden;
            box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3);
        }
        
        .buy-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: left 0.5s;
        }
        
        .buy-btn:hover::before {
            left: 100%;
        }
        
        .buy-btn:hover {
            background: linear-gradient(135deg, #047857, #059669);
            transform: translateY(-1px) scale(1.008);
            box-shadow: 0 4px 15px rgba(5, 150, 105, 0.2);
        }
        
        .share-section {
            background: rgba(248, 250, 252, 0.9);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 30px;
            margin-bottom: 25px;
            border: 1px solid rgba(229, 231, 235, 0.5);
        }
        
        .share-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 25px;
            text-align: center;
            background: linear-gradient(135deg, #1f2937, #374151);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        
        .share-buttons {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }
        
        .share-btn {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            border: 2px solid rgba(229, 231, 235, 0.5);
            border-radius: 15px;
            padding: 18px;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            font-weight: 600;
            color: #374151;
            position: relative;
            overflow: hidden;
        }
        
        .share-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
            transition: left 0.5s;
        }
        
        .share-btn:hover::before {
            left: 100%;
        }
        
        .share-btn:hover {
            border-color: #667eea;
            background: rgba(240, 244, 255, 0.9);
            transform: translateY(-1px) scale(1.008);
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
        }
        
        .share-btn.whatsapp:hover {
            border-color: #25d366;
            background: #dcf8c6;
        }
        
        .share-btn.instagram:hover {
            border-color: #e4405f;
            background: #fce4ec;
        }
        
        .share-btn.twitter:hover {
            border-color: #1da1f2;
            background: #e3f2fd;
        }
        
        .share-btn.facebook:hover {
            border-color: #1877f2;
            background: #e3f2fd;
        }
        
        .restart-btn {
            background: #6b7280;
            color: white;
            border: none;
            border-radius: 12px;
            padding: 15px 30px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 100%;
        }
        
        .restart-btn:hover {
            background: #4b5563;
            transform: translateY(-1px);
        }
        
        .personality-tech {
            color: #3b82f6;
        }
        
        .personality-social {
            color: #ec4899;
        }
        
        .personality-creative {
            color: #8b5cf6;
        }
        
        .personality-practical {
            color: #059669;
        }
        
        @media (max-width: 1024px) {
            .gifts {
                grid-template-columns: repeat(2, 1fr);
                gap: 20px;
            }
        }
        
        @media (max-width: 768px) {
            .container {
                padding: 15px;
            }
            
            .logo {
                max-width: 150px;
                padding: 12px;
            }
            
            
            .stats {
                gap: 20px;
                font-size: 0.9rem;
            }
            
            .stat {
                padding: 15px 20px;
            }
            
            .stat-number {
                font-size: 1.8rem;
                -webkit-text-fill-color: #000 !important;
            }
            
            .action-buttons {
                flex-direction: column;
                gap: 15px;
            }
            
            .action-btn {
                min-width: auto;
                width: 100%;
                padding: 16px 25px;
            }
            
            .card {
                padding: 25px;
            }
            
            .question h2 {
                font-size: 1.5rem;
            }
            
            .option {
                padding: 20px;
                gap: 15px;
            }
            
            .gifts {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            #historyList {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .history-item {
                min-height: auto;
                padding: 25px;
            }
            
            .history-actions {
                flex-direction: row;
                gap: 10px;
            }
            
            .history-btn {
                padding: 10px 15px;
                font-size: 0.9rem;
            }
            
            .history-icon {
                font-size: 3rem;
            }
            
            .history-title {
                font-size: 1.4rem;
            }
            
            .history-description {
                font-size: 1rem;
                padding: 12px 15px;
            }
            
            .option-emoji {
                font-size: 2rem;
            }
            
            .option-text {
                font-size: 1rem;
            }
            
            .result-title {
                font-size: 2rem;
            }
            
            .result-description {
                font-size: 1.1rem;
            }
            
            .share-buttons {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            
            .gift-image {
                height: 180px;
                font-size: 3rem;
            }
            
            .gift-title {
                font-size: 1.2rem;
            }
            
            .gift-price {
                font-size: 1.3rem;
            }
        }
        
        @media (max-width: 480px) {
            .logo {
                max-width: 120px;
                padding: 10px;
            }
            
            
            .header p {
                font-size: 1rem;
                color: white !important;
                text-shadow: 1px 1px 2px rgba(0,0,0,0.3) !important;
            }
            
            .stats {
                gap: 15px;
                font-size: 0.8rem;
            }
            
            .stat {
                padding: 12px 15px;
                background: rgba(255,255,255,0.95) !important;
                color: #333 !important;
            }
            
            .stat-number {
                font-size: 1.5rem;
                color: #333 !important;
            }
            
            .card {
                padding: 20px;
            }
            
            .question h2 {
                font-size: 1.3rem;
            }
            
            .option {
                padding: 15px;
                gap: 12px;
            }
            
            .option-emoji {
                font-size: 1.8rem;
            }
            
            .option-text {
                font-size: 0.95rem;
            }
            
            .result-title {
                font-size: 1.8rem;
            }
            
            .result-description {
                font-size: 1rem;
            }
            
            .gift-image {
                height: 160px;
                font-size: 2.5rem;
            }
            
            .gift-title {
                font-size: 1.1rem;
            }
            
            .gift-description {
                font-size: 0.9rem;
            }
            
            .gift-price {
                font-size: 1.2rem;
            }
            
            .history-item {
                flex-direction: column;
                text-align: center;
                gap: 20px;
                padding: 20px;
            }
            
            .history-actions {
                justify-content: center;
                flex-direction: row;
                min-width: auto;
                width: 100%;
            }
            
            .history-btn {
                flex: 1;
                min-width: 0;
            }
            
            .history-icon {
                font-size: 2.5rem;
                min-width: 60px;
            }
            
            .history-header h2 {
                font-size: 1.7rem;
            }
        }
        
        .loading {
            display: none;
            text-align: center;
            padding: 40px;
        }
        
        .loading.active {
            display: block;
        }
        
        .spinner {
            width: 50px;
            height: 50px;
            border: 4px solid #e5e7eb;
            border-top: 4px solid #667eea;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .counter {
            animation: countUp 2s ease-out;
        }
        
        @keyframes countUp {
            from { opacity: 0; transform: scale(0.8); }
            to { opacity: 1; transform: scale(1); }
        }
        
        .history {
            display: none;
        }
        
        .history.active {
            display: block;
        }
        
        .history-header {
            text-align: center;
            margin-bottom: 30px;
            color: white;
        }
        
        .history-header h2 {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 10px;
            text-shadow: 0 1px 2px rgba(0,0,0,0.2);
        }
        
        #historyList {
            display: grid !important;
            grid-template-columns: repeat(4, 1fr) !important;
            gap: 25px !important;
            margin-top: 20px;
            width: 100% !important;
            max-width: none !important;
        }
        
        @media (max-width: 1400px) {
            #historyList {
                grid-template-columns: repeat(3, 1fr) !important;
                gap: 20px !important;
            }
        }
        
        @media (max-width: 1000px) {
            #historyList {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 20px !important;
            }
        }
        
        @media (max-width: 600px) {
            #historyList {
                grid-template-columns: 1fr !important;
                gap: 15px !important;
            }
        }
        
        .history-item {
            background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
            border-radius: 20px;
            padding: 20px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.08);
            border: 1px solid rgba(255,255,255,0.2);
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            text-align: center !important;
            gap: 15px !important;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            min-height: 280px !important;
            width: 100% !important;
            margin: 0 !important;
        }
        
        .history-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
            border-radius: 20px 20px 0 0;
        }
        
        .history-item:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: 0 20px 40px rgba(0,0,0,0.12);
            background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
        }
        
        .history-icon {
            font-size: 2.5rem;
            text-align: center;
            background: linear-gradient(135deg, #667eea, #764ba2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
            margin-bottom: 10px;
        }
        
        .history-content {
            flex: 1;
            padding: 0;
            width: 100%;
        }
        
        .history-title {
            font-size: 1.2rem;
            font-weight: 700;
            margin-bottom: 8px;
            color: #1f2937;
            background: linear-gradient(135deg, #1f2937, #374151);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .history-date {
            font-size: 0.8rem;
            color: #6b7280;
            margin-bottom: 10px;
            font-weight: 500;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
        }
        
        .history-date::before {
            content: '📅';
            font-size: 0.7rem;
        }
        
        .history-description {
            font-size: 0.9rem;
            color: #4b5563;
            line-height: 1.4;
            background: rgba(102, 126, 234, 0.05);
            padding: 10px 12px;
            border-radius: 8px;
            border-left: 3px solid #667eea;
            margin-bottom: 15px;
        }
        
        .history-actions {
            display: flex;
            justify-content: center;
            width: 100%;
        }
        
        .history-btn {
            border: none;
            border-radius: 10px;
            padding: 8px 12px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-size: 0.8rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            position: relative;
            overflow: hidden;
            flex: 1;
        }
        
        .history-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s;
        }
        
        .history-btn:hover::before {
            left: 100%;
        }
        
        .history-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.15);
        }
        
        .history-btn.delete {
            background: linear-gradient(135deg, #ef4444, #dc2626);
            color: white;
            box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
        }
        
        .history-btn.delete:hover {
            background: linear-gradient(135deg, #dc2626, #b91c1c);
            box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
        }
        
        .history-btn.view {
            background: linear-gradient(135deg, #3b82f6, #2563eb);
            color: white;
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
        }
        
        .history-btn.view:hover {
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
            box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
        }
        
        .empty-history {
            text-align: center;
            color: white;
            padding: 40px 20px;
        }
        
        .empty-history i {
            font-size: 4rem;
            margin-bottom: 20px;
            opacity: 0.7;
        }
        
        .empty-history h3 {
            font-size: 1.5rem;
            margin-bottom: 10px;
        }
        
        .empty-history p {
            font-size: 1rem;
            opacity: 0.8;
        }
        
        .history-nav {
            display: flex;
            align-items: center;
            gap: 20px;
            margin-bottom: 30px;
            flex-wrap: wrap;
        }
        
        .back-btn {
            background: rgba(255,255,255,0.2);
            color: white;
            border: 2px solid rgba(255,255,255,0.3);
            border-radius: 12px;
            padding: 12px 20px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            white-space: nowrap;
        }
        
        .back-btn:hover {
            background: rgba(255,255,255,0.3);
            border-color: rgba(255,255,255,0.5);
            transform: translateY(-2px);
        }
        
        .history-title h2 {
            margin: 0;
            color: white;
            font-size: 1.8rem;
        }
        
        .history-title p {
            margin: 5px 0 0 0;
            color: rgba(255,255,255,0.8);
            font-size: 1rem;
        }
        
        /* Mobile responsive for history nav */
        @media (max-width: 768px) {
            .history-nav {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
            }
            
            .back-btn {
                align-self: flex-start;
            }
            
            .history-title h2 {
                font-size: 1.5rem;
                color: white !important;
                text-shadow: 1px 1px 2px rgba(0,0,0,0.3) !important;
            }
            
            .history-title p {
                font-size: 0.9rem;
                color: rgba(255,255,255,0.9) !important;
                text-shadow: 0.5px 0.5px 1px rgba(0,0,0,0.3) !important;
            }
            
            /* Fix text visibility on mobile */
            .header p {
                color: white !important;
                text-shadow: 1px 1px 2px rgba(0,0,0,0.3) !important;
            }
            
            .stat {
                background: rgba(255,255,255,0.95) !important;
                color: #333 !important;
            }
            
            .stat-number {
                color: #333 !important;
            }
            
            .action-btn {
                background: rgba(255,255,255,0.95) !important;
                color: #333 !important;
            }
            
            .question h2 {
                color: white !important;
                text-shadow: 1px 1px 2px rgba(0,0,0,0.3) !important;
            }
            
            .option {
                background: rgba(255,255,255,0.95) !important;
                color: #333 !important;
            }
            
            .option-text {
                color: #333 !important;
            }
            
            .result-title {
                color: white !important;
                text-shadow: 1px 1px 2px rgba(0,0,0,0.3) !important;
            }
            
            .result-description {
                
            }
        }
        
        .confetti {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1000;
        }
        
        .confetti-piece {
            position: absolute;
            width: 10px;
            height: 10px;
            background: #f39c12;
            animation: confetti-fall 3s linear infinite;
        }
        
        @keyframes confetti-fall {
            0% {
                transform: translateY(-100vh) rotate(0deg);
                opacity: 1;
            }
            100% {
                transform: translateY(100vh) rotate(720deg);
                opacity: 0;
            }
        }
        
        .invite-section {
            background: linear-gradient(135deg, #667eea, #764ba2);
            border-radius: 15px;
            padding: 25px;
            margin: 20px 0;
            text-align: center;
            color: white;
        }
        
        .invite-title {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 15px;
        }
        
        .invite-text {
            font-size: 1rem;
            margin-bottom: 20px;
            opacity: 0.9;
        }
        
        .invite-btn {
            background: white;
            color: #667eea;
            border: none;
            border-radius: 12px;
            padding: 15px 25px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 10px;
        }
        
        .invite-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }
        
        .stats-section {
            background: #f8fafc;
            border-radius: 15px;
            padding: 20px;
            margin: 20px 0;
            text-align: center;
        }
        
        .stats-title {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 15px;
            color: #1f2937;
        }
        
        .stats-text {
            font-size: 1rem;
            color: #6b7280;
            margin-bottom: 10px;
        }
        
        .retry-section {
            background: #f0f9ff;
            border: 2px solid #0ea5e9;
            border-radius: 15px;
            padding: 20px;
            margin: 20px 0;
            text-align: center;
        }
        
        .retry-title {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 10px;
            color: #0c4a6e;
        }
        
        .retry-text {
            font-size: 1rem;
            color: #0369a1;
            margin-bottom: 15px;
        }
        
        /* New SEO Pages Styles */
        .categories-grid, .personalities-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
            margin: 30px 0;
        }
        
        .category, .personality {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            padding: 25px;
            text-align: center;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .category:hover, .personality:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
        }
        
        .category-icon, .personality-icon {
            font-size: 3rem;
            margin-bottom: 15px;
            display: block;
        }
        
        .category h3, .personality h3 {
            color: #667eea;
            font-size: 1.4rem;
            margin-bottom: 10px;
            font-weight: 600;
        }
        
        .category p, .personality-description {
            color: #666;
            margin-bottom: 20px;
            line-height: 1.6;
        }
        
        .personality-traits, .personality-gifts {
            text-align: left;
            margin: 15px 0;
        }
        
        .personality-traits h4, .personality-gifts h4 {
            color: #667eea;
            font-size: 1rem;
            margin-bottom: 8px;
            font-weight: 600;
        }
        
        .personality-traits ul, .personality-gifts ul {
            list-style: none;
            padding: 0;
        }
        
        .personality-traits li, .personality-gifts li {
            padding: 5px 0;
            color: #555;
            position: relative;
            padding-left: 20px;
        }
        
        .personality-traits li::before, .personality-gifts li::before {
            content: "✓";
            position: absolute;
            left: 0;
            color: #667eea;
            font-weight: bold;
        }
        
        .gift-suggestions {
            background: rgba(102, 126, 234, 0.1);
            border-radius: 10px;
            padding: 20px;
            margin: 20px 0;
        }
        
        .gift-suggestions h3 {
            color: #667eea;
            margin-bottom: 15px;
            font-size: 1.2rem;
        }
        
        .gift-suggestions ul {
            list-style: none;
            padding: 0;
        }
        
        .gift-suggestions li {
            padding: 8px 0;
            color: #555;
            position: relative;
            padding-left: 25px;
        }
        
        .gift-suggestions li::before {
            content: "🎁";
            position: absolute;
            left: 0;
        }
        
        .result-icon {
            font-size: 4rem;
            margin-bottom: 20px;
            display: block;
        }
        
        .result h2 {
            color: #667eea;
            font-size: 2rem;
            margin-bottom: 15px;
            font-weight: 600;
        }
        
        .result-description {
            color: #666;
            font-size: 1.1rem;
            line-height: 1.6;
            margin-bottom: 30px;
        }
        
        /* Additional SEO Pages Styles */
        .about-content, .privacy-content, .terms-content {
            text-align: left;
            line-height: 1.6;
        }
        
        .about-section, .privacy-section, .terms-section {
            margin: 25px 0;
            padding: 20px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            border-left: 4px solid #667eea;
        }
        
        .about-section h3, .privacy-section h3, .terms-section h3 {
            color: #667eea;
            font-size: 1.3rem;
            margin-bottom: 15px;
            font-weight: 600;
        }
        
        .about-section p, .privacy-section p, .terms-section p {
            color: #555;
            margin-bottom: 15px;
        }
        
        .about-section ul, .privacy-section ul, .terms-section ul {
            margin: 15px 0;
            padding-left: 20px;
        }
        
        .about-section li, .privacy-section li, .terms-section li {
            margin: 8px 0;
            color: #555;
        }
        
        .last-updated {
            color: #888;
            font-style: italic;
            margin-bottom: 30px;
            text-align: center;
        }
        
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 20px;
            margin: 20px 0;
        }
        
        .stat-item {
            text-align: center;
            padding: 20px;
            background: rgba(102, 126, 234, 0.1);
            border-radius: 10px;
        }
        
        .stat-number {
            font-size: 2rem;
            font-weight: 700;
            display: block;
        }
        
        .stat-label {
            font-size: 0.9rem;
            color: #666;
            margin-top: 5px;
        }
        
        /* Responsive Design for SEO Pages */
        @media (max-width: 768px) {
            .categories-grid, .personalities-grid {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            
            .category, .personality {
                padding: 20px;
            }
            
            .result h2 {
                font-size: 1.6rem;
            }
            
            .result-icon {
                font-size: 3rem;
            }
            
            .category-icon, .personality-icon {
                font-size: 2.5rem;
            }
            
            .about-section, .privacy-section, .terms-section {
                padding: 15px;
                margin: 20px 0;
            }
            
            .stats-grid {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            
            header h1 {
                font-size: 2rem;
            }
            
            header p {
                font-size: 1rem;
            }
            
            .logo {
                max-width: 150px;
                padding: 10px;
            }
        }
        
        /* Ultimate mobile background fix */
        @media (max-width: 768px) {
            /* Remove aggressive background override */
            
            html {
                background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%) !important;
                background-attachment: scroll !important;
                background-size: cover !important;
                background-repeat: no-repeat !important;
                background-position: center center !important;
                min-height: 100vh !important;
            }
            
            body {
                background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%) !important;
                background-attachment: scroll !important;
                background-size: cover !important;
                background-repeat: no-repeat !important;
                background-position: center center !important;
                min-height: 100vh !important;
            }
            
            .container {
                background: transparent !important;
            }
            
            .quiz-card, .result-card, .history-card {
                background: rgba(255, 255, 255, 0.95) !important;
                backdrop-filter: blur(10px) !important;
            }
        }

        /* Ad Soyad Formu Stilleri */
        .name-form {
            text-align: center;
            padding: 2rem;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            margin-bottom: 2rem;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .form-header h2 {
            color: #333;
            margin-bottom: 0.5rem;
            font-size: 1.5rem;
            font-weight: 600;
        }

        .form-header p {
            color: #666;
            margin-bottom: 1.5rem;
            font-size: 0.9rem;
        }

        .form-group {
            display: flex;
            gap: 1rem;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
            justify-content: center;
        }

        .form-input {
            flex: 1;
            min-width: 200px;
            padding: 0.75rem 1rem;
            border: 2px solid #e1e5e9;
            border-radius: 12px;
            font-size: 1rem;
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.9);
        }

        .form-input:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
            background: rgba(255, 255, 255, 1);
        }

        .form-input::placeholder {
            color: #999;
        }

        .form-actions {
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
        }

        .form-actions .action-btn {
            min-width: 120px;
        }

        /* Mobile responsive */
        @media (max-width: 768px) {
            .form-group {
                flex-direction: column;
                align-items: center;
            }

            .form-input {
                min-width: 100%;
                max-width: 300px;
            }

            .form-actions {
                flex-direction: column;
                align-items: center;
            }

            .form-actions .action-btn {
                width: 100%;
                max-width: 200px;
            }
        }
    