/* SGC GLOBAL STYLE v11.0 (STARGATE INTERFACE THEME) */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

/* ОСНОВНОЙ ФОН - ЧЕРНЫЙ, ТЕКСТ - ГОЛУБОВАТО-БЕЛЫЙ */
body { 
    background: #000000; 
    color: #ccffff; 
    font-family: 'Share Tech Mono', monospace; 
    margin: 0;
    font-size: 14px; 
    background-image: 
        linear-gradient(rgba(0, 50, 80, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 50, 80, 0.1) 1px, transparent 1px);
    background-size: 50px 50px; /* Эффект сетки на фоне */
}

a { text-decoration: none; transition: 0.2s; }
img { vertical-align: middle; }

/* NAVBAR - ЛИНИИ ИНТЕРФЕЙСА */
.navbar { 
    background: #000000;
    border-bottom: 2px solid #00aaff; /* Ярко-голубая линия */
    padding: 0 30px; height: 60px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0;
    z-index: 100; 
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.3); /* Голубое свечение */
}

.logo-container { display: flex; align-items: center; gap: 15px; }
.logo-img { height: 40px; width: auto; }
.logo { 
    font-size: 26px; 
    color: #ffae00; /* Оранжевый как ABYDOS */
    font-weight: 900; 
    letter-spacing: 3px; 
    text-transform: uppercase; 
    text-shadow: 0 0 10px rgba(255, 174, 0, 0.5);
}

/* BUTTONS - КРИСТАЛЛЫ ИНТЕРФЕЙСА */
.nav-btn { 
    display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 15px; margin-left: 8px;
    border: 1px solid #006699; 
    background: rgba(0, 20, 30, 0.8); 
    color: #00ccff; 
    font-size: 13px; font-weight: bold; text-transform: uppercase; cursor: pointer; white-space: nowrap; transition: 0.2s;
    box-shadow: inset 0 0 10px rgba(0, 100, 200, 0.2);
}
.nav-btn:hover { 
    background: #00aaff; 
    color: #000; 
    border-color: #00aaff; 
    box-shadow: 0 0 15px #00aaff; 
}

.nav-btn.red { border-color: #ff3333; color: #ff3333; } 
.nav-btn.red:hover { background: #ff3333; color: #000; box-shadow: 0 0 15px #ff3333; }

.nav-btn.green { border-color: #00ff00; color: #00ff00; } 
.nav-btn.green:hover { background: #00ff00; color: #000; box-shadow: 0 0 15px #00ff00; }

.nav-btn.blue { border-color: #00aaff; color: #00aaff; } 
.nav-btn.blue:hover { background: #00aaff; color: #000; box-shadow: 0 0 15px #00aaff; }

.lang-switch { display: inline-flex; gap: 5px; margin-left: 15px; border-left: 1px solid #004466; padding-left: 15px; }
.lang-link { color: #446677; font-size: 11px; font-weight: bold; padding: 5px; }
.lang-link:hover { color: #00aaff; text-shadow: 0 0 5px #00aaff; }

.container { max-width: 1400px; margin: 30px auto; padding: 0 20px; }

/* КАРТОЧКИ - ПАНЕЛИ ИНТЕРФЕЙСА */
.card { 
    background: rgba(5, 10, 15, 0.9); /* Почти черный прозрачный */
    border: 1px solid #005588; /* Темно-голубая рамка */
    padding: 25px;
    margin-bottom: 20px; 
    box-shadow: 0 0 20px rgba(0, 100, 200, 0.1); 
    position: relative; 
}
/* Эффект углов как в интерфейсе врат */
.card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 10px; height: 10px;
    border-top: 2px solid #00aaff; border-left: 2px solid #00aaff;
}
.card::after {
    content: ''; position: absolute; bottom: 0; right: 0; width: 10px; height: 10px;
    border-bottom: 2px solid #00aaff; border-right: 2px solid #00aaff;
}

/* === RADIO SWITCH === */
.radio-group { display: flex; gap: 15px; margin-bottom: 10px; }
.radio-item { display: flex; align-items: center; cursor: pointer; }
.radio-item input { display: none; }
.radio-item span { padding: 5px 10px; border: 1px solid #004466; color: #6688aa; font-size: 12px; }
.radio-item input:checked + span { border-color: #ffae00; color: #ffae00; background: rgba(255, 174, 0, 0.1); box-shadow: 0 0 10px rgba(255, 174, 0, 0.2); }

/* === PROFILES & STATS === */
.dossier-grid { display: flex; gap: 25px; align-items: flex-start; }
.avatar-box { text-align: center; width: 140px; }
.avatar-img { width: 128px; height: 128px; object-fit: cover; border: 2px solid #00aaff; box-shadow: 0 0 15px rgba(0, 170, 255, 0.4); }
.steamid-lbl { margin-top: 8px; color: #00aaff; font-size: 11px; letter-spacing: 1px; }

.info-box { flex: 1; }
.info-header { border-bottom: 1px solid #004466; padding-bottom: 10px; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: flex-end; }
.info-name { font-size: 32px; color: #fff; font-weight: bold; line-height: 1; text-shadow: 0 0 10px rgba(255,255,255,0.3); }
.info-meta { color: #6699bb; font-size: 13px; margin-top: 5px; }
.info-meta span { color: #aaddff; margin-right: 15px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.stat-item { 
    background: rgba(0, 20, 40, 0.6); 
    border: 1px solid #004466; 
    border-left: 3px solid #00aaff; /* Акцент слева */
    padding: 10px 15px; 
}
.stat-label { font-size: 11px; color: #0088cc; text-transform: uppercase; display: block; margin-bottom: 4px; }
.stat-value { font-size: 16px; color: #fff; font-weight: bold; letter-spacing: 0.5px; }
.stat-value.rank { color: #ffae00; text-shadow: 0 0 8px rgba(255, 174, 0, 0.4); }
.stat-value.active { color: #00ff00; text-shadow: 0 0 8px rgba(0, 255, 0, 0.4); }
.stat-value.banned { color: #ff3333; text-shadow: 0 0 8px rgba(255, 51, 51, 0.4); }

/* === TICKET VIEW STYLES === */
.ticket-header { 
    background: rgba(0, 20, 40, 0.5); 
    border: 1px solid #005588; 
    padding: 15px; margin-bottom: 20px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; 
}
.th-item { display: flex; flex-direction: column; border-right: 1px solid #003344; padding-right: 10px; }
.th-item:last-child { border-right: none; }
.th-lbl { font-size: 10px; color: #0088cc; margin-bottom: 2px; text-transform: uppercase; }
.th-val { font-size: 14px; color: #fff; font-weight: bold; }

/* CHAT */
.chat-container { display: flex; flex-direction: column; gap: 15px; height: 500px; overflow-y: auto; padding: 20px; background: #00050a; border: 1px solid #004466; margin-bottom: 20px; box-shadow: inset 0 0 20px rgba(0,0,0,0.8); }
.chat-msg { max-width: 75%; padding: 12px 16px; border-radius: 0; /* Квадратные */ position: relative; font-size: 14px; line-height: 1.5; border: 1px solid transparent; }
.chat-msg .meta { font-size: 11px; font-weight: bold; margin-bottom: 5px; display: block; opacity: 0.8; }
.chat-msg .text { white-space: pre-wrap; }

/* User Msg */
.chat-msg.user { align-self: flex-start; background: rgba(0, 80, 150, 0.1); border: 1px solid #004466; border-left: 3px solid #00aaff; color: #aaddff; }
.chat-msg.user .meta { color: #00aaff; }

/* Admin Msg */
.chat-msg.admin { align-self: flex-end; background: rgba(150, 80, 0, 0.1); border: 1px solid #664400; border-right: 3px solid #ffae00; color: #ffeedd; text-align: right; }
.chat-msg.admin .meta { color: #ffae00; }

/* System Msg */
.chat-msg.system { align-self: center; max-width: 90%; border: 1px dashed #333; color: #666; text-align: center; padding: 5px 20px; background: transparent; font-size: 12px; font-style: italic; }

/* RESOLUTION BOX */
.res-box { border: 2px solid #ff3333; background: rgba(50, 0, 0, 0.3); padding: 20px; text-align: center; margin-top: 20px; position: relative; box-shadow: 0 0 20px rgba(255, 50, 50, 0.1); }
.res-stamp { color: #ff3333; font-size: 28px; font-weight: 900; letter-spacing: 5px; text-transform: uppercase; border: 3px solid #ff3333; display: inline-block; padding: 5px 20px; transform: rotate(-3deg); margin-bottom: 10px; opacity: 0.9; text-shadow: 0 0 10px #ff3333; }
.res-text { font-size: 16px; color: #ffaaaa; margin-top: 10px; }

/* COMMON */
.btn { 
    cursor: pointer; padding: 10px 20px; 
    border: 1px solid #005588; 
    background: #001122; 
    color: #00ccff; 
    font-size: 12px; font-weight: bold; text-transform: uppercase; display: inline-block; 
    transition: 0.2s;
}
.btn:hover { background: #00aaff; color: #000; box-shadow: 0 0 15px #00aaff; border-color: #00aaff; }

.btn-red { border-color: #ff3333; color: #ff3333; } 
.btn-red:hover { background: #ff3333; color: #000; box-shadow: 0 0 15px #ff3333; }

.btn-orange { border-color: #ffae00; color: #ffae00; } 
.btn-orange:hover { background: #ffae00; color: #000; box-shadow: 0 0 15px #ffae00; }

.btn-green { border-color: #00ff00; color: #00ff00; } 
.btn-green:hover { background: #00ff00; color: #000; box-shadow: 0 0 15px #00ff00; }

.btn-small { padding: 4px 10px; font-size: 10px; }
.btn-icon { background: none; border: none; font-size: 18px; cursor: pointer; padding: 0 5px; color: #00aaff; transition: 0.2s; } 
.btn-icon:hover { color: #fff; text-shadow: 0 0 5px #fff; }

input, select, textarea { 
    background: #000810; 
    border: 1px solid #004466; 
    color: #00ccff; 
    padding: 10px; width: 100%; box-sizing: border-box; outline: none; margin-bottom: 10px; font-family: inherit; 
}
input:focus, textarea:focus, select:focus { border-color: #00aaff; box-shadow: 0 0 10px rgba(0, 170, 255, 0.3); }
.edit-form { display: none; margin-top: 20px; border-top: 1px dashed #333; padding-top: 20px; }

/* TABS */
.tabs { display: flex; border-bottom: 2px solid #004466; margin-bottom: 20px; }
.tab-link { padding: 12px 20px; color: #446688; cursor: pointer; border: 1px solid transparent; border-bottom: none; font-weight: bold; font-size: 14px; }
.tab-link:hover { color: #00aaff; background: rgba(0, 170, 255, 0.05); }
.tab-link.active { 
    color: #ffae00; /* Активная вкладка оранжевая */
    background: rgba(10, 20, 30, 0.8); 
    border-color: #004466; 
    border-bottom: 2px solid #000; 
    margin-bottom: -2px; 
    text-shadow: 0 0 5px rgba(255, 174, 0, 0.3);
}

table { width: 100%; border-collapse: collapse; background: rgba(0,0,0,0.2); font-size: 13px; }
th { background: rgba(0, 60, 100, 0.3); color: #00aaff; padding: 12px; text-align: left; border-bottom: 2px solid #004466; text-transform: uppercase; letter-spacing: 1px; }
td { padding: 12px; border-bottom: 1px solid #002233; vertical-align: middle; color: #aaddff; }
tr:hover { background: rgba(0, 170, 255, 0.05); }

.badge { padding: 3px 6px; font-size: 10px; border-radius: 0; font-weight: bold; display: inline-block; text-transform: uppercase; border: 1px solid transparent; }
.st-new { border-color: #00c8ff; color: #00c8ff; background: rgba(0, 200, 255, 0.1); } 
.st-open { border-color: #00ff00; color: #00ff00; background: rgba(0, 255, 0, 0.1); }
.st-closed { border-color: #666; color: #888; background: transparent; }
.st-admin_wait { border-color: #ffae00; color: #ffae00; background: rgba(255, 174, 0, 0.1); } 
.st-user_wait { border-color: #bd00ff; color: #bd00ff; background: rgba(189, 0, 255, 0.1); }

.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); backdrop-filter: blur(5px); }
.modal-content { 
    background: #00050a; 
    border: 2px solid #00aaff; 
    margin: 5% auto; padding: 30px; width: 70%; max-height: 85vh; overflow-y: auto; 
    box-shadow: 0 0 50px rgba(0, 170, 255, 0.2); 
}
.close { color: #ff3333; float: right; font-size: 32px; cursor: pointer; font-weight: bold; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #004466; }
::-webkit-scrollbar-thumb:hover { background: #00aaff; }

/* MOBILE FIX */
@media (max-width: 768px) {
    .container { padding: 0 10px; }
    .ticket-header, .stats-grid { grid-template-columns: 1fr; }
    .navbar { padding: 0 10px; }
    .logo { font-size: 20px; }
    table { display: block; overflow-x: auto; }
}