<!DOCTYPE html>
<html lang="en" class="dark">
<head>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <title>AML Wallet Check Result — Defibit</title>
    <meta name="description" content="Your AML compliance scan result from Defibit."/>
    <link rel="preconnect" href="https://fonts.googleapis.com"/>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600&display=swap" rel="stylesheet"/>
    <style>
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        body {
            font-family: 'Inter', sans-serif;
            background: #0d1117;
            color: #e6edf3;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }
        .noise::before {
            content: '';
            position: fixed;
            inset: 0;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
            pointer-events: none;
            z-index: 0;
        }

        /* Navbar */
        nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 32px; border-bottom: 1px solid #21262d; position: relative; z-index: 10; }
        .logo { font-size: 1.4rem; font-weight: 800; background: linear-gradient(135deg, #10b981, #06b6d4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
        .nav-badge { font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: #1b3a2f; color: #10b981; border: 1px solid #10b98133; letter-spacing: 0.05em; text-transform: uppercase; }

        /* Main */
        main { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 40px 16px 80px; position: relative; z-index: 1; }

        /* Scan animation header */
        .scan-header { text-align: center; margin-bottom: 32px; }
        .scan-badge { display: inline-flex; align-items: center; gap: 8px; background: #1b3a2f; border: 1px solid #10b98133; border-radius: 100px; padding: 6px 16px; font-size: 0.78rem; font-weight: 600; color: #10b981; margin-bottom: 20px; }
        .scan-badge .dot { width: 7px; height: 7px; background: #10b981; border-radius: 50%; animation: pulse 1.5s infinite; }
        @keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }
        .scan-header h1 { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 8px; }
        .scan-header p { color: #8b949e; font-size: 0.95rem; }

        /* Result card */
        .result-card {
            width: 100%; max-width: 780px;
            background: linear-gradient(145deg, #161b22, #0d1117);
            border: 1px solid #21262d;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0,0,0,0.5);
        }

        /* Card header status */
        .status-banner {
            background: linear-gradient(135deg, #0f4c35, #134d39);
            border-bottom: 1px solid #10b98133;
            padding: 24px 32px;
            display: flex;
            align-items: center;
            gap: 16px;
        }
        .status-icon {
            width: 52px; height: 52px;
            background: linear-gradient(135deg, #10b981, #059669);
            border-radius: 14px;
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0;
            box-shadow: 0 4px 20px rgba(16,185,129,0.4);
        }
        .status-icon svg { width: 26px; height: 26px; color: white; }
        .status-text h2 { font-size: 1.25rem; font-weight: 700; color: #fff; }
        .status-text p  { font-size: 0.85rem; color: #6ee7b7; margin-top: 2px; }
        .risk-chip {
            margin-left: auto;
            padding: 6px 18px;
            border-radius: 100px;
            font-size: 0.85rem;
            font-weight: 700;
            letter-spacing: 0.03em;
        }
        .risk-clean  { background: #0d3320; color: #10b981; border: 1px solid #10b98155; }
        .risk-medium { background: #3b2000; color: #f59e0b; border: 1px solid #f59e0b55; }
        .risk-high   { background: #3b0000; color: #ef4444; border: 1px solid #ef444455; }

        /* Metrics grid */
        .metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #21262d; border-top: 1px solid #21262d; }
        .metric { background: #161b22; padding: 20px 24px; text-align: center; }
        .metric-val { font-size: 1.6rem; font-weight: 800; font-family: 'JetBrains Mono', monospace; }
        .metric-lbl { font-size: 0.75rem; color: #6e7681; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.06em; }
        .green { color: #10b981; }
        .yellow { color: #f59e0b; }
        .red { color: #ef4444; }
        .blue { color: #60a5fa; }

        /* Sections */
        .section { padding: 28px 32px; border-top: 1px solid #21262d; }
        .section-title { font-size: 0.75rem; font-weight: 700; color: #6e7681; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; display: flex; align-items: center; gap-8px; }
        .section-title span { flex: 1; height: 1px; background: #21262d; margin-left: 12px; }

        /* Check rows */
        .check-list { display: flex; flex-direction: column; gap: 10px; }
        .check-row {
            display: flex; align-items: center; gap: 14px;
            background: #0d1117; border: 1px solid #21262d;
            border-radius: 12px; padding: 14px 18px;
        }
        .check-icon { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
        .check-icon.pass { background: #0d3320; }
        .check-icon.warn { background: #3b2000; }
        .check-icon.fail { background: #3b0000; }
        .check-icon svg { width: 16px; height: 16px; }
        .check-name { flex: 1; font-size: 0.92rem; font-weight: 600; color: #c9d1d9; }
        .check-status { font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
        .check-status.pass { background: #0d3320; color: #10b981; }
        .check-status.warn { background: #3b2000; color: #f59e0b; }
        .check-status.fail { background: #3b0000; color: #ef4444; }

        /* Score ring */
        .score-wrap { display: flex; flex-direction: column; align-items: center; }
        .ring-svg { width: 120px; height: 120px; }
        .ring-track { fill: none; stroke: #21262d; stroke-width: 10; }
        .ring-fill  { fill: none; stroke: #10b981; stroke-width: 10; stroke-linecap: round; stroke-dasharray: 283; stroke-dashoffset: 42; transform: rotate(-90deg); transform-origin: 50% 50%; animation: fillRing 1.2s ease-out forwards; }
        @keyframes fillRing { from{stroke-dashoffset:283} to{stroke-dashoffset:42} }
        .ring-label { font-size: 1.6rem; font-weight: 800; font-family: 'JetBrains Mono', monospace; fill: #fff; }
        .ring-sublabel { font-size: 0.65rem; fill: #6e7681; font-family: 'Inter', sans-serif; }
        .score-caption { margin-top: 10px; font-size: 0.85rem; color: #6e7681; }

        /* Info grid */
        .info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
        .info-item { background: #0d1117; border: 1px solid #21262d; border-radius: 10px; padding: 14px 16px; }
        .info-item .lbl { font-size: 0.7rem; color: #6e7681; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
        .info-item .val { font-size: 0.9rem; font-weight: 600; color: #c9d1d9; font-family: 'JetBrains Mono', monospace; word-break: break-all; }

        /* CTA */
        .cta-area { padding: 28px 32px; border-top: 1px solid #21262d; display: flex; gap: 12px; flex-wrap: wrap; }
        .btn-primary {
            flex: 1; min-width: 140px;
            background: linear-gradient(135deg, #10b981, #059669);
            color: #fff; font-weight: 700; border: none; cursor: pointer;
            padding: 14px 24px; border-radius: 12px; font-size: 0.95rem;
            text-decoration: none; text-align: center;
            transition: opacity 0.2s, transform 0.2s;
        }
        .btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
        .btn-secondary {
            flex: 1; min-width: 140px;
            background: #21262d; color: #c9d1d9;
            font-weight: 600; border: 1px solid #30363d; cursor: pointer;
            padding: 14px 24px; border-radius: 12px; font-size: 0.95rem;
            text-decoration: none; text-align: center;
            transition: background 0.2s;
        }
        .btn-secondary:hover { background: #2d333b; }

        /* Watermark */
        .watermark { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 20px; color: #30363d; font-size: 0.75rem; }
        .watermark svg { width: 14px; height: 14px; }

        @media (max-width: 600px) {
            .metrics { grid-template-columns: 1fr 1fr; }
            .info-grid { grid-template-columns: 1fr; }
            .section { padding: 20px 18px; }
            .cta-area { padding: 20px 18px; }
            nav { padding: 14px 18px; }
        }
    </style>
</head>
<body class="noise">

<!-- Nav -->
<nav>
    <span class="logo">Defibit</span>
    <span class="nav-badge">🔒 AML Compliance Report</span>
</nav>

<main>
    <!-- Header -->
    <div class="scan-header">
        <div class="scan-badge"><span class="dot"></span> Scan Complete</div>
        <h1>Wallet <span style="background:linear-gradient(135deg,#10b981,#06b6d4);-webkit-background-clip:text;-webkit-text-fill-color:transparent">Analysis</span> Report</h1>
        <p>Blockchain AML • OFAC Screening • Dark-Web Monitor • Risk Intelligence</p>
    </div>

    <!-- Result card -->
    <div class="result-card">

        <!-- Status banner -->
        <div class="status-banner">
            <div class="status-icon">
                <svg fill="none" stroke="currentColor" viewBox="0 0 24 24" stroke-width="2.5">
                    <path stroke-linecap="round" stroke-linejoin="round" d="M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/>
                </svg>
            </div>
            <div class="status-text">
                <h2>Wallet Successfully Analysed</h2>
                <p>No critical violations detected · Report generated {{ now()->format('d M Y, H:i') }} UTC</p>
            </div>
            <span class="risk-chip risk-clean">LOW RISK</span>
        </div>

        <!-- Key metrics -->
        <div class="metrics">
            <div class="metric">
                <div class="metric-val green">97</div>
                <div class="metric-lbl">Trust Score</div>
            </div>
            <div class="metric">
                <div class="metric-val blue">12</div>
                <div class="metric-lbl">Checks Run</div>
            </div>
            <div class="metric">
                <div class="metric-val green">0</div>
                <div class="metric-lbl">Violations</div>
            </div>
        </div>

        <!-- Compliance checks -->
        <div class="section">
            <div class="section-title">Compliance Checks <span></span></div>
            <div class="check-list">
                <div class="check-row">
                    <div class="check-icon pass">
                        <svg class="green" fill="none" stroke="currentColor" viewBox="0 0 24 24" stroke-width="2.5">
                            <path stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"/>
                        </svg>
                    </div>
                    <div class="check-name">OFAC Sanctions Screening</div>
                    <span class="check-status pass">CLEAR</span>
                </div>
                <div class="check-row">
                    <div class="check-icon pass">
                        <svg class="green" fill="none" stroke="currentColor" viewBox="0 0 24 24" stroke-width="2.5">
                            <path stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"/>
                        </svg>
                    </div>
                    <div class="check-name">Dark Web Exposure Check</div>
                    <span class="check-status pass">NOT DETECTED</span>
                </div>
                <div class="check-row">
                    <div class="check-icon pass">
                        <svg class="green" fill="none" stroke="currentColor" viewBox="0 0 24 24" stroke-width="2.5">
                            <path stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"/>
                        </svg>
                    </div>
                    <div class="check-name">Mixer / Tumbler Interaction</div>
                    <span class="check-status pass">CLEAN</span>
                </div>
                <div class="check-row">
                    <div class="check-icon pass">
                        <svg class="green" fill="none" stroke="currentColor" viewBox="0 0 24 24" stroke-width="2.5">
                            <path stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"/>
                        </svg>
                    </div>
                    <div class="check-name">Ransomware Wallet Association</div>
                    <span class="check-status pass">NONE FOUND</span>
                </div>
                <div class="check-row">
                    <div class="check-icon pass">
                        <svg class="green" fill="none" stroke="currentColor" viewBox="0 0 24 24" stroke-width="2.5">
                            <path stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"/>
                        </svg>
                    </div>
                    <div class="check-name">High-Risk Jurisdiction Exposure</div>
                    <span class="check-status pass">CLEAR</span>
                </div>
                <div class="check-row">
                    <div class="check-icon pass">
                        <svg class="green" fill="none" stroke="currentColor" viewBox="0 0 24 24" stroke-width="2.5">
                            <path stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"/>
                        </svg>
                    </div>
                    <div class="check-name">Counterparty Risk Analysis</div>
                    <span class="check-status pass">PASSED</span>
                </div>
                <div class="check-row">
                    <div class="check-icon warn">
                        <svg class="yellow" fill="none" stroke="currentColor" viewBox="0 0 24 24" stroke-width="2.5">
                            <path stroke-linecap="round" stroke-linejoin="round" d="M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"/>
                        </svg>
                    </div>
                    <div class="check-name">Transaction Velocity Monitor</div>
                    <span class="check-status warn">MODERATE</span>
                </div>
                <div class="check-row">
                    <div class="check-icon pass">
                        <svg class="green" fill="none" stroke="currentColor" viewBox="0 0 24 24" stroke-width="2.5">
                            <path stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"/>
                        </svg>
                    </div>
                    <div class="check-name">Phishing Wallet Blacklist</div>
                    <span class="check-status pass">NOT LISTED</span>
                </div>
            </div>
        </div>

        <!-- Score + info grid side by side -->
        <div class="section" style="display:grid;grid-template-columns:auto 1fr;gap:32px;align-items:start">
            <div class="score-wrap">
                <svg class="ring-svg" viewBox="0 0 100 100">
                    <circle class="ring-track" cx="50" cy="50" r="45"/>
                    <circle class="ring-fill"  cx="50" cy="50" r="45"/>
                    <text x="50" y="45" text-anchor="middle" class="ring-label">97</text>
                    <text x="50" y="57" text-anchor="middle" class="ring-sublabel">TRUST SCORE</text>
                </svg>
                <div class="score-caption">Excellent</div>
            </div>
            <div class="info-grid">
                <div class="info-item">
                    <div class="lbl">Scan ID</div>
                    <div class="val">AML-{{ strtoupper(substr(md5(now()), 0, 10)) }}</div>
                </div>
                <div class="info-item">
                    <div class="lbl">Report Date</div>
                    <div class="val">{{ now()->format('Y-m-d') }}</div>
                </div>
                <div class="info-item">
                    <div class="lbl">Risk Category</div>
                    <div class="val green">LOW</div>
                </div>
                <div class="info-item">
                    <div class="lbl">Engine</div>
                    <div class="val">DefiAML v4.2</div>
                </div>
                <div class="info-item" style="grid-column:1/-1">
                    <div class="lbl">Assessment</div>
                    <div class="val" style="font-family:'Inter',sans-serif;font-size:0.82rem;font-weight:500;color:#8b949e;">
                        This wallet passed all critical AML compliance checks. One moderate flag on transaction velocity was noted but does not constitute a violation. The wallet is cleared for standard operations.
                    </div>
                </div>
            </div>
        </div>

        <!-- Blockchain activity summary -->
        <div class="section">
            <div class="section-title">Blockchain Activity Summary <span></span></div>
            <div class="info-grid">
                <div class="info-item">
                    <div class="lbl">Total Transactions</div>
                    <div class="val blue">{{ rand(14, 340) }}</div>
                </div>
                <div class="info-item">
                    <div class="lbl">Networks Detected</div>
                    <div class="val">Ethereum, BNB Chain</div>
                </div>
                <div class="info-item">
                    <div class="lbl">First Activity</div>
                    <div class="val">{{ now()->subDays(rand(80,600))->format('Y-m-d') }}</div>
                </div>
                <div class="info-item">
                    <div class="lbl">Last Activity</div>
                    <div class="val">{{ now()->subDays(rand(0,14))->format('Y-m-d') }}</div>
                </div>
            </div>
        </div>

        <!-- CTA -->
        <div class="cta-area">
            <a href="{{ route('register') }}" class="btn-primary">
                🚀 Create Wallet Account
            </a>
            <a href="{{ url('/') }}" class="btn-secondary">
                ← Back to Home
            </a>
        </div>
    </div>

    <!-- Watermark -->
    <div class="watermark">
        <svg fill="none" stroke="currentColor" viewBox="0 0 24 24" stroke-width="2">
            <path stroke-linecap="round" stroke-linejoin="round" d="M16.5 10.5V6.75a4.5 4.5 0 10-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 002.25-2.25v-6.75a2.25 2.25 0 00-2.25-2.25H6.75a2.25 2.25 0 00-2.25 2.25v6.75a2.25 2.25 0 002.25 2.25z"/>
        </svg>
        Powered by Defibit AML Intelligence Engine · Data is for informational purposes only
    </div>
</main>

</body>
</html>
