/* CSS Reset & Modern Variable Tokens */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-main: #0c0d12;
    --bg-card: #14161d;
    --bg-sidebar: #1b1e26;
    --border-color: rgba(255, 255, 255, 0.05);
    
    --color-primary: #ff8800; /* Tactical Gold/Orange */
    --color-primary-glow: rgba(255, 136, 0, 0.25);
    --color-secondary: #00e676;
    --color-accent: #f49e0b;
    --color-text-main: #f5f5f7;
    --color-text-muted: #848a97;
    
    --color-success: #00e676;
    --color-danger: #ff1744;
    --color-warning: #ffb703;
    
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition-smooth: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--bg-main);
    color: var(--color-text-main);
    font-family: var(--font-sans);
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 136, 0, 0.25);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Glassmorphism utility */
.glassmorphism {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

/* Helpers */
.hidden {
    display: none !important;
}
.pointer {
    cursor: pointer;
}
.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.centering {
    display: flex;
    justify-content: center;
    align-items: center;
}
.relative {
    position: relative;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 0.65rem 1.25rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #cc5500 100%);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--color-primary-glow);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--color-text-main);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-success {
    background: linear-gradient(135deg, #00e676 0%, #00b0ff 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 230, 118, 0.25);
}

.btn-dark {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--color-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.4rem 0.85rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-dark:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* ==========================================================================
   1. LOGIN SCREEN
   ========================================================================== */
.login-wrapper {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #1b1d26 0%, #0c0d12 100%);
    z-index: 10000;
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
    animation: slideUp 0.4s ease;
    border-top: 3px solid var(--color-primary);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-icon {
    width: 56px;
    height: 56px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff8800"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2-2s-2 .9-2 2H7c0-2.76 2.24-5 5-5s5 2.24 5 5c0 1.04-.42 1.99-1.07 2.75z"/></svg>') no-repeat center;
    background-size: contain;
    margin: 0 auto 1rem;
}

.login-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text-main);
    letter-spacing: 0.5px;
}

.login-header p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: block;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(255, 136, 0, 0.15);
}

.error-msg {
    color: var(--color-danger);
    font-size: 0.85rem;
    margin-top: 0.75rem;
    text-align: center;
}

/* ==========================================================================
   2. APP LAYOUT & TOP NAVIGATION BAR
   ========================================================================== */
.app-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

.top-nav {
    width: 100%;
    background-color: #111217;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    z-index: 1000;
}

.top-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    width: 28px;
    height: 28px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff8800"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2-2s-2 .9-2 2H7c0-2.76 2.24-5 5-5s5 2.24 5 5c0 1.04-.42 1.99-1.07 2.75z"/></svg>') no-repeat center;
    background-size: contain;
}

.brand-text h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.brand-text span {
    font-size: 0.7rem;
    color: var(--color-primary);
    text-transform: uppercase;
    font-weight: 600;
}

.top-nav-menu {
    flex-grow: 1;
    margin-left: 3rem;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-item-top {
    padding: 0.5rem 1rem;
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    position: relative;
}

.nav-item-top:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.02);
}

.nav-item-top.active {
    color: var(--color-primary);
    background-color: rgba(255, 136, 0, 0.05);
}

.arrow-down {
    border: solid var(--color-text-muted);
    border-width: 0 1.5px 1.5px 0;
    display: inline-block;
    padding: 2.5px;
    transform: rotate(45deg);
    transition: var(--transition-smooth);
}
.nav-item-top:hover .arrow-down {
    border-color: #fff;
    transform: rotate(-135deg) translate(-1px, -1px);
}

.arrow-right {
    border: solid var(--color-text-muted);
    border-width: 0 1.5px 1.5px 0;
    display: inline-block;
    padding: 2.5px;
    transform: rotate(-45deg);
    transition: var(--transition-smooth);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #161821;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    list-style: none;
    padding: 0.5rem 0;
    min-width: 200px;
    display: none;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.15s ease;
}

.dropdown-menu li {
    padding: 0.6rem 1.25rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-menu li:hover {
    color: #fff;
    background-color: rgba(255, 136, 0, 0.05);
}

.sub-dropdown {
    position: relative;
}

.sub-dropdown-menu {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: #161821;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    list-style: none;
    padding: 0.5rem 0;
    min-width: 180px;
    display: none;
    z-index: 101;
}

.sub-dropdown:hover .sub-dropdown-menu {
    display: block;
    animation: fadeIn 0.15s ease;
}

.top-nav-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.server-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.server-badge.online {
    background-color: rgba(0, 230, 118, 0.08);
    color: var(--color-success);
}

.server-badge.offline {
    background-color: rgba(255, 23, 68, 0.08);
    color: var(--color-danger);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.online .pulse-dot {
    background-color: var(--color-success);
    box-shadow: 0 0 6px var(--color-success);
    animation: pulse 1.5s infinite;
}

.offline .pulse-dot {
    background-color: var(--color-danger);
}

.system-time {
    font-family: var(--font-mono);
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-left: 1px solid var(--border-color);
    padding-left: 1.25rem;
}

.btn-logout-top {
    width: 20px;
    height: 20px;
    border: none;
    cursor: pointer;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff1744"><path d="M17 7l-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z"/></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.65;
    transition: var(--transition-smooth);
}

.btn-logout-top:hover {
    opacity: 1;
}

.content-wrapper {
    flex-grow: 1;
    overflow-y: auto;
    padding: 2rem 0;
}

.view-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    width: 100%;
    transition: max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-container.full-width {
    max-width: 95%;
}

.tab-view {
    display: none;
}

.tab-view.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ==========================================================================
   3. DASHBOARD VIEW (REPLICA)
   ========================================================================== */
.dashboard-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.dashboard-title-bar .title-left .sub {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 1px;
}

.dashboard-title-bar .title-left h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-top: 0.15rem;
}

.server-header-card {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.tag-pro {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    background-color: rgba(255,255,255,0.04);
    border-radius: 4px;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}
.tag-pro span {
    color: #b05fe6;
}

.server-header-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.2px;
}

.badges-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.ip-badge {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.ip-badge:hover {
    background-color: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.copy-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23848a97"><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.6;
}
.ip-badge:hover .copy-icon {
    opacity: 1;
}

.header-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.status-indicator-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}
.status-indicator-badge.online {
    background-color: rgba(0, 230, 118, 0.1);
    color: var(--color-success);
}
.status-indicator-badge.offline {
    background-color: rgba(255, 23, 68, 0.1);
    color: var(--color-danger);
}

.control-dropdown-btn {
    display: flex;
    position: relative;
}

.btn-restart-action {
    background-color: rgba(255, 136, 0, 0.08);
    color: var(--color-primary);
    border: 1px solid rgba(255, 136, 0, 0.25);
    border-radius: 4px 0 0 4px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}
.btn-restart-action:hover {
    background-color: var(--color-primary);
    color: #fff;
}

.btn-dropdown-arrow {
    background-color: rgba(255, 136, 0, 0.08);
    border: 1px solid rgba(255, 136, 0, 0.25);
    border-left: none;
    border-radius: 0 4px 4px 0;
    padding: 0.5rem 0.65rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
    transition: var(--transition-smooth);
}
.btn-dropdown-arrow:hover {
    background-color: rgba(255, 136, 0, 0.15);
}
.btn-dropdown-arrow::after {
    content: "";
    border: solid var(--color-primary);
    border-width: 0 1.5px 1.5px 0;
    display: inline-block;
    padding: 2px;
    transform: rotate(45deg);
}
.btn-restart-action:hover + .btn-dropdown-arrow::after,
.btn-dropdown-arrow:hover::after {
    border-color: #fff;
}

.control-arrow-menu {
    position: absolute;
    top: 105%;
    right: 0;
    background-color: #161821;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    min-width: 140px;
    z-index: 50;
}
.control-arrow-menu div {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}
.control-arrow-menu div:hover {
    color: #fff;
    background-color: rgba(255, 136, 0, 0.08);
}

.dashboard-row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.dashboard-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.col-8 { grid-column: span 8; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }

.card-header h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
}

.card-header .sub {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 0.15rem;
}

.chart-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.chart-container-svg {
    width: 100%;
    position: relative;
    padding-bottom: 2rem;
}

.svg-chart-graph {
    width: 100%;
    height: 100px;
    overflow: visible;
}

.chart-tooltip {
    position: absolute;
    background-color: #1c1d24;
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    pointer-events: none;
    z-index: 10;
}
.chart-tooltip .time {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
}
.chart-tooltip .val {
    font-size: 0.75rem;
    color: #ff8800;
    font-weight: 600;
    margin-top: 0.15rem;
}
.chart-tooltip .map {
    font-size: 0.65rem;
    color: var(--color-text-muted);
}

.chart-footer-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.chart-footer-caption::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23848a97"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>') no-repeat center;
    background-size: contain;
}

.gauge-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    gap: 1.5rem;
}

.gauge-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
}

.gauge-svg {
    width: 100%;
    height: 100%;
}

.gauge-text {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.gauge-text h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.gauge-sub-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    text-align: center;
}
.gauge-sub-row span {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    font-weight: 600;
}
.gauge-sub-row h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-top: 0.15rem;
}

.stats-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-card-flat {
    padding: 1rem 1.25rem;
    border-radius: 4px;
}
.info-card-flat .lbl {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
}
.info-card-flat h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-top: 0.35rem;
}
.info-card-flat .val-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-swap-icon {
    width: 16px;
    height: 16px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23f49e0b"><path d="M19 8l-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4H6z"/></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.8;
    transition: var(--transition-smooth);
}
.map-swap-icon:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.dot-green {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-success);
    box-shadow: 0 0 5px var(--color-success);
    margin-right: 0.35rem;
    vertical-align: middle;
}

.guards-panel {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.guards-panel .caption {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
}

.guards-row-list {
    flex-grow: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.guard-tag {
    padding: 0.3rem 0.65rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.04);
}
.guard-tag.active {
    background-color: rgba(255,255,255,0.02);
    color: var(--color-text-muted);
}

.guards-buttons {
    display: flex;
    gap: 0.5rem;
}

/* ==========================================================================
   4. CONSOLE & LOGS VIEWS
   ========================================================================== */
.console-wrapper {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 180px);
}

.console-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.console-body {
    flex-grow: 1;
    background-color: rgba(0, 0, 0, 0.45);
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.6;
    overflow-y: auto;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.console-body div {
    word-break: break-all;
    white-space: pre-wrap;
}

.system-log { color: #666; font-style: italic; }
.cmd-log { color: var(--color-primary); }
.cmd-output { color: #bbb; }

.console-input-area {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 0, 0, 0.15);
    gap: 0.75rem;
}

.console-input-area .prompt {
    font-family: var(--font-mono);
    color: var(--color-primary);
    font-weight: 700;
}

.console-input-area input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.console-input-area .btn-primary {
    width: auto;
    padding: 0.45rem 1.25rem;
    font-size: 0.8rem;
}

/* ==========================================================================
   5. NEW DRAG DROP UPLOADERS & PLUGINS REPLICA STYLING
   ========================================================================== */
.drag-drop-zone {
    border: 2px dashed rgba(255,255,255,0.06);
    border-radius: 6px;
    background-color: rgba(0,0,0,0.15);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.drag-drop-zone:hover,
.drag-drop-zone.dragover {
    border-color: var(--color-primary);
    background-color: rgba(255,136,0,0.03);
}
.drag-drop-zone p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.sma-upload-status,
.amxx-upload-status {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    max-height: 80px;
    overflow-y: auto;
    color: var(--color-text-muted);
    text-align: left;
}

/* Custom Plugins List View */
.plugins-replica-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1rem;
}

.plugin-replica-item {
    background-color: #1a1c24;
    border: 1px solid rgba(255,255,255,0.02);
    border-radius: 4px;
    padding: 0.85rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}
.plugin-replica-item:hover {
    background-color: #1e2029;
    border-color: rgba(255,255,255,0.05);
}

.plugin-replica-item .plug-icon-col {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 60%;
}

.plugin-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background-color: rgba(255,255,255,0.02);
    display: flex;
    justify-content: center;
    align-items: center;
}
.plugin-icon-box::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23848a97"><path d="M19 9h-2V3H7v6H5c-1.1 0-2 .9-2 2v3h2v10h14V14h2v-3c0-1.1-.9-2-2-2zM9 5h6v4H9V5zm8 17H7V14h10v8zm2-10H5v-1c0-.55.45-1 1-1h12c.55 0 1 .45 1 1v1z"/></svg>') no-repeat center;
    background-size: contain;
}

.plugin-replica-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.plugin-replica-info .status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    display: inline-block;
}
.plugin-replica-info .status-dot.active { background-color: var(--color-success); box-shadow: 0 0 4px var(--color-success); }
.plugin-replica-info .status-dot.inactive { background-color: var(--color-danger); }

.plugin-replica-info p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 0.15rem;
}

.plugin-replica-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-replica-action {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.05);
    background-color: rgba(255,255,255,0.02);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
}
.btn-replica-action:hover {
    background-color: rgba(255,255,255,0.08);
}

.icon-pause::before { content: "||"; font-size: 0.7rem; font-weight: bold; color: var(--color-warning); }
.icon-play::before { content: "▶"; font-size: 0.65rem; color: var(--color-success); }
.icon-edit::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2300b0ff"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>') no-repeat center;
    background-size: contain;
}
.icon-compile::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2300e676"><path d="M19 8l-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4H6z"/></svg>') no-repeat center;
    background-size: contain;
}
.icon-delete::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff1744"><path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"/></svg>') no-repeat center;
    background-size: contain;
}
.icon-hide::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffd166"><path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"/></svg>') no-repeat center;
    background-size: contain;
}

/* ==========================================================================
   6. ADMIN MANAGEMENT TABLE
   ========================================================================== */
.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-card-header .btn-primary,
.admin-card-header .btn-secondary {
    width: auto;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.admin-table,
.fm-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th,
.fm-table th {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--color-text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
}

.admin-table td,
.fm-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.015);
    font-size: 0.85rem;
    color: #fff;
}

.admin-table tbody tr:hover,
.fm-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.01);
}

.badge {
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}
.badge.active {
    background-color: rgba(0, 230, 118, 0.08);
    color: var(--color-success);
}
.badge.inactive {
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--color-text-muted);
}
.badge.warning {
    background-color: rgba(255, 183, 3, 0.08);
    color: var(--color-warning);
}

.admin-flags-cell {
    font-family: var(--font-mono);
    color: var(--color-primary);
}

.actions {
    text-align: right;
}

.btn-icon-danger {
    background: transparent;
    border: none;
    color: var(--color-danger);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    transition: var(--transition-smooth);
}
.btn-icon-danger:hover {
    background: rgba(255, 23, 68, 0.08);
}

.admin-footer-actions {
    display: flex;
    justify-content: flex-end;
}

/* ==========================================================================
   7. CONFIG FILE EDITOR VIEW
   ========================================================================== */
.configs-wrapper {
    display: flex;
    height: calc(100vh - 180px);
}

.configs-sidebar {
    width: 200px;
    border-right: 1px solid var(--border-color);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.configs-sidebar h4 {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.configs-sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.configs-sidebar li {
    padding: 0.55rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition-smooth);
    color: var(--color-text-muted);
}
.configs-sidebar li:hover {
    background-color: rgba(255, 255, 255, 0.02);
    color: #fff;
}
.configs-sidebar li.active {
    background-color: rgba(255, 136, 0, 0.05);
    color: var(--color-primary);
}

.configs-editor-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.editor-header {
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.editor-header span {
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
}
.editor-header .btn-success {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
}

#config-text-editor {
    flex-grow: 1;
    background-color: rgba(0, 0, 0, 0.25);
    border: none;
    padding: 1.5rem;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    outline: none;
    resize: none;
    line-height: 1.6;
}

/* ==========================================================================
   8. FILE MANAGER VIEW
   ========================================================================== */
.filemanager-wrapper {
    display: flex;
    flex-direction: column;
    height: auto;
    background: rgba(255, 255, 255, 0.01);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    margin-bottom: 2rem;
}

.fm-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fm-path {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-primary);
    background: rgba(0, 0, 0, 0.35);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
}
.fm-path span:first-child {
    color: var(--color-text-muted);
    font-weight: 600;
}

.fm-actions {
    display: flex;
    gap: 0.6rem;
}
.fm-actions .btn-primary {
    width: auto;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.fm-body {
    flex-grow: 1;
    padding: 0.5rem;
}

.fm-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 3px;
    text-align: left;
}

.fm-table th {
    padding: 0.65rem 1rem;
    color: var(--color-text-muted);
    font-size: 0.725rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.75px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.04);
}

.fm-table td {
    padding: 0.4rem 0.85rem;
    background: rgba(255, 255, 255, 0.015);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    font-size: 0.8rem;
    color: var(--color-text-main);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.fm-table tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.045);
    color: #fff;
}

.fm-table td .folder-icon,
.fm-table td .file-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 0.5rem;
    transition: transform 0.15s ease;
}

.fm-table tbody tr:hover .folder-icon,
.fm-table tbody tr:hover .file-icon {
    transform: scale(1.1);
}

.folder-icon { background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff9f43"><path d="M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"/></svg>') no-repeat center; background-size: contain; }
.file-icon { background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2354a0ff"><path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"/></svg>') no-repeat center; background-size: contain; }

.fm-table .btn-icon-danger {
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(255, 23, 68, 0.08);
    border: 1px solid rgba(255, 23, 68, 0.15);
    color: #ff4d6d;
    transition: all 0.15s ease;
}

.fm-table .btn-icon-danger:hover {
    background: rgba(255, 23, 68, 0.22);
    border-color: rgba(255, 23, 68, 0.35);
    color: #fff;
}

.fm-table .btn-dark {
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e4e4e7;
    transition: all 0.15s ease;
}

.fm-table .btn-dark:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* ==========================================================================
   9. MODALS SYSTEM
   ========================================================================== */
.modal-wrapper {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 11000;
}

.modal-card {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    animation: zoomIn 0.15s ease;
    border-top: 3px solid var(--color-primary);
}

.modal-card.mini { max-width: 360px; }
.modal-card.large {
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 1.75rem 2.25rem 2.25rem 2.25rem;
}

.modal-card.large .modal-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.modal-header h3 {
    font-size: 1.25rem;
    color: #fff;
    font-weight: 600;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.modal-close:hover {
    color: #fff;
}

.flags-help {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 0.35rem;
    line-height: 1.4;
}

#file-modal-content {
    width: 100%;
    height: 60vh;
    min-height: 450px;
    flex-grow: 1;
    background-color: #121214;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: #e4e4e7;
    font-family: 'Consolas', 'Fira Code', 'Monaco', 'Courier New', Courier, monospace;
    font-size: 0.875rem;
    padding: 1.25rem;
    outline: none;
    resize: none;
    margin-bottom: 1.25rem;
    line-height: 1.6;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

#file-modal-content:focus {
    border-color: var(--color-primary);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(255, 136, 0, 0.2);
}

.file-modal-actions {
    display: flex;
    justify-content: flex-end;
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 12000;
}

.toast {
    padding: 0.9rem 1.35rem;
    background: rgba(22, 24, 33, 0.95);
    border-left: 4px solid var(--color-primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border-radius: 4px;
    color: #fff;
    font-size: 0.85rem;
    min-width: 250px;
    max-width: 350px;
    animation: slideInRight 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transition: opacity 0.25s ease;
}
.toast.success { border-left-color: var(--color-success); }
.toast.error { border-left-color: var(--color-danger); }
.toast.warning { border-left-color: var(--color-warning); }

/* ==========================================================================
   10. MAPS CYCLE & UPLOAD VIEW LAYOUTS
   ========================================================================== */
.mapcycle-manager-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.mapcycle-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.mapcycle-column h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.mapcycle-checkbox-list {
    background-color: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem;
    height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.mapcycle-chk-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    cursor: pointer;
}
.mapcycle-chk-item input {
    cursor: pointer;
}

.mapcycle-active-list {
    background-color: rgba(0,0,0,0.25);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem;
    height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.mapcycle-active-item {
    padding: 0.45rem 0.75rem;
    background-color: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-upload-box {
    text-align: center;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 3rem;
    max-width: 500px;
    width: 100%;
}
.upload-big-icon {
    display: block;
    width: 48px;
    height: 48px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23848a97"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z"/></svg>') no-repeat center;
    background-size: contain;
    margin: 0 auto 1.5rem;
    opacity: 0.6;
}
.map-upload-box p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}
.upload-progress-text {
    font-size: 0.85rem;
    color: var(--color-primary);
    margin-top: 1rem;
    font-weight: 600;
}

.settings-form-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.form-row-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.imessages-inputs-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.imessage-input-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.imessage-input-row input[type="text"] {
    flex-grow: 1;
}
.imessage-input-row input[type="color"] {
    width: 44px;
    height: 38px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

/* ==========================================================================
   11. ANIMATIONS
   ========================================================================== */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(15px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.96); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   12. WEAPONS GRID & INTERACTIVE CARDS
   ========================================================================== */
.weapons-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
    width: 100%;
}

.weapon-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 120px;
}

.weapon-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 159, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.weapon-card:active {
    transform: scale(0.94) translateY(0);
    transition: transform 0.05s ease;
}

.weapon-icon-wrapper {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.weapon-icon-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.15s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.weapon-name-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #e0e0e0;
    text-align: center;
    margin-top: 0.5rem;
    transition: color 0.15s ease;
}

.restriction-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(76, 175, 80, 0.9);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: all 0.15s ease;
}

.weapon-card.restricted {
    background: rgba(244, 67, 54, 0.04);
    border-color: rgba(244, 67, 54, 0.35);
    box-shadow: inset 0 0 10px rgba(244, 67, 54, 0.08);
}

.weapon-card.restricted:hover {
    background: rgba(244, 67, 54, 0.07);
    border-color: rgba(244, 67, 54, 0.55);
}

.weapon-card.restricted .weapon-icon-img {
    filter: drop-shadow(0 0 5px rgba(244, 67, 54, 0.4)) grayscale(0.6) opacity(0.35);
}

.weapon-card.restricted::before {
    content: '';
    position: absolute;
    top: 45%;
    left: 10%;
    width: 80%;
    height: 2px;
    background: rgba(244, 67, 54, 0.7);
    transform: rotate(-15deg);
    z-index: 2;
    pointer-events: none;
    box-shadow: 0 0 4px rgba(244, 67, 54, 0.8);
}

.weapon-card.restricted .restriction-badge {
    background: rgba(244, 67, 54, 0.9);
    box-shadow: 0 0 5px rgba(244, 67, 54, 0.3);
}

.weapon-card.restricted .weapon-name-label {
    color: #ff9d9d;
}

/* ==========================================================================
   13. MODERN GAME CONFIGURATION STYLES
   ========================================================================== */
.game-settings-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.settings-glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.settings-glass-card:hover {
    border-color: rgba(255, 136, 0, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.settings-card-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
    margin-bottom: 0.5rem;
}

.settings-title-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 136, 0, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: inset 0 0 6px rgba(255, 136, 0, 0.2);
}

.settings-glass-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    margin: 0;
}

.switch-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 0.85rem 1.1rem;
    border-radius: 8px;
    transition: background 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.switch-item-row:hover {
    background: rgba(255, 255, 255, 0.015);
    border-color: rgba(255, 255, 255, 0.06);
}

.switch-label-desc {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.switch-label-desc span.title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e0e0e0;
}

.switch-label-desc span.desc {
    font-size: 0.72rem;
    color: var(--color-text-muted);
}

.modern-switch-wrapper {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.modern-switch-wrapper input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #aaa;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
}

.modern-switch-wrapper input:checked + .switch-slider {
    background-color: rgba(255, 136, 0, 0.2);
    border-color: rgba(255, 136, 0, 0.4);
}

.modern-switch-wrapper input:checked + .switch-slider:before {
    transform: translateX(20px);
    background-color: var(--color-primary);
    box-shadow: 0 0 8px rgba(255, 136, 0, 0.6);
}

.slider-group-box {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.slider-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slider-label-text {
    font-size: 0.82rem;
    font-weight: 500;
    color: #ccc;
}

.slider-value-display {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
    background: rgba(255, 136, 0, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 136, 0, 0.2);
    min-width: 35px;
    text-align: center;
}

.custom-range-input {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    transition: background 0.3s;
}

.custom-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    box-shadow: 0 0 6px rgba(255, 136, 0, 0.5);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.custom-range-input::-webkit-slider-thumb:hover {
    transform: scale(1.25);
    box-shadow: 0 0 10px rgba(255, 136, 0, 0.8);
}

.modern-input-field {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: #fff;
    padding: 0.6rem 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    outline: none;
    transition: all 0.2s ease;
}

.modern-input-field:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 8px rgba(255, 136, 0, 0.2);
}

/* Live Chat Logs Layout */
.chat-log-feed {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    height: 100%;
    overflow-y: auto;
    font-family: var(--font-sans);
}

.chat-log-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-time-stamp {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-text-muted);
    margin-top: 0.2rem;
    white-space: nowrap;
}

.chat-avatar-box {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: #fff;
    text-transform: uppercase;
}

.chat-avatar-box.team-ct {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    box-shadow: 0 0 8px rgba(33, 150, 243, 0.3);
}

.chat-avatar-box.team-t {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    box-shadow: 0 0 8px rgba(244, 67, 54, 0.3);
}

.chat-avatar-box.team-spec {
    background: linear-gradient(135deg, #9e9e9e 0%, #616161 100%);
}

.chat-content-area {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-player-name {
    font-size: 0.8rem;
    font-weight: 700;
}

.chat-player-name.team-ct {
    color: #64b5f6;
}

.chat-player-name.team-t {
    color: #ef5350;
}

.chat-player-name.team-spec {
    color: #e0e0e0;
}

.chat-team-badge {
    font-size: 0.65rem;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 700;
    text-transform: uppercase;
}

.chat-team-badge.team-ct {
    background: rgba(33, 150, 243, 0.15);
    color: #2196f3;
    border: 1px solid rgba(33, 150, 243, 0.25);
}

.chat-team-badge.team-t {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.25);
}

.chat-text-message {
    font-size: 0.82rem;
    color: #eaeaea;
    line-height: 1.4;
    word-break: break-all;
}

/* Admin Alert Action Log Row */
.chat-log-row.admin-action {
    background: rgba(255, 136, 0, 0.04);
    border: 1px solid rgba(255, 136, 0, 0.18);
    box-shadow: inset 0 0 10px rgba(255, 136, 0, 0.02);
}

.admin-action-badge {
    background: rgba(255, 136, 0, 0.12);
    color: var(--color-primary);
    border: 1px solid rgba(255, 136, 0, 0.25);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    text-transform: uppercase;
}

.admin-action-text {
    font-size: 0.82rem;
    color: #ffe0b2;
    font-weight: 500;
}

/* Player Actions Styles */
.player-actions-group {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-action {
    border: none;
    border-radius: 4px;
    padding: 0.28rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-sans);
}

.btn-action.btn-slap {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.25);
}
.btn-action.btn-slap:hover {
    background: #ff9800;
    color: #fff;
    box-shadow: 0 0 8px rgba(255, 152, 0, 0.35);
}

.btn-action.btn-slay {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.25);
}
.btn-action.btn-slay:hover {
    background: #f44336;
    color: #fff;
    box-shadow: 0 0 8px rgba(244, 67, 54, 0.35);
}

.btn-action.btn-gag {
    background: rgba(156, 39, 176, 0.15);
    color: #9c27b0;
    border: 1px solid rgba(156, 39, 176, 0.25);
}
.btn-action.btn-gag:hover {
    background: #9c27b0;
    color: #fff;
    box-shadow: 0 0 8px rgba(156, 39, 176, 0.35);
}

.btn-action.btn-nick {
    background: rgba(33, 150, 243, 0.15);
    color: #2196f3;
    border: 1px solid rgba(33, 150, 243, 0.25);
}
.btn-action.btn-nick:hover {
    background: #2196f3;
    color: #fff;
    box-shadow: 0 0 8px rgba(33, 150, 243, 0.35);
}

.btn-action.btn-kick {
    background: rgba(158, 158, 158, 0.15);
    color: #e0e0e0;
    border: 1px solid rgba(158, 158, 158, 0.25);
}
.btn-action.btn-kick:hover {
    background: #757575;
    color: #fff;
    box-shadow: 0 0 8px rgba(158, 158, 158, 0.35);
}

.btn-action.btn-ban {
    background: rgba(211, 47, 47, 0.25);
    color: #ff5252;
    border: 1px solid rgba(211, 47, 47, 0.4);
}
.btn-action.btn-ban:hover {
    background: #d32f2f;
    color: #fff;
    box-shadow: 0 0 8px rgba(211, 47, 47, 0.45);
}
