graph TB
    subgraph Internet["🌐 PUBLIC INTERNET"]
        Users["👥 Players & Community"]
        Cloudflare["☁️ Cloudflare<br/>(DNS + DDoS Protection)"]
    end

    subgraph CommandCenter["🎯 COMMAND CENTER<br/>63.143.34.217<br/>(Primary Gateway + Management Layer)"]
        direction TB
        PrimaryGW["Primary Gateway<br/>63.143.34.217"]
        
        subgraph ManagementServices["Management Services (/29 Block: .201-.206)"]
            Gitea["📚 Gitea<br/>git.firefrostgaming.com<br/>74.63.218.202<br/>✅ LIVE"]
            UptimeKuma["📊 Uptime Kuma<br/>status.firefrostgaming.com<br/>74.63.218.203<br/>⏳ NEXT"]
            BookStack["📖 BookStack<br/>docs.firefrostgaming.com<br/>74.63.218.204<br/>📋 PLANNED"]
            Netdata["📈 Netdata<br/>metrics.firefrostgaming.com<br/>74.63.218.205<br/>📋 PLANNED"]
            Vaultwarden["🔐 Vaultwarden<br/>vault.firefrostgaming.com<br/>74.63.218.206<br/>📋 PLANNED"]
        end
    end

    subgraph ControlPlane["🎮 CONTROL PLANE"]
        Panel["🕹️ Pterodactyl Panel<br/>panel.firefrostgaming.com<br/>45.94.168.138"]
        Billing["💰 Paymenter<br/>billing.firefrostgaming.com<br/>38.68.14.188<br/>(Stripe Integration)"]
        Ghost["👻 Ghost CMS<br/>firefrostgaming.com<br/>64.50.188.14<br/>(Website + Ignis)"]
    end

    subgraph NC1["🏢 NC1 - CHARLOTTE NODE<br/>216.239.104.130-134"]
        direction LR
        NC1_Server1["The Ember Project<br/>216.239.104.130:25565"]
        NC1_Server2["Minecolonies<br/>216.239.104.131:25565"]
        NC1_Server3["Peace of Mind<br/>216.239.104.132:25565"]
        NC1_Server4["Sandbox<br/>216.239.104.133:25565"]
        NC1_Server5["ATM 10<br/>216.239.104.134:25565"]
        NC1_Server6["Farming Crossing<br/>216.239.104.134:25566"]
        NC1_Server7["Homestead<br/>216.239.104.133:25566"]
        NC1_Server8["Hytale<br/>216.239.104.131:5520"]
        NC1_Server9["EMC Subterra<br/>216.239.104.132:25566"]
    end

    subgraph TX1["🏢 TX1 - DALLAS NODE<br/>38.68.14.26-30"]
        direction LR
        TX1_Server1["Stoneblock 4<br/>38.68.14.26:25565"]
        TX1_Server2["Reclamation<br/>38.68.14.27:25565"]
        TX1_Server3["Society<br/>38.68.14.28:25565"]
        TX1_Server4["Vanilla 1.21.1<br/>38.68.14.29:25565"]
        TX1_Server5["All The Mons<br/>38.68.14.30:25565"]
        TX1_Server6["FoundryVTT<br/>38.68.14.26:30000"]
    end

    subgraph Frostwall2["🛡️ FROSTWALL 2.0<br/>(Multi-Layer Security)"]
        direction TB
        Layer1["Layer 1: IP Firewall<br/>(UFW/nftables)"]
        Layer2["Layer 2: Intrusion Detection<br/>(Fail2Ban)"]
        Layer3["Layer 3: DDoS Mitigation<br/>(CrowdSec)"]
        Layer4["Layer 4: App Protection<br/>(Rate Limiting)"]
        Layer5["Layer 5: Monitoring<br/>(Alerts → Discord)"]
    end

    subgraph Monitoring["📡 MONITORING & ALERTS"]
        UptimeKumaMonitor["Uptime Kuma<br/>(Public Status Page)"]
        NetdataMonitor["Netdata<br/>(Real-Time Metrics)"]
        DiscordWebhooks["💬 Discord Webhooks<br/>(The Wizard Alerts)"]
    end

    %% Connections
    Users -->|DNS Lookup| Cloudflare
    Cloudflare -->|Proxy/Cache| CommandCenter
    Cloudflare -->|Proxy/Cache| ControlPlane
    
    CommandCenter --> Panel
    CommandCenter --> Billing
    CommandCenter --> Ghost
    
    Panel -->|Manage| NC1
    Panel -->|Manage| TX1
    
    Billing -->|Provision| Panel
    Ghost -->|Membership| Billing
    
    NC1 -->|Protected By| Frostwall2
    TX1 -->|Protected By| Frostwall2
    CommandCenter -->|Protected By| Frostwall2
    
    Frostwall2 -->|Alerts| Monitoring
    Monitoring -->|Notify| DiscordWebhooks
    
    UptimeKuma -->|Monitor| NC1
    UptimeKuma -->|Monitor| TX1
    UptimeKuma -->|Monitor| ControlPlane
    
    Netdata -->|Metrics| NC1
    Netdata -->|Metrics| TX1
    Netdata -->|Metrics| CommandCenter

    %% Styling
    classDef liveService fill:#00E5FF,stroke:#01579B,stroke-width:3px,color:#000
    classDef nextService fill:#FFD600,stroke:#FF3D00,stroke-width:3px,color:#000
    classDef plannedService fill:#666,stroke:#999,stroke-width:2px,color:#fff
    classDef security fill:#FF3D00,stroke:#BF360C,stroke-width:3px,color:#fff
    classDef monitoring fill:#00E5FF,stroke:#01579B,stroke-width:2px,color:#000
    
    class Gitea liveService
    class UptimeKuma,UptimeKumaMonitor nextService
    class BookStack,Netdata,Vaultwarden,NetdataMonitor plannedService
    class Frostwall2,Layer1,Layer2,Layer3,Layer4,Layer5 security
    class Monitoring,DiscordWebhooks monitoringx
