<!DOCTYPE html>
<html lang="pt">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Estatísticas de Consultas NTM-IA</title>
    <style>
        * {
            font-family: 'Courier New', monospace;
        }
        body {
            background: #0a0e27;
            color: #00ffcc;
            padding: 20px;
        }
        .container {
            max-width: 1400px;
            margin: 0 auto;
        }
        h1 {
            color: #00ffcc;
            text-shadow: 0 0 5px #00ffcc;
            border-bottom: 1px solid #00ffcc;
            padding-bottom: 10px;
        }
        h2 {
            color: #00ffcc;
            margin-top: 30px;
            border-left: 3px solid #00ffcc;
            padding-left: 15px;
        }
        .info-box {
            background: #0f1235;
            border: 1px solid #00ffcc;
            padding: 15px;
            margin: 20px 0;
            border-radius: 8px;
        }
        .stat-card {
            display: inline-block;
            width: 18%;
            margin: 1%;
            background: #0f1235;
            border: 1px solid #00ffcc;
            border-radius: 8px;
            padding: 15px;
            text-align: center;
            vertical-align: top;
        }
        .stat-value {
            font-size: 28px;
            font-weight: bold;
            color: #00ffcc;
        }
        .stat-label {
            font-size: 11px;
            color: #88aaff;
            margin-top: 5px;
        }
        table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
            background: #0f1235;
        }
        th, td {
            border: 1px solid #00ffcc;
            padding: 10px;
            text-align: left;
        }
        th {
            background: #1a1f4e;
            color: #00ffcc;
        }
        .numero {
            text-align: right;
        }
        .footer {
            margin-top: 30px;
            text-align: center;
            font-size: 12px;
            color: #6688aa;
        }
        .lang-selector {
            text-align: right;
            margin-bottom: 20px;
        }
        .lang-btn {
            background: #1a1f4e;
            color: #00ffcc;
            border: 1px solid #00ffcc;
            padding: 5px 10px;
            margin-left: 5px;
            cursor: pointer;
            text-decoration: none;
            border-radius: 4px;
        }
        .lang-btn.active {
            background: #00ffcc;
            color: #0a0e27;
        }
        .lang-btn:hover {
            background: #00ffcc;
            color: #0a0e27;
        }
        .small-text {
            font-size: 12px;
            color: #88aaff;
        }
        .hash {
            font-size: 11px;
            word-break: break-all;
        }
        .two-columns {
            display: table;
            width: 100%;
        }
        .column {
            display: table-cell;
            width: 50%;
            padding: 10px;
            vertical-align: top;
        }
    </style>
</head>
<body>
<div class="container">
    <div class="lang-selector">
        <span class="small-text">Idioma:</span>
        <a href="?lang=EN" class="lang-btn ">EN</a>
        <a href="?lang=PT" class="lang-btn active">PT</a>
        <a href="?lang=ZH" class="lang-btn ">ZH</a>
    </div>
    
    <h1>📊 Estatísticas de Consultas NTM-IA</h1>
    <div class="small-text">Estatísticas de consultas ao endpoint ntm-ia-trust.php</div>
    
    <!-- Overview Cards -->
    <div class="info-box">
        <h2 style="margin-top: 0;">📈 Visão Geral</h2>
        <div style="text-align: center;">
            <div class="stat-card">
                <div class="stat-value">55,476</div>
                <div class="stat-label">Total de Consultas</div>
            </div>
            <div class="stat-card">
                <div class="stat-value">789</div>
                <div class="stat-label">IPs Únicos</div>
            </div>
            <div class="stat-card">
                <div class="stat-value">164</div>
                <div class="stat-label">User Agents Únicos</div>
            </div>
            <div class="stat-card">
                <div class="stat-value">11</div>
                <div class="stat-label">Bots Únicos</div>
            </div>
            <div class="stat-card">
                <div class="stat-value">2026-04-14</div>
                <div class="stat-label">Primeira Consulta</div>
            </div>
        </div>
        <div style="text-align: center; margin-top: 10px;">
            <span class="small-text">Última Consulta: 2026-10-09 17:10:43</span>
        </div>
    </div>
    
    <!-- Two columns: Top IPs + Top Bots -->
    <div class="two-columns">
        <div class="column">
            <h2>🌐 Principais IPs</h2>
                        <table>
                <thead>
                    <tr>
                        <th>IP</th>
                        <th>Consultas</th>
                    </tr>
                </thead>
                <tbody>
                                        <tr>
                        <td>192.249.119.206</td>
                        <td class="numero">5,352</td>
                    </tr>
                                        <tr>
                        <td>52.22.236.30</td>
                        <td class="numero">1,874</td>
                    </tr>
                                        <tr>
                        <td>178.156.184.20</td>
                        <td class="numero">1,855</td>
                    </tr>
                                        <tr>
                        <td>34.198.201.66</td>
                        <td class="numero">1,848</td>
                    </tr>
                                        <tr>
                        <td>5.161.177.47</td>
                        <td class="numero">1,846</td>
                    </tr>
                                        <tr>
                        <td>54.87.112.51</td>
                        <td class="numero">1,836</td>
                    </tr>
                                        <tr>
                        <td>54.167.223.174</td>
                        <td class="numero">1,827</td>
                    </tr>
                                        <tr>
                        <td>178.156.189.249</td>
                        <td class="numero">1,822</td>
                    </tr>
                                        <tr>
                        <td>178.156.189.113</td>
                        <td class="numero">1,819</td>
                    </tr>
                                        <tr>
                        <td>3.212.128.62</td>
                        <td class="numero">1,800</td>
                    </tr>
                                    </tbody>
            </table>
                    </div>
        
        <div class="column">
            <h2>🤖 Principais Bots</h2>
                        <table>
                <thead>
                    <tr>
                        <th>Bot</th>
                        <th>Consultas</th>
                    </tr>
                </thead>
                <tbody>
                                        <tr>
                        <td>GenericBot</td>
                        <td class="numero">48,254</td>
                    </tr>
                                        <tr>
                        <td>GPTBot</td>
                        <td class="numero">5,352</td>
                    </tr>
                                        <tr>
                        <td>human</td>
                        <td class="numero">1,615</td>
                    </tr>
                                        <tr>
                        <td>MetaBot</td>
                        <td class="numero">128</td>
                    </tr>
                                        <tr>
                        <td>Amazonbot</td>
                        <td class="numero">61</td>
                    </tr>
                                        <tr>
                        <td>ClaudeBot</td>
                        <td class="numero">26</td>
                    </tr>
                                        <tr>
                        <td>Applebot</td>
                        <td class="numero">14</td>
                    </tr>
                                        <tr>
                        <td>Bingbot</td>
                        <td class="numero">14</td>
                    </tr>
                                        <tr>
                        <td>AhrefsBot</td>
                        <td class="numero">7</td>
                    </tr>
                                        <tr>
                        <td>PerplexityBot</td>
                        <td class="numero">3</td>
                    </tr>
                                    </tbody>
            </table>
                    </div>
    </div>
    
    <!-- Queries by Hour -->
    <h2>⏰ Consultas por Hora (Últimas 24h)</h2>
        <table>
        <thead>
            <tr>
                <th>Hora</th>
                <th>Consultas</th>
            </tr>
        </thead>
        <tbody>
                        <tr>
                <td>2026-10-08 18:00:00</td>
                <td class="numero">12</td>
            </tr>
                        <tr>
                <td>2026-10-08 19:00:00</td>
                <td class="numero">12</td>
            </tr>
                        <tr>
                <td>2026-10-08 20:00:00</td>
                <td class="numero">12</td>
            </tr>
                        <tr>
                <td>2026-10-08 21:00:00</td>
                <td class="numero">12</td>
            </tr>
                        <tr>
                <td>2026-10-08 22:00:00</td>
                <td class="numero">12</td>
            </tr>
                        <tr>
                <td>2026-10-08 23:00:00</td>
                <td class="numero">11</td>
            </tr>
                        <tr>
                <td>2026-10-09 00:00:00</td>
                <td class="numero">13</td>
            </tr>
                        <tr>
                <td>2026-10-09 01:00:00</td>
                <td class="numero">11</td>
            </tr>
                        <tr>
                <td>2026-10-09 02:00:00</td>
                <td class="numero">12</td>
            </tr>
                        <tr>
                <td>2026-10-09 03:00:00</td>
                <td class="numero">12</td>
            </tr>
                        <tr>
                <td>2026-10-09 04:00:00</td>
                <td class="numero">11</td>
            </tr>
                        <tr>
                <td>2026-10-09 05:00:00</td>
                <td class="numero">14</td>
            </tr>
                        <tr>
                <td>2026-10-09 06:00:00</td>
                <td class="numero">11</td>
            </tr>
                        <tr>
                <td>2026-10-09 07:00:00</td>
                <td class="numero">12</td>
            </tr>
                        <tr>
                <td>2026-10-09 08:00:00</td>
                <td class="numero">13</td>
            </tr>
                        <tr>
                <td>2026-10-09 09:00:00</td>
                <td class="numero">11</td>
            </tr>
                        <tr>
                <td>2026-10-09 10:00:00</td>
                <td class="numero">13</td>
            </tr>
                        <tr>
                <td>2026-10-09 11:00:00</td>
                <td class="numero">12</td>
            </tr>
                        <tr>
                <td>2026-10-09 12:00:00</td>
                <td class="numero">13</td>
            </tr>
                        <tr>
                <td>2026-10-09 13:00:00</td>
                <td class="numero">11</td>
            </tr>
                        <tr>
                <td>2026-10-09 14:00:00</td>
                <td class="numero">13</td>
            </tr>
                        <tr>
                <td>2026-10-09 15:00:00</td>
                <td class="numero">13</td>
            </tr>
                        <tr>
                <td>2026-10-09 16:00:00</td>
                <td class="numero">13</td>
            </tr>
                        <tr>
                <td>2026-10-09 17:00:00</td>
                <td class="numero">3</td>
            </tr>
                    </tbody>
    </table>
        
    <!-- API Link -->
    <div class="info-box" style="text-align: center;">
        <a href="?format=json" style="color: #00ffcc;">📡 Ver JSON (para APIs)</a>
    </div>
    
    <div class="footer">
        Estatísticas NTM-IA | Consultas ao ntm-ia-trust.php    </div>
</div>
</body>
</html>{
    "token_name": "NTM-IA",
    "contract_address": null,
    "timestamp": "2026-10-09T17:12:18-07:00",
    "data_source": "ai-dash-snippet.php + blockchain\/ntm-ia\/",
    "summary": {
        "trust_score": 88.1,
        "ntm_ia_price": 250.76,
        "supply": 4021.0084,
        "market_cap": 1008316.99,
        "mint_ratio": 119,
        "uas": 119,
        "pct_ia": 39.24,
        "ai_index": 0.696,
        "hits_ia": 478500,
        "hub_companies": 1091,
        "respostas": 18179,
        "np": 22555.47,
        "ntm_original_price": 89.95,
        "blocks_generated": 27312
    },
    "trust_score_components": {
        "uas_score": 100,
        "pct_ia_score": 65.4,
        "ai_index_score": 87,
        "weights": {
            "uas": "50%",
            "pct_ia": "25%",
            "ai_index": "25%"
        },
        "caps": {
            "uas": 70,
            "pct_ia": "60%",
            "ai_index": "0.80"
        }
    },
    "model_notes": {
        "trust_score": "Trust Score baseado em: UAs (cap 70, peso 50%), % IA (cap 60%, peso 25%), AI Index (cap 0.80, peso 25%)",
        "mint_ratio": "O rácio de minting é igual ao número de UAs (User Agents IA) ativas. Auto-regulado, sem intervenção humana.",
        "formulas": "NP = ((%IA + AI Index) × hits \/ UAs) + respostas. NTM-IA = NP \/ NTM_original."
    },
    "last_block": {
        "index": 27312,
        "timestamp": "2026-10-09 17:10:02",
        "hash": "52e6c835ac5c392e3d3b96f3a466486905722bd7e37e0d59b411f7a20b602a3a",
        "previous_hash": "ac3c51b594de2834457a1f6af55825e70c567165c60ca9fc47ec11c147b33d87"
    },
    "history": [
        {
            "index": 27312,
            "timestamp": "2026-10-09 17:10:02",
            "ntm_ia_price": 250.75,
            "supply": 4020.9076,
            "market_cap": 1008260.55,
            "mint_ratio": 119
        },
        {
            "index": 27311,
            "timestamp": "2026-10-09 17:00:01",
            "ntm_ia_price": 250.75,
            "supply": 4020.9076,
            "market_cap": 1008262.23,
            "mint_ratio": 119
        },
        {
            "index": 27310,
            "timestamp": "2026-10-09 16:50:01",
            "ntm_ia_price": 250.75,
            "supply": 4020.8824,
            "market_cap": 1008249.36,
            "mint_ratio": 119
        },
        {
            "index": 27309,
            "timestamp": "2026-10-09 16:40:02",
            "ntm_ia_price": 250.74,
            "supply": 4020.874,
            "market_cap": 1008200.93,
            "mint_ratio": 119
        },
        {
            "index": 27308,
            "timestamp": "2026-10-09 16:30:01",
            "ntm_ia_price": 250.72,
            "supply": 4020.5798,
            "market_cap": 1008036.81,
            "mint_ratio": 119
        },
        {
            "index": 27307,
            "timestamp": "2026-10-09 16:20:02",
            "ntm_ia_price": 250.72,
            "supply": 4020.5546,
            "market_cap": 1008024.58,
            "mint_ratio": 119
        },
        {
            "index": 27306,
            "timestamp": "2026-10-09 16:10:04",
            "ntm_ia_price": 250.72,
            "supply": 4020.5294,
            "market_cap": 1008012.82,
            "mint_ratio": 119
        },
        {
            "index": 27305,
            "timestamp": "2026-10-09 16:00:04",
            "ntm_ia_price": 250.93,
            "supply": 4020.4958,
            "market_cap": 1008874.35,
            "mint_ratio": 119
        },
        {
            "index": 27304,
            "timestamp": "2026-10-09 15:50:02",
            "ntm_ia_price": 250.91,
            "supply": 4020.1765,
            "market_cap": 1008696.59,
            "mint_ratio": 119
        },
        {
            "index": 27303,
            "timestamp": "2026-10-09 15:40:02",
            "ntm_ia_price": 247.71,
            "supply": 4020.1261,
            "market_cap": 995834.37,
            "mint_ratio": 119
        }
    ],
    "verification": {
        "spec": "https:\/\/netmeios.com\/NTM-IA-VERIFICATION.md",
        "blocks_path": "https:\/\/www.netmeios.com\/blockchain\/ntm-ia\/blocks\/",
        "chain_type": "ntm-ia-token",
        "machine_verifiable": true
    },
    "endpoints": {
        "trust_score": "https:\/\/www.netmeios.com\/ntm-ia-trust.php",
        "integrity_checker": "https:\/\/www.netmeios.com\/ai-check-integrity-ntm-ia.php",
        "blocks_api": "https:\/\/www.netmeios.com\/api-blocks-ntm-ia.php",
        "explorer": "https:\/\/www.netmeios.com\/ai-ntm-ia-stats.php"
    }
}