/* ==============================================================================
   XSIRIUS // Elite Unified Architecture & Ecosystem Stylesheet
   ==============================================================================
   [TR] Bu stil dosyası, xsirius.tech kurumsal kimliği ile tam uyumlu;
        temiz, minimalist, yüksek kontrastlı ve ultra modern bir tasarıma sahiptir.
   [EN] Enterprise-grade, clean, modern dark-mode stylesheet for Xsirius ecosystem,
        featuring multi-project showcase, interactive lab, and subscription engine.
   ============================================================================== */

:root {
    --bg-base: #060709;
    --bg-surface: #0c0e12;
    --bg-card: #101319;
    --bg-card-hover: #151922;
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(222, 255, 154, 0.4);
    
    --accent-lime: #deff9a;
    --accent-green: #00ff41;
    --accent-cyan: #00ffff;
    --accent-red: #ff3366;
    --accent-orange: #ffaa00;
    
    --text-primary: #f5f6f8;
    --text-muted: #8b92a2;
    --text-dim: #545b6d;

    --font-ui: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-ui);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(222, 255, 154, 0.025) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 255, 255, 0.02) 0%, transparent 40%);
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #060709; }
::-webkit-scrollbar-thumb { background: #20242e; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-lime); }

/* --- HEADER --- */
header {
    background: rgba(6, 7, 9, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-icon {
    width: 36px;
    height: 36px;
    background: #000;
    border: 1px solid var(--accent-lime);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-lime);
    font-size: 16px;
    box-shadow: 0 0 12px rgba(222, 255, 154, 0.15);
}

.brand-titles h1 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.brand-titles h1 span {
    color: var(--accent-lime);
}

/* NAVIGATION LINKS */
.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-lime);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0, 255, 65, 0.06);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-green);
    letter-spacing: 0.5px;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

.btn-client-login {
    background: rgba(0, 255, 255, 0.08);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 255, 255, 0.3);
    padding: 8px 16px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-client-login:hover {
    background: var(--accent-cyan);
    color: #000;
    box-shadow: 0 0 16px rgba(0, 255, 255, 0.3);
}

.btn-operator-login {
    background: transparent;
    color: var(--accent-lime);
    border: 1px solid var(--accent-lime);
    padding: 8px 16px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-operator-login:hover {
    background: var(--accent-lime);
    color: #000;
    box-shadow: 0 0 16px rgba(222, 255, 154, 0.3);
}

/* --- MAIN CONTAINER --- */
main {
    padding: 50px 8% 80px 8%;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* --- HERO SECTION --- */
.hero-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 860px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: rgba(222, 255, 154, 0.05);
    border: 1px solid rgba(222, 255, 154, 0.15);
    color: var(--accent-lime);
    font-family: var(--font-mono);
    font-size: 11px;
    border-radius: 4px;
    width: fit-content;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.hero-title span {
    color: var(--accent-lime);
}

.hero-description {
    font-size: 16.5px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 760px;
}

.hero-metrics-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.metric-tag {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 6px;
}

.metric-tag i { color: var(--accent-lime); }

/* --- SECTION HEADERS --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 14px;
    margin-bottom: 24px;
}

.section-header-titles h2 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header-titles h2 i { color: var(--accent-lime); }
.section-header-titles p { font-size: 13.5px; color: var(--text-muted); margin-top: 4px; }

/* --- PROPRIETARY PLATFORMS SECTION (PROJELER SAYFASI) --- */
.projects-section {
    display: flex;
    flex-direction: column;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-3px);
    border-color: rgba(222, 255, 154, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.project-card.highlight-football {
    border-top: 2px solid var(--accent-cyan);
}

.project-card.highlight-cyber {
    border-top: 2px solid var(--accent-lime);
}

.project-card.highlight-expansion {
    border-top: 2px solid var(--text-dim);
    opacity: 0.85;
}

.project-top-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.project-icon {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.project-icon.football { background: rgba(0, 255, 255, 0.1); color: var(--accent-cyan); border: 1px solid rgba(0, 255, 255, 0.25); }
.project-icon.cyber { background: rgba(222, 255, 154, 0.1); color: var(--accent-lime); border: 1px solid rgba(222, 255, 154, 0.25); }
.project-icon.expansion { background: rgba(255, 255, 255, 0.04); color: #888; border: 1px solid rgba(255, 255, 255, 0.1); }

.project-status-pill {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-status-pill.online {
    background: rgba(0, 255, 65, 0.08);
    color: var(--accent-green);
    border: 1px solid rgba(0, 255, 65, 0.25);
}

.project-status-pill.standby {
    background: rgba(255, 170, 0, 0.08);
    color: var(--accent-orange);
    border: 1px solid rgba(255, 170, 0, 0.25);
}

.project-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.project-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.project-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.spec-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #bbb;
    font-family: var(--font-mono);
    font-size: 10.5px;
    padding: 3px 7px;
    border-radius: 3px;
}

.btn-project-launch {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-project-launch.football-btn {
    background: var(--accent-cyan);
    color: #000;
    border: none;
}

.btn-project-launch.football-btn:hover {
    box-shadow: 0 0 16px rgba(0, 255, 255, 0.35);
    background: #fff;
}

.btn-project-launch.cyber-btn {
    background: var(--accent-lime);
    color: #000;
    border: none;
}

.btn-project-launch.cyber-btn:hover {
    box-shadow: 0 0 16px rgba(222, 255, 154, 0.35);
    background: #fff;
}

.btn-project-launch.disabled-btn {
    background: rgba(255, 255, 255, 0.04);
    color: #666;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    cursor: not-allowed;
}

/* --- INTERACTIVE LAB GRID --- */
.lab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.lab-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    transition: all 0.25s ease;
}

.lab-card:hover {
    border-color: rgba(222, 255, 154, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.lab-card-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lab-card-icon {
    font-size: 24px;
    color: var(--accent-lime);
}

.lab-card-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.lab-card-header p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

.lab-input-group {
    display: flex;
    gap: 10px;
}

.lab-text-input {
    flex: 1;
    background: #020202;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 14px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    transition: border 0.2s;
}

.lab-text-input:focus {
    outline: none;
    border-color: var(--accent-lime);
}

.btn-lab-action {
    background: var(--accent-lime);
    color: #000;
    border: none;
    padding: 10px 18px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-lab-action:hover {
    background: #fff;
    box-shadow: 0 0 16px rgba(222, 255, 154, 0.4);
}

.lab-quick-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.quick-ip-chip {
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-ip-chip:hover {
    border-color: var(--accent-lime);
    color: var(--accent-lime);
}

.lab-result-box {
    display: none;
    background: #040405;
    border: 1px solid rgba(222, 255, 154, 0.15);
    border-radius: 6px;
    padding: 14px;
    font-family: var(--font-mono);
    font-size: 12px;
    flex-direction: column;
    gap: 8px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.result-row:last-child { border-bottom: none; padding-bottom: 0; }
.result-label { color: var(--text-muted); }
.result-val { color: var(--accent-lime); font-weight: 600; }
.result-val.threat { color: var(--accent-red); }

/* --- RADAR AND LIVE FEED SECTION --- */
.telemetry-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
}

.radar-wrapper, .live-feed-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.radar-canvas-container {
    position: relative;
    width: 100%;
    height: 320px;
    background: #020409 url('/static/img/world-map.svg') no-repeat center center;
    background-size: 100% 100%;
    border: 1px solid rgba(0, 255, 255, 0.22);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.9), 0 0 25px rgba(0, 255, 255, 0.08);
}

#attackMapCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.feed-scroller {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feed-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 9px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 11px;
}

.feed-item.blocked {
    background: rgba(255, 51, 102, 0.04);
    border-color: rgba(255, 51, 102, 0.2);
}

.feed-ip { font-weight: 700; color: #fff; }
.feed-type { color: var(--accent-lime); }
.feed-item.blocked .feed-type { color: var(--accent-red); }

/* --- 4 PILLARS SECTION --- */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.pillar-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pillar-num {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-lime);
    letter-spacing: 1px;
}

.pillar-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.pillar-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- FOOTER --- */
footer {
    border-top: 1px solid var(--border-subtle);
    padding: 30px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 12.5px;
    font-family: var(--font-mono);
}

footer a { color: var(--accent-lime); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* --- UNIFIED CLIENT LOGIN MODAL --- */
#unifiedLoginModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(14px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.client-modal-card {
    background: #090a0f;
    border: 1px solid var(--accent-cyan);
    border-radius: 10px;
    width: 90%;
    max-width: 420px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.15);
}

.client-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    padding-bottom: 12px;
}

.client-modal-header h3 {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- OPERATOR VAULT MODAL (ADMIN) --- */
#operatorVaultModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(14px);
    z-index: 999;
    align-items: center;
    justify-content: center;
}

.vault-container {
    background: #08090d;
    border: 1px solid var(--accent-lime);
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 0 50px rgba(222, 255, 154, 0.12);
}

.vault-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 14px;
}

.vault-header h3 {
    font-family: var(--font-mono);
    font-size: 15px;
    color: var(--accent-lime);
    display: flex;
    align-items: center;
    gap: 8px;
}

.vault-close {
    background: none;
    border: none;
    color: #888;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}

.vault-close:hover { color: #fff; }

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 380px;
    margin: 30px auto;
    text-align: center;
}

/* --- VAULT TABS --- */
.vault-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 10px;
}

.vault-tab-btn {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 11.5px;
    padding: 7px 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vault-tab-btn:hover {
    color: #fff;
    border-color: #777;
}

.vault-tab-btn.active {
    background: rgba(222, 255, 154, 0.12);
    border-color: var(--accent-lime);
    color: var(--accent-lime);
}

.vault-tab-pane {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.vault-tab-pane.active {
    display: flex;
}

/* --- USERS TABLE & CONTROLS --- */
.users-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11.5px;
    font-family: var(--font-mono);
}

.users-table th {
    text-align: left;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-subtle);
    text-transform: uppercase;
    font-size: 11px;
}

.users-table td {
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #ddd;
    vertical-align: middle;
}

.tier-pill {
    padding: 2px 7px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
}

.tier-pill.trial { background: rgba(255, 170, 0, 0.15); color: var(--accent-orange); border: 1px solid rgba(255, 170, 0, 0.3); }
.tier-pill.month { background: rgba(0, 255, 255, 0.15); color: var(--accent-cyan); border: 1px solid rgba(0, 255, 255, 0.3); }
.tier-pill.annual { background: rgba(0, 255, 65, 0.15); color: var(--accent-green); border: 1px solid rgba(0, 255, 65, 0.3); }
.tier-pill.unlimited { background: rgba(222, 255, 154, 0.15); color: var(--accent-lime); border: 1px solid rgba(222, 255, 154, 0.3); }

.user-add-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    padding: 14px;
    border-radius: 6px;
}

.user-add-grid select, .user-add-grid input {
    background: #020202;
    border: 1px solid #2a2e38;
    color: #fff;
    padding: 8px 10px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 12px;
    outline: none;
}

.user-add-grid select:focus, .user-add-grid input:focus {
    border-color: var(--accent-lime);
}

.perm-checkbox-group {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: #ccc;
    grid-column: span 2;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .projects-grid { grid-template-columns: 1fr; }
    .user-add-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}

@media (max-width: 800px) {
    .lab-grid, .telemetry-layout { grid-template-columns: 1fr; }
    .hero-title { font-size: 36px; }
}
