:root {
    --bg: #050607;
    --bg2: #080a0c;
    --panel: #0b0e11;
    --panel2: #0f1318;
    --line: #1b2229;
    --line2: #2a343e;
    --text: #e6ecef;
    --muted: #87939c;
    --dim: #5a666f;
    --green: #8cff3f;
    --green-soft: rgba(140, 255, 63, 0.1);
    --red: #ff2e4d;
    --red-soft: rgba(255, 46, 77, 0.1);
    --amber: #ffb020;
    --cyan: #38d6ff;
}

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

body {
    background:
        radial-gradient(circle at 10% -10%, rgba(255, 46, 77, 0.09), transparent 30%),
        radial-gradient(circle at 90% 0%, rgba(140, 255, 63, 0.07), transparent 28%),
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        var(--bg);
    background-size: auto, auto, 42px 42px, 42px 42px, auto;
    color: var(--text);
    font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    line-height: 1.55;
    overflow-x: hidden;
    min-height: 100vh;
}

.scanlines {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.02) 0px,
        rgba(255, 255, 255, 0.02) 1px,
        transparent 1px,
        transparent 3px
    );
    opacity: 0.45;
}

.glow {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    filter: blur(100px);
    opacity: 0.45;
}
.glow-red { width: 320px; height: 320px; top: 6%; left: -150px; background: rgba(255, 46, 77, 0.18); }
.glow-green { width: 300px; height: 300px; top: 45%; right: -140px; background: rgba(140, 255, 63, 0.14); }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 12px 30px;
    background: rgba(5, 6, 7, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--red), var(--green));
    color: #040506;
    font-family: Consolas, monospace;
    font-weight: 900;
    font-size: 20px;
    box-shadow: 0 0 26px rgba(255, 46, 77, 0.22);
}
.brand-text b { display: block; font-size: 15px; letter-spacing: 3px; font-family: Consolas, monospace; }
.brand-text small { display: block; color: var(--muted); font-size: 8px; letter-spacing: 1.8px; margin-top: 1px; font-family: Consolas, monospace; }
.topbar nav { display: flex; gap: 22px; margin-left: 16px; }
.topbar nav a { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; transition: 0.2s; font-family: Consolas, monospace; }
.topbar nav a:hover { color: var(--green); }
.status {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
    white-space: nowrap;
    font-family: Consolas, monospace;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.8); } }

.ticker {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: #07090a;
}
.ticker-track {
    display: flex;
    align-items: center;
    gap: 24px;
    width: max-content;
    padding: 8px 0;
    font-family: Consolas, "Courier New", monospace;
    font-size: 10px;
    letter-spacing: 0.6px;
    color: var(--dim);
    animation: ticker 36s linear infinite;
}
.ticker-track b { color: var(--red); font-weight: 700; }
.ticker-track .sep { color: var(--line2); }
@keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

main { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: 0 30px; }

.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 38px;
    align-items: center;
    padding: 56px 0 42px;
}
.eyebrow { font-size: 10px; letter-spacing: 2.6px; color: var(--red); font-weight: 800; margin-bottom: 12px; font-family: Consolas, monospace; }
h1 {
    font-family: Consolas, "Courier New", monospace;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.02;
    letter-spacing: -1.6px;
    margin: 0 0 18px;
    font-weight: 700;
    text-transform: uppercase;
}
h1 span { color: var(--green); text-shadow: 0 0 34px rgba(140, 255, 63, 0.2); }
.hero p { color: var(--muted); font-size: 14px; line-height: 1.75; max-width: 540px; margin: 0 0 26px; }
.hero-stats { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 22px; letter-spacing: -0.4px; color: var(--text); font-family: Consolas, monospace; }
.hero-stats span { font-size: 9px; color: var(--dim); letter-spacing: 1.6px; font-family: Consolas, monospace; }

.hero-side { display: flex; flex-direction: column; gap: 13px; min-width: 0; }
.terminal {
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(180deg, #0c1014, #080a0c);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.terminal-head { display: flex; align-items: center; gap: 7px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: #0a0d10; }
.terminal-head .dot { width: 8px; height: 8px; box-shadow: none; animation: none; }
.dot.red { background: var(--red); }
.dot.amber { background: var(--amber); }
.dot.green { background: var(--green); }
.terminal-title { margin-left: 8px; color: var(--dim); font-family: Consolas, monospace; font-size: 10px; letter-spacing: 0.6px; }
.terminal pre {
    margin: 0;
    padding: 20px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    line-height: 1.9;
    color: #b7c2c9;
    white-space: pre-wrap;
}
.terminal .green { color: var(--green); }
.cursor { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-note {
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(140, 255, 63, 0.22);
    background: var(--green-soft);
    border-radius: 7px;
    padding: 9px 12px;
    color: var(--muted);
    font-size: 11px;
    font-family: Consolas, monospace;
}
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.6s infinite; flex: none; }

.section { padding: 18px 0 36px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-head h2, .rules h2 { font-size: 28px; letter-spacing: -0.8px; margin: 0; font-family: Consolas, monospace; text-transform: uppercase; }
.section-note { color: var(--dim); font-size: 9px; letter-spacing: 2px; font-family: Consolas, monospace; }

.table-wrap {
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow-x: auto;
    background: rgba(11, 14, 17, 0.8);
}
.db-table { width: 100%; border-collapse: collapse; min-width: 1000px; }
.db-table thead th {
    text-align: left;
    padding: 11px 14px;
    font-size: 9px;
    letter-spacing: 1.4px;
    color: var(--dim);
    font-weight: 700;
    font-family: Consolas, monospace;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.015);
    white-space: nowrap;
}
.db-table tbody td { padding: 12px 14px; border-bottom: 1px solid rgba(27, 34, 41, 0.75); vertical-align: middle; }
.db-table tbody tr:last-child td { border-bottom: 0; }
.db-table tbody tr { transition: background 0.15s; }
.db-table tbody tr:hover { background: rgba(140, 255, 63, 0.035); }
.db-table .num { color: var(--dim); font-family: Consolas, monospace; font-size: 11px; width: 40px; }
.db-table .db b { display: block; font-size: 13px; font-weight: 700; letter-spacing: -0.1px; }
.db-table .db small { display: block; color: var(--dim); font-size: 9px; font-family: Consolas, monospace; margin-top: 2px; }
.db-table .db em {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-style: normal;
    color: var(--dim);
    font-size: 10px;
    line-height: 1.45;
    margin-top: 5px;
    max-width: 360px;
}
.country { color: var(--green); font-weight: 700; }
.db-table .mono { font-family: Consolas, monospace; font-size: 10px; color: var(--muted); white-space: nowrap; }

.tag {
    display: inline-block;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
    border-radius: 4px;
    padding: 4px 7px;
    border: 1px solid var(--line2);
    color: var(--muted);
    font-family: Consolas, monospace;
    white-space: nowrap;
}
.tag.telecom { color: var(--cyan); border-color: rgba(56, 214, 255, 0.3); background: rgba(56, 214, 255, 0.06); }
.tag.crypto { color: var(--amber); border-color: rgba(255, 176, 32, 0.3); background: rgba(255, 176, 32, 0.06); }
.tag.social { color: var(--green); border-color: rgba(140, 255, 63, 0.3); background: rgba(140, 255, 63, 0.06); }
.tag.ecom { color: #ff6bd6; border-color: rgba(255, 107, 214, 0.3); background: rgba(255, 107, 214, 0.06); }
.tag.delivery { color: #ff8a3d; border-color: rgba(255, 138, 61, 0.3); background: rgba(255, 138, 61, 0.06); }
.tag.inst { color: var(--red); border-color: rgba(255, 46, 77, 0.3); background: rgba(255, 46, 77, 0.06); }
.tag.identity { color: #ff8a3d; border-color: rgba(255, 138, 61, 0.3); background: rgba(255, 138, 61, 0.06); }
.tag.defense { color: #ff6bd6; border-color: rgba(255, 107, 214, 0.3); background: rgba(255, 107, 214, 0.06); }
.tag.space { color: var(--cyan); border-color: rgba(56, 214, 255, 0.3); background: rgba(56, 214, 255, 0.06); }
.tag.election { color: var(--amber); border-color: rgba(255, 176, 32, 0.3); background: rgba(255, 176, 32, 0.06); }
.tag.personal { color: #ff8a3d; border-color: rgba(255, 138, 61, 0.3); background: rgba(255, 138, 61, 0.06); }

.dl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 46, 77, 0.42);
    background: var(--red-soft);
    color: var(--red);
    border-radius: 5px;
    padding: 7px 11px;
    font-family: Consolas, monospace;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: 0.15s;
    white-space: nowrap;
}
.dl-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }

.mobile-cards { display: none; }

.mirrors { padding: 10px 0 36px; }
.mirror-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.mirror {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 12px;
    background: rgba(11, 14, 17, 0.75);
}
.mirror-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.mirror b { font-family: Consolas, monospace; font-size: 12px; letter-spacing: 0.6px; }
.mirror .ok { color: var(--green); font-family: Consolas, monospace; font-size: 8px; letter-spacing: 0.8px; }
.mirror > span { color: var(--dim); font-family: Consolas, monospace; font-size: 9px; }

.rules {
    margin: 0 0 36px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 22px 24px;
    background: rgba(11, 14, 17, 0.7);
}
.rules ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 24px; }
.rules li { position: relative; padding-left: 16px; color: var(--muted); font-size: 12px; }
.rules li::before { content: "›"; position: absolute; left: 0; color: var(--red); font-family: Consolas, monospace; }

footer { position: relative; z-index: 2; border-top: 1px solid var(--line); padding: 20px 30px 30px; color: var(--dim); font-size: 10px; font-family: Consolas, monospace; }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-inner b { color: var(--text); letter-spacing: 1px; }

.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    place-items: center;
    padding: 20px;
    background: rgba(2, 3, 4, 0.8);
    backdrop-filter: blur(9px);
}
.modal.open { display: grid; }
.modal-card {
    width: 100%;
    max-width: 470px;
    max-height: 84vh;
    overflow-y: auto;
    border: 1px solid var(--line2);
    border-radius: 10px;
    background: linear-gradient(180deg, #0f1419, #080b0e);
    padding: 24px;
    position: relative;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
    animation: pop 0.15s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(7px) scale(0.99); } to { opacity: 1; transform: none; } }
.modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 24px;
    line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-badge {
    display: inline-block;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.2px;
    padding: 4px 7px;
    border-radius: 4px;
    border: 1px solid var(--line2);
    color: var(--muted);
    margin-bottom: 13px;
    font-family: Consolas, monospace;
}
.modal-badge.telecom { color: var(--cyan); border-color: rgba(56, 214, 255, 0.3); background: rgba(56, 214, 255, 0.06); }
.modal-badge.crypto { color: var(--amber); border-color: rgba(255, 176, 32, 0.3); background: rgba(255, 176, 32, 0.06); }
.modal-badge.social { color: var(--green); border-color: rgba(140, 255, 63, 0.3); background: rgba(140, 255, 63, 0.06); }
.modal-badge.ecom { color: #ff6bd6; border-color: rgba(255, 107, 214, 0.3); background: rgba(255, 107, 214, 0.06); }
.modal-badge.delivery { color: #ff8a3d; border-color: rgba(255, 138, 61, 0.3); background: rgba(255, 138, 61, 0.06); }
.modal-badge.inst { color: var(--red); border-color: rgba(255, 46, 77, 0.3); background: rgba(255, 46, 77, 0.06); }
.modal-badge.identity { color: #ff8a3d; border-color: rgba(255, 138, 61, 0.3); background: rgba(255, 138, 61, 0.06); }
.modal-badge.defense { color: #ff6bd6; border-color: rgba(255, 107, 214, 0.3); background: rgba(255, 107, 214, 0.06); }
.modal-badge.space { color: var(--cyan); border-color: rgba(56, 214, 255, 0.3); background: rgba(56, 214, 255, 0.06); }
.modal-badge.election { color: var(--amber); border-color: rgba(255, 176, 32, 0.3); background: rgba(255, 176, 32, 0.06); }
.modal-badge.personal { color: #ff8a3d; border-color: rgba(255, 138, 61, 0.3); background: rgba(255, 138, 61, 0.06); }
.modal-card h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: -0.3px; line-height: 1.25; }
.modal-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 13px; }
.modal-meta span { border: 1px solid var(--line); border-radius: 4px; padding: 3px 6px; color: var(--dim); font-size: 9px; font-family: Consolas, monospace; }
.modal-card p { margin: 0 0 12px; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.field-list { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 14px; }
.field-list span { border: 1px solid var(--line); border-radius: 4px; padding: 3px 7px; color: var(--muted); font-size: 9px; font-family: Consolas, monospace; background: rgba(255, 255, 255, 0.015); }
.sample-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0 0 16px;
    border: 1px solid var(--line);
    border-radius: 7px;
    overflow: hidden;
    background: #080b0e;
}
.sample-block div { padding: 8px 10px; border-bottom: 1px solid rgba(27, 34, 41, 0.75); border-right: 1px solid rgba(27, 34, 41, 0.75); min-width: 0; }
.sample-block div:nth-child(2n) { border-right: 0; }
.sample-block span { display: block; color: var(--dim); font-size: 8px; letter-spacing: 0.8px; margin-bottom: 2px; font-family: Consolas, monospace; }
.sample-block b { display: block; color: var(--green); font-size: 10px; font-weight: 700; word-break: break-word; font-family: Consolas, monospace; }
.modal-btn { width: 100%; padding: 11px 12px; font-size: 10px; }
.net-box {
    margin: 4px 0 0;
    padding: 14px;
    border: 1px dashed rgba(140, 255, 63, 0.4);
    border-radius: 7px;
    background: var(--green-soft);
    text-align: center;
}
.net-box b { display: block; color: var(--green); font-size: 9px; letter-spacing: 1.5px; margin-bottom: 8px; font-family: Consolas, monospace; }
.net-line { display: block; color: var(--dim); font-size: 9px; letter-spacing: 0.8px; margin-bottom: 8px; font-family: Consolas, monospace; }
.net-bar { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.net-bar i { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, var(--green), var(--cyan)); animation: netload 1.4s ease-in-out infinite; }
@keyframes netload {
    from { transform: translateX(-120%); }
    to { transform: translateX(320%); }
}
.net-box.error { border-color: rgba(255, 46, 77, 0.45); background: var(--red-soft); }
.net-box.error b { color: var(--red); }
.net-box.error p { margin: 0 0 8px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.net-meta { display: block; color: var(--dim); font-size: 8px; letter-spacing: 0.8px; font-family: Consolas, monospace; }
.modal-foot { margin-top: 13px; color: var(--dim); font-size: 9px; letter-spacing: 0.3px; line-height: 1.6; font-family: Consolas, monospace; }

@media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; padding-top: 38px; }
    .mirror-grid { grid-template-columns: repeat(3, 1fr); }
    .topbar nav { display: none; }
    .rules ul { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .table-wrap { display: none; }
    .mobile-cards { display: grid; grid-template-columns: 1fr; gap: 10px; }
    .m-card {
        border: 1px solid var(--line);
        border-radius: 9px;
        padding: 14px;
        background: rgba(11, 14, 17, 0.8);
    }
    .m-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
    .m-top .mono { color: var(--dim); font-family: Consolas, monospace; font-size: 9px; }
    .m-card h3 { margin: 0 0 7px; font-size: 15px; letter-spacing: -0.2px; line-height: 1.3; }
    .m-country { color: var(--dim); font-family: Consolas, monospace; font-size: 9px; margin-bottom: 7px; }
    .m-desc {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin: 0 0 10px;
        color: var(--muted);
        font-size: 11px;
        line-height: 1.55;
    }
    .m-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
    .m-meta span { border: 1px solid var(--line); border-radius: 4px; padding: 3px 6px; color: var(--dim); font-size: 9px; font-family: Consolas, monospace; }
    .m-card .dl-btn { width: 100%; padding: 9px 11px; }
}

@media (max-width: 640px) {
    .topbar { padding: 11px 16px; gap: 12px; }
    main { padding: 0 16px; }
    .mirror-grid { grid-template-columns: 1fr 1fr; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .hero-stats { gap: 18px; }
    .rules { padding: 18px; }
    .sample-block { grid-template-columns: 1fr; }
    .sample-block div { border-right: 0; }
    footer { padding: 18px 16px 28px; }
    .status { font-size: 9px; }
}
