@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400;700&display=swap');

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background:
        radial-gradient(circle at bottom left, rgba(120, 20, 10, 0.35), transparent 30%),
        radial-gradient(circle at center, rgba(255,255,255,0.03), transparent 40%),
        linear-gradient(to bottom, #080808 0%, #0b0b0b 45%, #050505 100%);
    color: #d9d9d9;
    font-family: 'Roboto Condensed', sans-serif;
    user-select: none;
}

/* HEADER */

.sandstorm-header {
    width: 100%;
    background: linear-gradient(to bottom, #161616, #0d0d0d);
    border-bottom: 1px solid #1b1b1b;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.03);
}

/* TOP BAR */

.top-bar {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    background:
        linear-gradient(to bottom, rgba(255,255,255,0.02), transparent),
        linear-gradient(to right, #0d0d0d, #151515 40%, #0d0d0d);
    border-bottom: 1px solid #181818;
}

/* WRAPPER */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* ORIGINAL LOGO BOX */
.logo {
    width: 36px;
    height: 36px;
    background: #cf4b26;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 0 12px rgba(207,75,38,0.35);
    position: relative;
    overflow: hidden;
}

.logo .nf {
    font-size: 18px;
    font-weight: 900;
    color: #111;
    opacity: 0;
    animation: fadeNF 0.6s ease forwards;
}

@keyframes fadeNF {
    to { opacity: 1; }
}

/* NULLIFYRUST TEXT */
.logo-text {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #dcdcdc;
    opacity: 0;
    transform: translateX(-10px);
    animation: showText 0.7s ease forwards;
    animation-delay: 0.4s;
}

/* PULSE EFFECT */
.pulse {
    animation: showText 0.7s ease forwards, pulseAnim 2.2s ease-in-out infinite;
    animation-delay: 0.4s, 1.2s;
}

@keyframes pulseAnim {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.75; transform: scale(1.03); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes showText {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* LINKS */
.logo-links {
    display: flex;
    gap: 10px;
    opacity: 0;
    transform: translateX(-10px);
    animation: showLinks 0.7s ease forwards;
    animation-delay: 0.9s;
}

@keyframes showLinks {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.logo-links a {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none; /* убираем подчеркивание */
    transition: .15s;
    color: #fff;
}

/* TELEGRAM — фирменный голубой */
.logo-links a.tg {
    background: #229ED9;
    border: 1px solid #1b8bbf;
}
.logo-links a.tg:hover {
    background: #33b8f5;
}

/* DISCORD — фирменный фиолетовый */
.logo-links a.ds {
    background: #5865F2;
    border: 1px solid #4752c4;
}
.logo-links a.ds:hover {
    background: #6f78ff;
}

/* STEAM — фирменный серо-синий */
.logo-links a.steam {
    background: #1b2838;
    border: 1px solid #0f151f;
}
.logo-links a.steam:hover {
    background: #223447;
}


.top-menu {
    display: flex;
    align-items: stretch;
    height: 100%;
    gap: 2px;
}

.top-menu a {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 28px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .8px;
    color: #b7b7b7;
    text-decoration: none;
    text-transform: uppercase;
    background: rgba(255,255,255,0.01);
    transition: .15s;
}

.top-menu a:hover {
    color: #fff;
    background: rgba(255,255,255,0.03);
}

.top-menu a.active {
    background:
        linear-gradient(to bottom, rgba(255,255,255,0.03), transparent),
        linear-gradient(to bottom, #9b472e, #7c3522);
    color: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 0 20px rgba(140,60,35,.2);
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    width: 260px;
    height: 40px;
    border: 1px solid #181818;
    background:
        linear-gradient(to bottom, rgba(255,255,255,0.02), transparent),
        #0b0b0b;
    padding: 0 14px;
    color: #cfcfcf;
    outline: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.search-box input::placeholder {
    color: #585858;
}

/* TABS */

.tabs-bar {
    height: 54px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 18px;
    background:
        linear-gradient(to bottom, rgba(255,255,255,0.02), transparent),
        #111;
    border-top: 1px solid rgba(255,255,255,0.02);
    border-bottom: 1px solid #191919;
}

.tab {
    min-width: 175px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    background:
        linear-gradient(to bottom, rgba(255,255,255,0.03), transparent),
        #1b1b1b;
    border: 1px solid #222;
    color: #8e8e8e;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    cursor: pointer;
    transition: .15s;
}

.tab:hover {
    background: #232323;
    color: #d7d7d7;
}

.tab.active {
    background:
        linear-gradient(to bottom, rgba(255,255,255,0.04), transparent),
        linear-gradient(to bottom, #6b7d35, #516026);
    border-color: #758a3d;
    color: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        0 0 14px rgba(120,150,50,.15);
}

.tab span {
    color: rgba(255,255,255,.45);
    margin-left: 12px;
    font-weight: 700;
}

/* LAYOUT */

.layout-wrapper {
    display: flex;
    width: 100%;
    height: calc(100vh - 114px);
    overflow: hidden;
}

/* LEFTBAR */

.leftbar-container {
    width: 345px;
    background:
        linear-gradient(to bottom, rgba(255,255,255,0.015), transparent),
        linear-gradient(to bottom, #161616, #0e0e0e 60%, #220d08);
    border-right: 1px solid #181818;
    overflow-y: auto;
}

.leftbar-container::-webkit-scrollbar {
    width: 0;
}

.leftbar {
    padding: 18px 22px 24px;
}

.lb-section {
    margin-bottom: 20px;
}

.lb-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #d5d5d5;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.lb-subtitle {
    color: #727272;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.lb-select {
    width: 100%;
    height: 44px;
    border: 1px solid #252525;
    background:
        linear-gradient(to bottom, rgba(255,255,255,0.03), transparent),
        #2d2d2d;
    color: #d9d9d9;
    padding: 0 14px;
    outline: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

/* MODES */

.lb-mode {
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    margin-bottom: 2px;
    background:
        linear-gradient(to bottom, rgba(255,255,255,0.03), transparent),
        rgba(255,255,255,0.015);
    border: 1px solid rgba(255,255,255,0.03);
    cursor: pointer;
    transition: .15s;
}

.lb-mode:hover {
    background:
        linear-gradient(to bottom, rgba(255,255,255,0.05), transparent),
        rgba(255,255,255,0.03);
}

.lb-mode .label {
    color: #d0d0d0;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.lb-mode .count {
    color: #707070;
    font-size: 13px;
    font-weight: 700;
}

.lb-mode input {
    display: none;
}

/* CHECK */

.lb-check {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cfcfcf;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

/* BUTTONS */

.lb-buttons {
    margin-top: 26px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn {
    height: 52px;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    transition: .15s;
    font-family: inherit;
    letter-spacing: .6px;
}

.btn.reset {
    background:
        linear-gradient(to bottom, rgba(255,255,255,0.04), transparent),
        #2a2a2a;
    color: #bfbfbf;
    border: 1px solid #353535;
}

.btn.refresh {
    background:
        linear-gradient(to bottom, rgba(255,255,255,0.04), transparent),
        #373737;
    color: #fff;
    border: 1px solid #414141;
}

.btn.host {
    grid-column: span 2;
    background:
        linear-gradient(to bottom, rgba(255,255,255,.08), transparent),
        linear-gradient(to bottom, #d49a34, #ba7d19);
    color: #171717;
    border: 1px solid #d39a37;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.15),
        0 0 20px rgba(212,154,52,.15);
}

.btn:hover {
    filter: brightness(1.08);
}

/* SERVER LIST */

.server-list-wrapper {
    flex: 1;
    padding: 18px 26px;
    overflow-y: auto;
    background:
        radial-gradient(circle at center, rgba(255,255,255,0.02), transparent 40%);
}

.server-list-wrapper::-webkit-scrollbar {
    width: 8px;
}

.server-list-wrapper::-webkit-scrollbar-thumb {
    background: #5e2a1d;
}

/* TABLE HEADER */

.server-table-header {
    height: 46px;
    display: grid;
    grid-template-columns: 1.5fr 0.45fr 0.3fr 0.2fr;
    align-items: center;
    padding: 0 22px;
    background:
        linear-gradient(to bottom, rgba(255,255,255,.03), transparent),
        rgba(255,255,255,.01);
    border: 1px solid rgba(255,255,255,.03);
    color: #8f8f8f;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
}

/* TABLE */

.server-table {
    display: flex;
    flex-direction: column;
}

.server-row {
    position: relative;
    display: grid;
    grid-template-columns: 1.5fr 0.45fr 0.3fr 0.2fr;
    align-items: center;
    min-height: 62px;
    padding: 0 22px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    background: rgba(255,255,255,0.01);
    transition: .12s;
}

.server-row::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(255,255,255,.03), transparent 30%);
    opacity: 0;
    transition: .15s;
}

.server-row:hover {
    background: rgba(255,255,255,.03);
}

.server-row:hover::before {
    opacity: 1;
}

/* SERVER TITLE */

.server-title {
    color: #e1e1e1;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .2px;
    margin-bottom: 6px;
}

/* TAGS */

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tag {
    height: 18px;
    display: flex;
    align-items: center;
    padding: 0 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,.05);
    letter-spacing: .4px;
}

.tag.green {
    background: linear-gradient(to bottom, #89aa46, #647b2f);
    color: #e8f2cf;
}

.tag.gray {
    background: linear-gradient(to bottom, #3d3d3d, #2b2b2b);
    color: #a6a6a6;
}

.tag.blue {
    background: linear-gradient(to bottom, #4874a0, #35597b);
    color: #dcefff;
}

/* COLUMNS */

.col.mode {
    color: #b8d36b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.col.players {
    color: #d8d8d8;
    font-size: 14px;
    font-weight: 700;
}

.col.country {
    color: #a4a4a4;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

/* FLAGS */

.flag {
    width: 24px;
    height: 16px;
    border: 1px solid rgba(255,255,255,.08);
    background-size: cover;
    box-shadow: 0 0 4px rgba(0,0,0,.4);
}

.flag.us { background-image: url('https://flagcdn.com/us.svg'); }
.flag.uk { background-image: url('https://flagcdn.com/gb.svg'); }
.flag.fr { background-image: url('https://flagcdn.com/fr.svg'); }
.flag.ca { background-image: url('https://flagcdn.com/ca.svg'); }

/* FOOTER */

.rust-footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    background:
        linear-gradient(to top, rgba(0,0,0,.5), transparent),
        rgba(10,10,10,.95);
    border-top: 1px solid rgba(255,255,255,.04);
    z-index: 50;
}

.rf-left .fps {
    color: #d0d0d0;
    font-size: 12px;
    font-weight: 700;
}

.rf-center .hint {
    color: #5f5f5f;
    font-size: 12px;
    font-weight: 700;
}

.rf-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-icon {
    width: 28px;
    height: 28px;
    background:
        linear-gradient(to bottom, rgba(255,255,255,.04), transparent),
        #2a2a2a;
    border: 1px solid #3a3a3a;
}

.chat-text {
    color: #b8b8b8;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.chat-count {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #4d4d4d;
    background: url('https://i.pravatar.cc/100') center/cover;
    box-shadow: 0 0 12px rgba(255,255,255,.08);
}
/* NEWS */

.news-link {
    position: relative;
    z-index: 20;
    display: inline-block;
    text-decoration: none;
}

.news-link:hover .server-title {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255,255,255,.15);
}

/* CATEGORY TAGS */

.tag.update {
    background:
        linear-gradient(to bottom, #7ecb4c, #4d7d29);
    color: #efffdf;
    border-color: rgba(170,255,120,.15);
}

.tag.wipe {
    background:
        linear-gradient(to bottom, #5c1616, #2d0909);
    color: #ffb4b4;
    border-color: rgba(255,80,80,.12);
}

.tag.promo {
    background:
        linear-gradient(to bottom, #505050, #2f2f2f);
    color: #d7d7d7;
    border-color: rgba(255,255,255,.05);
}

.tag.premium {
    background:
        linear-gradient(
            135deg,
            #f7f7f7 0%,
            #d6d6d6 18%,
            #ffffff 34%,
            #bcbcbc 50%,
            #f8f8f8 67%,
            #b1b1b1 84%,
            #f3f3f3 100%
        );
    color: #181818;
    border: 1px solid rgba(255,255,255,.45);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.65),
        0 0 10px rgba(255,255,255,.08);
}

/* NEW BADGE */

.new-badge {
    height: 24px;
    min-width: 54px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(to bottom, rgba(255,255,255,.08), transparent),
        linear-gradient(to bottom, #c24729, #7a2411);

    border: 1px solid #b33f24;

    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.12),
        0 0 12px rgba(194,71,41,.2);
}

/* NEWS ROW */

.news-row {
    cursor: pointer;
}

.news-row:hover {
    background: rgba(255,255,255,.04);
}
/* NEWS PAGE */

.news-page {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;

    background:
        linear-gradient(to bottom, rgba(255,255,255,.02), transparent),
        rgba(255,255,255,.015);

    border: 1px solid rgba(255,255,255,.04);

    padding: 34px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.03),
        0 0 40px rgba(0,0,0,.35);
}

.news-page-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 26px;
}

.news-page-tags {
    margin-bottom: 18px;
}

.news-page-title {
    margin: 0;

    color: #f3f3f3;

    font-size: 42px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.5px;
    text-transform: uppercase;
}

.news-meta {
    color: #767676;

    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.news-cover {
    margin-bottom: 32px;

    border: 1px solid rgba(255,255,255,.05);

    overflow: hidden;

    box-shadow:
        0 0 30px rgba(0,0,0,.35);
}

.news-cover img {
    width: 100%;
    display: block;
}

.news-content {
    color: #cfcfcf;

    font-size: 17px;
    line-height: 1.9;
}

.news-content p {
    margin-top: 0;
    margin-bottom: 22px;
}

.news-content h2,
.news-content h3,
.news-content h4 {
    color: #f2f2f2;

    margin-top: 42px;
    margin-bottom: 18px;

    text-transform: uppercase;
    letter-spacing: .5px;
}

.news-content a {
    color: #d69438;
    text-decoration: none;
}

.news-content a:hover {
    color: #ffb44e;
}

.news-content img {
    max-width: 100%;
    height: auto;

    border: 1px solid rgba(255,255,255,.05);
}

.news-content ul,
.news-content ol {
    padding-left: 24px;
}

.news-content blockquote {
    margin: 28px 0;
    padding: 18px 22px;

    border-left: 3px solid #a8512c;

    background:
        linear-gradient(to right, rgba(168,81,44,.08), transparent);

    color: #e3e3e3;
}
.server-row::before {
    pointer-events: none;
}
.tab {
    cursor: pointer;
    user-select: none;
}

.tab.active {
    transform: translateY(-1px);
}
.tab {
    text-decoration: none;
}

.tab:hover,
.tab:active,
.tab:focus {
    text-decoration: none;
}



.footer-login,
.footer-logout{
    height:30px;
    display:flex;
    align-items:center;
    padding:0 12px;
    text-decoration:none;
    font-size:11px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.5px;
    border:1px solid #3b3b3b;
    transition:.15s;
}

.footer-login{
    background:
        linear-gradient(to bottom,#2a475e,#1b2838);
    color:#fff;
    border-color:#3b6e8f;
}

.footer-logout{
    background:
        linear-gradient(to bottom,#4b1d1d,#2c1010);
    color:#fff;
    border-color:#6d2626;
}

.footer-login:hover,
.footer-logout:hover{
    filter:brightness(1.08);
}

.chat-avatar{
    width:32px;
    height:32px;
    border-radius:50%;
    object-fit:cover;
}/* INFO BOXES */
.lb-info {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 12px 14px;
    color: #dcdcdc;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
}

.lb-info-grid {
    display: flex;
    gap: 10px;
}

.lb-info-box {
    flex: 1;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 10px 12px;
    border-radius: 3px;
}

.lb-info-box .label {
    color: #8a8a8a;
    font-size: 11px;
    text-transform: uppercase;
}

.lb-info-box .value {
    margin-top: 4px;
    color: #e6e6e6;
    font-size: 15px;
    font-weight: 700;
}

/* CONNECT */
.lb-connect {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lb-copy {
    height: 42px;
    padding: 0 14px;
    border: 1px solid #3a3a3a;
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: .15s;
}

.lb-copy:hover {
    background: rgba(255,255,255,0.1);
}

/* COLORS */
.green { color: #7cff7c; }
.red { color: #ff6b6b; }
.server-error-image {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 20px;
}

.server-error-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    aspect-ratio: 300 / 185;
}
.server-offline-text {
    text-align: center;
    font-family: 'Montserrat', 'Roboto', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-top: 12px;
    letter-spacing: 1.5px;
    color: #ff4444;

    /* Красивое свечение */
    text-shadow:
        0 0 6px rgba(255, 0, 0, 0.6),
        0 0 12px rgba(255, 0, 0, 0.4);
}
