:root {
            --primary-color: #3B82F6; 
            --primary-dark: #2563EB;
            --success-color: #10B981;
            --error-color: #EF4444;
            --warning-color: #F59E0B;
            --surface-color: rgba(255, 255, 255, 0.35); /* More transparent Glass Surface */
            --background-color: #F3F4F6;
            --text-primary: #1F2937;
            --text-secondary: #4B5563;
            --border-color: rgba(255, 255, 255, 0.6); /* Glass Border */
            --shadow-md: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
            --border-radius-md: 16px;
            --border-radius-lg: 24px;
        }

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

        body {
            font-family: 'Poppins', sans-serif;
            background-color: var(--background-color);
            color: var(--text-primary);
            line-height: 1.7;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            overflow-x: hidden;
            background: #EFF3F8;
            position: relative;
        }
        
        /* --- LIQUID GLASS EFFECT START --- */
        .background-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            overflow: hidden;
        }
        
        .blob {
            position: absolute;
            border-radius: 50%;
            filter: blur(120px);
            opacity: 0.6;
            will-change: transform;
        }
        .blob1 {
            width: 450px; height: 450px; background: #A78BFA;
            top: -150px; left: -200px;
            animation: moveBlob1 25s infinite alternate ease-in-out;
        }
        .blob2 {
            width: 500px; height: 500px; background: #60A5FA;
            bottom: -200px; right: -250px;
            animation: moveBlob2 30s infinite alternate ease-in-out;
        }
         .blob3 {
            width: 400px; height: 400px; background: #50E3C2;
            bottom: 50%; right: 50%;
            transform: translate(50%, 50%);
            animation: moveBlob3 20s infinite alternate ease-in-out;
        }

        @keyframes moveBlob1 {
            from { transform: translate(0, 0) scale(1); }
            to { transform: translate(100px, 50px) scale(1.1); }
        }
        @keyframes moveBlob2 {
            from { transform: translate(0, 0) scale(1); }
            to { transform: translate(-80px, -60px) scale(1.2); }
        }
        @keyframes moveBlob3 {
            from { transform: translate(50%, 50%) scale(1); }
            to { transform: translate(calc(50% + 50px), calc(50% - 50px)) scale(0.9); }
        }
        /* --- LIQUID GLASS EFFECT END --- */

        /* Header */
        header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background: rgba(255, 255, 255, 0.4); 
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border-bottom: 1px solid var(--border-color);
            z-index: 1000;
            padding: 1rem 0;
        }

        .header-container {
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--text-primary);
            text-decoration: none;
        }

        .cta-button {
            background-color: var(--primary-color);
            color: white;
            border: none;
            padding: 0.6rem 1.2rem;
            border-radius: 50px;
            font-weight: 500;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.2s ease;
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
        }

        .cta-button:hover {
            background-color: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
        }

        /* Main Content */
        main {
            max-width: 720px;
            margin: 0 auto;
            padding: 6rem 1.5rem 3rem; 
        }

        .hero-section {
            text-align: center;
            margin-bottom: 2.5rem;
        }
        
        .hero-title {
            font-size: 3rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            color: var(--text-primary);
            text-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .hero-subtitle {
            font-size: 1.1rem;
            color: var(--text-secondary);
        }

        /* Input Selector */
        .input-selector {
            display: flex;
            justify-content: center;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50px;
            padding: 0.3rem;
            margin-bottom: 2rem;
            border: 1px solid var(--border-color);
        }

        .selector-btn {
            padding: 0.5rem 1.25rem;
            border: none;
            background: transparent;
            color: var(--text-secondary);
            border-radius: 50px;
            font-weight: 500;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.3s ease-in-out;
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }
        
        .selector-btn.active {
            background: white;
            color: var(--primary-color);
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        /* Input Areas */
        .input-container {
            background: var(--surface-color);
            border-radius: var(--border-radius-lg);
            padding: 2rem;
            box-shadow: var(--shadow-md);
            margin-bottom: 2rem;
            border: 1px solid var(--border-color);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .input-container:hover {
             transform: translateY(-5px) perspective(1000px) rotateX(1deg) rotateY(-2deg);
             box-shadow: 0 16px 40px rgba(31, 38, 135, 0.15);
        }

        .input-area { display: none; }
        .input-area.active { display: block; }

        textarea {
            width: 100%;
            min-height: 140px;
            border: 1px solid rgba(255,255,255,0.3);
            border-radius: var(--border-radius-md);
            padding: 1rem;
            font-family: inherit;
            font-size: 1rem;
            resize: vertical;
            transition: all 0.2s ease;
            background-color: rgba(255, 255, 255, 0.4);
            color: var(--text-primary);
        }

        textarea::placeholder { color: #6B7280; }

        textarea:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
            background-color: rgba(255, 255, 255, 0.6);
        }

        .file-upload-area {
            border: 2px dashed rgba(255,255,255,0.5);
            border-radius: var(--border-radius-md);
            padding: 2.5rem;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .file-upload-area:hover, .file-upload-area.dragover {
            border-color: var(--primary-color);
            background-color: rgba(255, 255, 255, 0.2);
        }
        
        .upload-icon {
            font-size: 3rem;
            color: var(--primary-color);
            margin-bottom: 1rem;
        }

        .upload-text {
            font-size: 1rem;
            color: var(--text-primary);
            font-weight: 500;
            margin-bottom: 0.25rem;
        }

        .upload-subtext {
            font-size: 0.85rem;
            color: var(--text-secondary);
        }

        .file-input { display: none; }

        /* Action Button */
        .action-button {
            width: 100%;
            background: var(--success-color);
            color: white;
            border: none;
            padding: 0.9rem 2rem;
            font-size: 1.05rem;
            font-weight: 600;
            letter-spacing: 0.5px;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .action-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
        }
        
        .action-button .material-symbols-outlined { font-size: 1.5rem; }

        .action-button:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .spinner {
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255,255,255,0.3);
            border-top-color: #ffffff;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

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

        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 2000;
            animation: fadeIn 0.3s ease-out;
        }

        .modal.show {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
        }

        .modal-content {
            background: rgba(255, 255, 255, 0.85); /* Increased opacity for readability */
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border-radius: var(--border-radius-lg);
            padding: 1.5rem;
            max-width: 500px;
            max-height: 85vh;  
            width: 100%;
            box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
            border: 1px solid rgba(255,255,255,0.8);
            transform: scale(0.95);
            animation: modalSlideIn 0.3s ease-out forwards;
            position: relative;
            max-height: 85vh;
            overflow-y: auto;
            padding-bottom: 20px;
        }

        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
        @keyframes modalSlideIn { to { opacity: 1; transform: scale(1); } }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }

        .modal-title {
            font-size: 1.25rem;
            font-weight: 600;
        }
        
        .close-button {
            background: none;
            border: none;
            font-size: 1.75rem;
            cursor: pointer;
            color: var(--text-secondary);
            transition: color 0.2s ease;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .close-button:hover { color: var(--text-primary); }
        
        .verdict {
            font-size: 1.1rem;
            font-weight: 600;
            padding: 0.6rem 1rem;
            border-radius: var(--border-radius-md);
            margin-bottom: 1rem;
            text-align: center;
            border: 1px solid transparent;
        }
        .verdict.safe { background-color: rgba(16, 185, 129, 0.1); color: #047857; border-color: rgba(16, 185, 129, 0.2); }
        .verdict.scam { background-color: rgba(239, 68, 68, 0.1); color: #B91C1C; border-color: rgba(239, 68, 68, 0.2); }
        .verdict.warning { background-color: rgba(245, 158, 11, 0.1); color: #B45309; border-color: rgba(245, 158, 11, 0.2); }
        .verdict.error { background-color: #F3F4F6; color: #4B5563; }

        .confidence-level {
            font-size: 0.9rem;
            text-align: center;
            color: var(--text-secondary);
            margin-bottom: 1.5rem;
        }

        .explanation {
            flex: 1;
            min-height: 0; 
            overflow-y: auto;
            background: rgba(243, 244, 246, 0.8); /* Increased opacity for readability */
            padding: 1rem;
            border-radius: var(--border-radius-md);
            margin-bottom: 1.5rem;
            border: 1px solid rgba(255,255,255,0.4);
            font-size: 0.95rem;
        }
        .result-explanation {
            flex: 1;
            min-height: 0;
            overflow-y: auto;
        }
        
        .reference-urls h4 {
            font-weight: 600;
            margin-bottom: 0.5rem;
        }
        .reference-urls ul {
            list-style-position: inside;
            padding-left: 0.5rem;
            font-size: 0.9rem;
        }
        .reference-urls li {
            margin-bottom: 0.5rem; /* Added space between links */
        }
        .reference-urls a {
            color: var(--primary-color);
            text-decoration: none;
            word-break: break-all;
        }
        .reference-urls a:hover { text-decoration: underline; }
        
        .report-button {
            width: 100%;
            background-color: transparent;
            color: var(--text-secondary);
            border: 1px solid rgba(0,0,0,0.1);
            padding: 0.75rem;
            border-radius: var(--border-radius-md);
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            margin-top: 1rem;
        }

        .report-button:hover {
            color: var(--error-color);
            border-color: rgba(239, 68, 68, 0.3);
            background-color: rgba(239, 68, 68, 0.05);
        }
        /* ---- Refined Custom Scrollbar for the Modal ---- */

/* Works on Chrome, Edge, and Safari */
.modal-content::-webkit-scrollbar {
  width: 8px; /* Slimmer scrollbar */
}

.modal-content::-webkit-scrollbar-track {
  background: transparent; /* Makes the track invisible */
}

.modal-content::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3); /* A semi-transparent, softer color */
  border-radius: 20px; /* Fully rounded edges */
  /* Creates a "padding" effect inside the thumb */
  border: 2px solid transparent;
  background-clip: content-box;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.5); /* Becomes more solid on hover */
}

/* Works on Firefox */
.modal-content {
  scrollbar-width: thin;
  scrollbar-color: #a9a9a9 transparent; /* thumb color track color */
}

        /* Footer */
        footer {
            padding: 2rem 0;
            margin-top: 3rem;
            text-align: center;
            background: transparent;
        }
        
        .footer-credit { color: var(--text-secondary); font-size: 0.9rem; }
        .footer-credit a { color: var(--primary-color); text-decoration: none; }
        .footer-credit a:hover { text-decoration: underline; }

        .social-links { display: flex; gap: 1.5rem; justify-content: center; margin-top: 1rem;}
        .social-link { color: var(--text-secondary); font-size: 1.3rem; transition: color 0.2s ease; }
        .social-link:hover { color: var(--primary-color); }

        /* Responsive */
        @media (max-width: 768px) {
            .hero-title { font-size: 2.25rem; }
            main { padding-top: 5.5rem; }
            .modal.show { align-items: flex-end; }
            .modal-content {
                margin-bottom: 0;
                border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
                animation: modalSlideUp 0.3s ease-out forwards;
            }
            @keyframes modalSlideUp { 
                from { transform: translateY(100%); }
                to { transform: translateY(0); }
            }
        }