/* =================================================== FraudLens — Exact replica stylesheet Matches: fraudlens-2o2ev52.public.builtwithrocket.new =================================================== */ :root { /* Colors */ --background: #0a0a0f; --card: #111118; --card-elevated: #14141e; --border: #1f1f33; --foreground: #f4f4f7; --muted: #161625; --muted-foreground: #8a8a9e; /* Semantic colors */ --fraud-red: #ef4444; --fraud-red-muted: rgba(239, 68, 68, 0.1); --fraud-red-border: rgba(239, 68, 68, 0.25); --legit-green: #22c55e; --legit-green-muted: rgba(34, 197, 94, 0.1); --legit-green-border: rgba(34, 197, 94, 0.25); --warn-amber: #f59e0b; --warn-amber-muted: rgba(245, 158, 11, 0.1); --warn-amber-border: rgba(245, 158, 11, 0.25); --chart-tertiary: #7c3aed; --primary-foreground: #ffffff; /* Typography */ --font-sans: 'Inter', system-ui, sans-serif; --font-heading: 'Outfit', 'Inter', sans-serif; --font-mono: 'JetBrains Mono', 'Fira Code', monospace; /* Radii */ --radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px; --radius-xl: 16px; } /* ===== RESET ===== */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html { scroll-behavior: smooth; } body { font-family: var(--font-sans); background-color: var(--background); color: var(--foreground); line-height: 1.5; overflow-x: hidden; font-size: 14px; } a { text-decoration: none; color: inherit; } button { font-family: inherit; cursor: pointer; } input, select, textarea { font-family: inherit; } svg { display: block; } /* ===== GRID BACKGROUND ===== */ .min-h-screen { min-height: 100vh; } .grid-scan-line { background-image: linear-gradient(rgba(31, 31, 51, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 31, 51, 0.12) 1px, transparent 1px); background-size: 32px 32px; position: relative; } /* ===== HEADER ===== */ .sticky-header { position: sticky; top: 0; z-index: 50; width: 100%; background: rgba(10, 10, 15, 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); } .header-inner { width: 100%; max-width: 1536px; margin: 0 auto; padding: 0 24px; } .header-content { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; } /* Logo */ .logo-link { display: flex; align-items: center; gap: 12px; flex-shrink: 0; } .logo-icon-box { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--radius-md); background: var(--fraud-red-muted); border: 1px solid var(--fraud-red-border); flex-shrink: 0; } .logo-text-group { display: flex; align-items: center; gap: 8px; } .logo-img { object-fit: contain; flex-shrink: 0; } .logo-name { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; display: none; } @media (min-width: 640px) { .logo-name { display: block; } } .version-tag { display: none; align-items: center; padding: 2px 8px; border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 10px; font-weight: 500; background: var(--fraud-red-muted); color: var(--fraud-red); border: 1px solid var(--fraud-red-border); } @media (min-width: 768px) { .version-tag { display: inline-flex; } } /* Nav */ .nav-desktop { display: none; align-items: center; gap: 4px; } @media (min-width: 768px) { .nav-desktop { display: flex; } } .nav-link { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: var(--radius-md); font-size: 14px; font-weight: 500; color: var(--muted-foreground); border: 1px solid transparent; transition: all 0.15s ease; white-space: nowrap; } .nav-link:hover { color: var(--foreground); background: rgba(255,255,255,0.04); } .nav-link.active { background: var(--fraud-red-muted); color: var(--fraud-red); border-color: var(--fraud-red-border); } /* Header Right */ .header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; } .status-badge { display: none; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--radius-md); background: var(--legit-green-muted); border: 1px solid var(--legit-green-border); color: var(--legit-green); font-family: var(--font-mono); font-size: 12px; } @media (min-width: 640px) { .status-badge { display: flex; } } .pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--legit-green); animation: pulse-slow 2s ease-in-out infinite; } @keyframes pulse-slow { 0%, 100% { transform: scale(0.9); opacity: 0.6; } 50% { transform: scale(1.2); opacity: 1; } } .mobile-menu-btn { display: flex; align-items: center; justify-content: center; padding: 8px; border-radius: var(--radius-md); background: transparent; border: none; color: var(--muted-foreground); transition: color 0.2s; } .mobile-menu-btn:hover { color: var(--foreground); } @media (min-width: 768px) { .mobile-menu-btn { display: none; } } /* Mobile Nav Dropdown */ .nav-mobile { border-top: 1px solid var(--border); background: var(--card); } .mobile-nav-inner { padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; } .mobile-nav-link { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: var(--radius-md); color: var(--foreground); transition: background 0.2s; } .mobile-nav-link:hover { background: var(--muted); } .mobile-nav-link.active { background: var(--fraud-red-muted); color: var(--fraud-red); } .mobile-nav-left { display: flex; align-items: center; gap: 12px; } .mobile-nav-label { font-size: 14px; font-weight: 500; } .mobile-nav-desc { font-size: 12px; color: var(--muted-foreground); } /* ===== MAIN ===== */ .main-content { width: 100%; max-width: 1536px; margin: 0 auto; padding: 32px 24px; } /* ===== SCREENS ===== */ .screen { width: 100%; } .hidden { display: none !important; } /* ===== TYPOGRAPHY HELPERS ===== */ .section-label { display: inline-block; font-family: var(--font-heading); text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--fraud-red); } .page-title { font-family: var(--font-heading); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--foreground); margin-top: 4px; } .page-subtitle { font-size: 14px; color: var(--muted-foreground); margin-top: 4px; } .text-xs { font-size: 12px; } .text-sm { font-size: 14px; } .text-xl { font-size: 20px; font-weight: 600; font-family: var(--font-heading); } .font-mono { font-family: var(--font-mono); } .font-mono-nums { font-family: var(--font-mono); font-variant-numeric: tabular-nums; } .font-semibold { font-weight: 600; } .font-bold { font-weight: 700; } .font-medium { font-weight: 500; } .tracking-wider { letter-spacing: 0.05em; } .tracking-widest { letter-spacing: 0.1em; } .mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-5 { margin-bottom: 20px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; } .mt-1 { margin-top: 4px; } .mt-6 { margin-top: 24px; } .p-4 { padding: 16px; } .p-5 { padding: 20px; } /* ===== PAGE HEADER ===== */ .page-header-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } .page-header-body { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; } .page-header-title-group { flex: 1; min-width: 200px; } /* Alert Badge */ .alert-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-family: var(--font-mono); font-weight: 500; padding: 2px 8px; border-radius: var(--radius-sm); } .warning-badge { background: var(--warn-amber-muted); border: 1px solid var(--warn-amber-border); color: var(--warn-amber); } /* Info Card */ .info-card { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-radius: var(--radius-lg); background: var(--muted); border: 1px solid var(--border); max-width: 400px; flex-shrink: 0; } .info-card p { color: var(--muted-foreground); font-size: 11px; line-height: 1.6; } /* Divider */ .header-divider { height: 1px; width: 100%; background: linear-gradient(90deg, var(--fraud-red) 0%, var(--border) 40%, transparent 100%); } /* ===== CARD ===== */ .card-elevated { background: var(--card-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4); } /* ===== FORM GRID ===== */ .form-grid { display: grid; grid-template-columns: 1fr; gap: 24px; } @media (min-width: 1024px) { .form-grid { grid-template-columns: 1fr 1fr 1fr; } .inputs-column { grid-column: span 2; } } .inputs-column { display: flex; flex-direction: column; gap: 24px; } .sidebar-column { display: flex; flex-direction: column; gap: 16px; } /* ===== COLLAPSIBLE CARD ===== */ .collapsible-card { overflow: hidden; } .collapsible-header { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: transparent; border: none; color: inherit; cursor: pointer; transition: background 0.2s ease; border-radius: var(--radius-lg); } .collapsible-header:hover { background: rgba(255, 255, 255, 0.02); } .collapsible-header-left { display: flex; align-items: center; gap: 12px; } .header-icon-box { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--radius-md); background: var(--muted); border: 1px solid var(--border); flex-shrink: 0; } .card-title { font-size: 14px; font-weight: 600; text-align: left; color: var(--foreground); } .card-subtitle { font-size: 12px; color: var(--muted-foreground); text-align: left; margin-top: 2px; } .chevron-icon { color: var(--muted-foreground); transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1); flex-shrink: 0; } .collapsible-card.active .chevron-icon { transform: rotate(180deg); } .collapsible-content { max-height: 0; overflow: hidden; transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.25s ease; padding: 0 20px; } .collapsible-card.active .collapsible-content { max-height: 2000px; padding-bottom: 24px; border-top: 1px solid var(--border); } .inputs-grid { display: grid; grid-template-columns: 1fr; gap: 16px; padding-top: 20px; } @media (min-width: 640px) { .inputs-grid { grid-template-columns: 1fr 1fr; } } /* ===== FORM INPUTS ===== */ .input-wrapper { display: flex; flex-direction: column; gap: 5px; } .input-wrapper label { font-size: 12px; font-weight: 500; color: var(--foreground); } .required { color: var(--fraud-red); } .input-helper { font-size: 11px; color: var(--muted-foreground); line-height: 1.4; } .input-error { font-size: 11px; color: var(--fraud-red); } .input-container { position: relative; display: flex; align-items: center; width: 100%; } .input-field { width: 100%; background: rgba(10, 10, 20, 0.6); border: 1px solid var(--border); color: var(--foreground); padding: 10px 14px; border-radius: var(--radius-md); font-size: 14px; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; outline: none; -webkit-appearance: none; } .prefix-container .input-field { padding-left: 28px; } .input-prefix { position: absolute; left: 12px; font-size: 14px; font-family: var(--font-mono); color: var(--muted-foreground); pointer-events: none; z-index: 1; } .input-field::placeholder { color: rgba(138, 138, 158, 0.4); } .input-field:focus { border-color: var(--fraud-red-border); box-shadow: 0 0 0 3px var(--fraud-red-muted); background: rgba(10, 10, 20, 0.9); } /* Remove number arrows */ .input-field[type="number"]::-webkit-inner-spin-button, .input-field[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; } .input-field[type="number"] { -moz-appearance: textfield; } .select-field { width: 100%; background: rgba(10, 10, 20, 0.6); border: 1px solid var(--border); color: var(--foreground); padding: 10px 36px 10px 14px; border-radius: var(--radius-md); font-size: 14px; transition: border-color 0.2s, box-shadow 0.2s; outline: none; appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238a8a9e' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 14px; } .select-field:focus { border-color: var(--fraud-red-border); box-shadow: 0 0 0 3px var(--fraud-red-muted); } .select-field option { background: #1a1a2e; color: var(--foreground); } /* ===== RISK PREVIEW (SIDEBAR) ===== */ .risk-preview-empty { padding: 16px; border-radius: var(--radius-md); background: var(--muted); border: 1px dashed var(--border); text-align: center; min-height: 80px; display: flex; flex-direction: column; align-items: center; justify-content: center; } .risk-preview-filled { border-radius: var(--radius-md); padding: 16px; border: 1px solid; } /* ===== MODEL INFO BOX ===== */ .model-info-box { background: var(--muted); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px; } /* ===== BUTTONS ===== */ .btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px 16px; border-radius: var(--radius-md); font-size: 14px; font-weight: 600; color: white; background: var(--fraud-red); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3); transition: all 0.2s ease; cursor: pointer; } .btn-primary:hover:not(:disabled) { background: #dc2626; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(239, 68, 68, 0.4); } .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; } .btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 10px 16px; border-radius: var(--radius-md); font-size: 13px; font-weight: 500; color: var(--foreground); background: transparent; border: 1px solid var(--border); transition: all 0.2s ease; cursor: pointer; } .btn-secondary:hover:not(:disabled) { background: var(--muted); border-color: var(--muted-foreground); } .btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; } .btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 10px; border-radius: var(--radius-md); font-size: 13px; font-weight: 500; color: var(--muted-foreground); background: transparent; border: none; transition: all 0.2s ease; cursor: pointer; } .btn-ghost:hover { background: var(--muted); color: var(--foreground); } /* ===== ANALYST BADGE ===== */ .analyst-badge { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--fraud-red-muted); border: 1px solid var(--fraud-red-border); } /* ===== LOADING STATE ===== */ .loading-scanner { position: relative; width: 120px; height: 120px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: rgba(16, 16, 25, 0.6); overflow: hidden; } .scanner-line { position: absolute; left: 0; width: 100%; height: 2px; background: var(--fraud-red); box-shadow: 0 0 12px var(--fraud-red); animation: scan-line 2.4s ease-in-out infinite; } @keyframes scan-line { 0% { top: 0; } 50% { top: calc(100% - 2px); } 100% { top: 0; } } /* ===== RESULT SCREEN ===== */ .result-page-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; animation: fade-in-up 0.4s ease both; } /* 4-col result grid: left (1) | center (2) | right (1) */ .result-grid { display: grid; grid-template-columns: 1fr; gap: 20px; } @media (min-width: 1024px) { .result-grid { grid-template-columns: 1fr 2fr; } .result-col-center { grid-column: 2; } .result-col-right { grid-column: 1 / span 2; } } @media (min-width: 1024px) { .result-grid { grid-template-columns: minmax(260px, 1fr) 2fr minmax(240px, 1fr); } .result-col-center { grid-column: auto; } .result-col-right { grid-column: auto; } } .result-col-left { display: flex; flex-direction: column; gap: 20px; } .result-col-right { display: flex; flex-direction: column; gap: 20px; } /* Verdict card */ .verdict-card { border-radius: var(--radius-xl); padding: 16px; border: 1px solid; } .verdict-card.fraud { background: var(--fraud-red-muted); border-color: var(--fraud-red-border); } .verdict-card.review { background: var(--warn-amber-muted); border-color: var(--warn-amber-border); } .verdict-card.legit { background: var(--legit-green-muted); border-color: var(--legit-green-border); } .verdict-icon-box { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-xl); border: 1px solid; flex-shrink: 0; } /* Verdict top badge */ .verdict-top-badge { padding: 6px 12px; border-radius: var(--radius-md); font-size: 12px; font-family: var(--font-mono); font-weight: 700; border: 1px solid; } /* Zone bars */ .zone-bar { display: flex; flex-direction: column; align-items: center; gap: 4px; border-radius: 6px; padding: 6px 4px; border: 1px solid transparent; transition: all 0.3s ease; } .zone-bar::before { content: attr(data-label); font-size: 10px; font-family: var(--font-mono); color: var(--muted-foreground); } /* Feature contribution row */ .contribution-row { display: flex; flex-direction: column; gap: 6px; } .contribution-row-top { display: flex; align-items: center; justify-content: space-between; } .contribution-label-group { display: flex; align-items: center; gap: 8px; } .top-badge { font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 600; background: var(--fraud-red-muted); color: var(--fraud-red); border: 1px solid var(--fraud-red-border); } .contribution-meta { display: flex; align-items: center; gap: 12px; } .contrib-value-badge { font-size: 11px; font-family: var(--font-mono); padding: 2px 8px; border-radius: 4px; background: var(--muted); border: 1px solid var(--border); color: var(--muted-foreground); } .contrib-pct { font-size: 12px; font-family: var(--font-mono); font-weight: 600; min-width: 40px; text-align: right; } .progress-track { position: relative; height: 8px; background: var(--muted); border-radius: 9999px; overflow: hidden; } .progress-fill { position: absolute; left: 0; top: 0; height: 100%; border-radius: 9999px; width: 0; transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1); } /* Transaction summary rows */ .txn-summary-row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; padding: 6px 8px; border-radius: 6px; } .txn-summary-row.highlight { background: var(--fraud-red-muted); border: 1px solid var(--fraud-red-border); } /* ===== GAUGE COLORS ===== */ .gauge-glow-red { text-shadow: 0 0 12px rgba(239, 68, 68, 0.7); } .gauge-glow-amber { text-shadow: 0 0 12px rgba(245, 158, 11, 0.7); } .gauge-glow-green { text-shadow: 0 0 12px rgba(34, 197, 94, 0.7); } /* ===== TOAST NOTIFICATIONS ===== */ .toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius-md); font-size: 13px; font-weight: 500; min-width: 280px; max-width: 380px; backdrop-filter: blur(12px); border: 1px solid; box-shadow: 0 8px 24px rgba(0,0,0,0.4); animation: toast-in 0.3s ease both; } .toast.success { background: rgba(34, 197, 94, 0.12); border-color: var(--legit-green-border); color: var(--legit-green); } .toast.error { background: rgba(239, 68, 68, 0.12); border-color: var(--fraud-red-border); color: var(--fraud-red); } .toast.info { background: rgba(124, 58, 237, 0.12); border-color: rgba(124, 58, 237, 0.25); color: #a78bfa; } @keyframes toast-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } } /* ===== ANIMATIONS ===== */ @keyframes fade-in-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } } @keyframes scale-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } } .animate-fade-in-up { animation: fade-in-up 0.4s ease both; } .animate-scale-in { animation: scale-in 0.4s ease both; } @keyframes spin { to { transform: rotate(360deg); } } .animate-spin { animation: spin 1s linear infinite; } /* ===== SCROLLBAR ===== */ ::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-track { background: var(--background); } ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; } ::-webkit-scrollbar-thumb:hover { background: var(--muted-foreground); }