* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --animate-duration: 1s;
    --animate-delay: 1s;
    --animate-repeat: 1;
    --primary: #ffffff;
    --secondary: #4fc3f7;
    --background: #f8f9fa00;
    --surface: #ffffff;
    --text: #2d3436;
    --text-secondary: #636e72;
    --border: rgba(0, 0, 0, 0.08);
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    --gradient: linear-gradient(135deg, var(--primary), #e0e0e0);
    --slide-duration: 0.3s;
    --card-width: 350px;
    --card-gap: 2rem;
    --side-card-visible: 120px;
    --gold: linear-gradient(135deg, #ffd700, #ffb347);
    --silver: linear-gradient(135deg, #a0a0a0, #d0d0d0);
    --bronze: linear-gradient(135deg, #cd7f32, #dea47e);
    --coins-primary: #ffffff;
    --coins-secondary: #f80000;
    --coins-gradient: linear-gradient(135deg, var(--coins-primary), var(--coins-secondary));
    --coins-gradient-soft: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(224, 224, 224, 0.7));
    --kills-primary: #ff4757;
    --kills-secondary: #ff6b81;
    --kills-gradient: linear-gradient(135deg, var(--kills-primary), var(--kills-secondary));
    --kills-gradient-soft: linear-gradient(135deg, rgba(255, 71, 87, 0.7), rgba(255, 107, 129, 0.7));
    --merchant-primary: #2ed573;
    --merchant-secondary: #7bed9f;
    --merchant-gradient: linear-gradient(135deg, var(--merchant-primary), var(--merchant-secondary));
    --merchant-gradient-soft: linear-gradient(135deg, rgba(46, 213, 115, 0.7), rgba(123, 237, 159, 0.7));
}

.top-container {
    display: flex;
    justify-content: center;
    gap: var(--card-gap);
    margin: 20px 0;
    width: 100%;
    flex-wrap: wrap;
}

.top-card {
    background: #5c5c5c0a;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 20px;
    flex: 1 1 300px;
    width: 100%;
    transition: transform 0.3s 
ease, box-shadow 0.3s 
ease;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.top-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.top-card h3 {
    margin-top: 0;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.top-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
}

.top-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 15px 0;
    font-family: 'Roboto', sans-serif;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.top-table th {
    background-color: #2626266e;
    color: #ffffff;
    font-weight: 600;
    padding: 12px 15px;
    text-align: left;
    font-size: 0.9rem;
}

.top-table th:first-child {
    border-top-left-radius: 8px;
}

.top-table th:last-child {
    border-top-right-radius: 8px;
}

.top-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    word-break: break-word;
}

.top-table tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

.top-table tr:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.crown {
    color: gold;
    margin-right: 5px;
    font-size: 1.1em;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    overflow-x: hidden;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 990;
    background: rgb(30, 30, 30);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;    
    padding: 0 20px;
}

.site-main {
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 5;
    padding: 80px 20px 100px 20px;
    box-sizing: border-box;
}

.card {
    background: transparent;
    border: none;
    border-radius: 15px;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    text-align: center;
    backdrop-filter: none;
    box-shadow: none;
}

.tabs {
    display: flex;
    justify-content: center;
    border-bottom: none;
    background: none;
    border-radius: 0;
    justify-self: center;
}

.tab-link {
    background: none;
    border: none;
    color: #c0c0c0;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    transition: color 0.3s, border-bottom-color 0.3s;
    border-bottom: 3px solid transparent;
    text-align: center;
    text-decoration: none;
}
.tab-link:hover {
    color: #ffffff;
}

.tab-link.active {
    color: #4CAF50;
    border-bottom-color: #4CAF50;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block;
}

.header-server-info {
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    transition: all 0.3s ease;
    justify-self: end;
}

.header-server-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.server-ip-block {
    color: #e0e0e0;
    padding: 10px 15px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

.header-logo-link h1 {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6), 0 0 16px rgba(255, 255, 255, 0.4);
    font-size: 2rem;
    margin: 0;
}

.header-logo-link h1 .mc-part {
    color: #ff4d4d;
    text-shadow: 0 0 8px rgba(255, 77, 77, 0.7), 0 0 16px rgba(255, 77, 77, 0.5);
}

.header-logo-link {
    text-decoration: none;
    justify-self: start;
}

.header-right-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 20;
}

.burger-menu span {
    width: 30px;
    height: 3px;
    background-color: #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.burger-menu.open span:nth-child(1) {
    transform: rotate(45deg);
}
.burger-menu.open span:nth-child(2) {
    opacity: 0;
}

.success-page-content {
    text-align: center;
}

.success-page-content h2 {
    font-size: 1.8rem;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.success-page-content p {
    font-size: 1.1rem;
    color: #c0c0c0;
    line-height: 1.6;
    margin-bottom: 15px;
}

.success-page-content .btn {
    margin-top: 40px;
}

.card-body p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #c0c0c0;
}

.tab-content h2 {
    font-family: 'Montserrat', sans-serif;
    color: #4CAF50;
    margin-bottom: 15px;
}

.tab-content ul {
    list-style-position: inside;
    text-align: left;
}

.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}
.team-member-card {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.team-member-card img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-right: 20px;
    object-fit: cover;
    flex-shrink: 0;
}
.team-member-card:not(.vacant) img {
    display: block;
}
.team-member-card.vacant img {
    display: none;
}
.team-member-info h4 {
    margin: 0;
    color: #fff;
    text-align: left;
    font-size: 1.15rem;
}
.team-member-info p {
    margin: 0;
    font-size: 1rem;
    color: #c0c0c0;
    text-align: left;
    margin-top: 4px;
}
.team-member-card.vacant {
    border-color: rgba(255, 255, 255, 0.08);
    background-color: rgba(0, 0, 0, 0.1);
}

@media (min-width: 620px) {
    .team-member-card {
        width: calc(50% - 8px);
    }
}

.accordion {
    background-color: rgba(0, 0, 0, 0.2);
    color: #e0e0e0;
    padding: 15px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1rem;
    transition: background-color 0.4s;
    margin-top: 8px;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    position: relative;
    z-index: 10;
}
.accordion:hover, .accordion.active {
    background-color: rgba(76, 175, 80, 0.3);
}
.panel {
    padding: 0 18px;
    background-color: rgba(0, 0, 0, 0.15);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}
.panel p {
    margin-bottom: 15px;
    text-align: left;
    line-height: 1.6;
    color: #e0e0e0;
}
.panel ul {
    margin-bottom: 15px;
    text-align: left;
    line-height: 1.6;
    padding-left: 20px;
}
.panel .punishment {
    display: block;
    margin-top: 5px;
    color: #ff9800;
    font-style: italic;
    font-size: 0.9em;
    font-weight: bold;
    padding: 5px;
    background-color: rgba(255, 152, 0, 0.1);
    border-radius: 4px;
    border-left: 3px solid #ff9800;
}
.panel .section-description {
    font-style: italic;
    color: #b0b0b0;
    border-left: 3px solid #4CAF50;
    padding-left: 10px;
}

.rules-footer {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-style: italic;
    text-align: center;
    color: #c0c0c0;
}

.donate-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.donate-prefix {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.donate-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4CAF50;
}

.card-body .version {
    font-weight: 500;
    background-color: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    padding: 5px 10px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.server-status {
    min-width: 100px;
    color: #e0e0e0;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.player-icon {
    width: 12px;
    height: 12px;
    background-color: #4CAF50;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.7);
    transition: background-color 0.5s;
}

.btn {
    text-decoration: none;
    color: #ffffff;
    background-color: #4CAF50;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #45a049;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.btn.btn-secondary {
    background-color: #333;
}

.btn.btn-secondary:hover {
    background-color: #444;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.news-section {
    margin-top: 30px;
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}
.news-section h3 {
    color: #fff;
    margin-bottom: 15px;
}
.news-item {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.last-payments-section {
    margin-top: -10px;
    text-align: left;
    padding-top: 50px;
}

.last-payments-section h3 {
    color: #fff;
    margin-bottom: 15px;
    text-align: center;
}

#last-payments-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.payment-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px 10px;
    border-radius: 8px;
    width: 100px;
    text-align: center;
    transition: transform 0.2s, background-color 0.2s;
}

.payment-item:hover {
    transform: translateY(-5px);
    background-color: rgba(0, 0, 0, 0.4);
}

.payment-customer {
    font-weight: 500;
    color: #fff;
    word-break: break-all;
}

.buy-donate-section {
    margin-top: 30px;
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.buy-donate-section h3 {
    color: #fff;
    margin-bottom: 15px;
    text-align: center;
}

.buy-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 20;
}

.buy-form input,
.buy-form select {
    width: 100%;
    padding: 12px 15px;
    background-color: rgb(30, 30, 30);
    border: 1px solid rgb(255, 255, 255);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
    z-index: 10;
    position: relative;
}

.buy-form input:focus,
.buy-form select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}

.buy-form input::placeholder {
    color: #888;
}

.buy-form .btn {
    margin-top: 10px;
}

.buy-form select optgroup {
    font-style: italic;
    font-weight: bold;
    color: #ccc;
}

.site-footer-main {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: rgba(30, 30, 30, 0.0);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-link {
    color: #c0c0c0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #ffffff;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0s 0.3s;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s;
}

.modal-content {
    background-color: #1e1e1e;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    text-align: center;
    max-width: 450px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-content h4 {
    font-family: 'Montserrat', sans-serif;
    color: #4CAF50;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.modal-buttons {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

@media (max-width: 1024px) {
    .tabs {
        gap: 5px;
    }
    .tab-link {
        padding: 15px 10px;
        font-size: 0.9rem;
    }
    .header-logo-link h1 {
        font-size: 1.8rem;
    }
    .header-server-info {
        transform: scale(0.9);
    }
}

@media (max-width: 992px) {
    .site-header {
        grid-template-columns: 1fr auto;
        justify-content: space-between;
        padding: 10px 15px;
        gap: 15px;
    }
    .header-right-controls { justify-self: end; }
    .desktop-nav { display: none; }

    .header-nav {
        position: fixed;
        top: 0;
        left: -300px;
        width: 80%;
        max-width: 280px;
        height: 100%;
        background: rgba(30, 30, 30, 0.9);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding-top: 80px;
        transition: left 0.3s ease-in-out;
        z-index: 99;
        display: block;
    }

    .header-nav.open {
        left: 0;
    }

    .tabs {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 20px;
    }

    .header-right-controls .header-server-info {
        display: none;
    }

    .mobile-nav-server-info .server-status {
        display: none;
    }

    .mobile-nav-server-info {
        display: block;
        width: fit-content;
        margin: 20px auto;
        transform: scale(1);
    }

    .burger-menu {
        display: flex;
        z-index: 100;
    }

    .site-main {
        padding-top: 80px;
    }

    .site-footer-main {
        padding: 10px 15px;
    }

    .footer-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .footer-link {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .site-main {
        padding: 80px 10px 80px 10px;
    }
    .card {
        width: 100%;
        padding: 15px; /* Уменьшаем отступы на мобильных */
    }
    .footer-link {
        font-size: 0.8rem;
    }

    /* Адаптивность для формы покупки */
    .buy-form input,
    .buy-form select {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    /* Адаптивность для последних покупок */
    .payment-item {
        width: 80px;
        padding: 10px 5px;
    }

    .last-payments-section {
        padding-top: 20px;
        margin-top: 20px;
    }

    /* Адаптивность для новостей */
    .news-item {
        padding: 10px;
    }
}

/* --- Стили для ползунка покупки валюты --- */
#currency-purchase-controls {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

#currency-purchase-controls label {
    color: #c0c0c0;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.currency-details {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 1rem;
    color: #e0e0e0;
}

.currency-details #currency-amount-display {
    font-weight: bold;
    color: #fff;
}

.currency-details #currency-price {
    font-weight: bold;
    color: #4CAF50; /* Акцентный цвет */
}

/* --- Стили для самого ползунка (input[type=range]) --- */
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
  margin: 10px 0;
}

input[type=range]:focus {
  outline: none;
}

/* Дорожка ползунка */
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  cursor: pointer;
  background: #333;
  border-radius: 5px;
  border: 1px solid #555;
  transition: background 0.2s;
}

input[type=range]:hover::-webkit-slider-runnable-track {
  background: #404040;
}

/* Бегунок */
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  border: 2px solid #121212;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #4CAF50;
  cursor: pointer;
  margin-top: -7px; /* Центрирование бегунка */
  transition: transform 0.2s;
}

input[type=range]:active::-webkit-slider-thumb {
    transform: scale(1.2);
}

/* --- Стили для блока промокода --- */
.promo-container {
    margin-top: 15px;
}

.promo-container .input-wrapper {
    display: flex;
}

.promo-container .input-wrapper input {
    flex-grow: 1;
    width: 100%;
    padding: 12px 15px;
    background-color: rgb(30, 30, 30);
    border: 1px solid rgb(255, 255, 255);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.promo-container .input-wrapper input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}

.promo-container .input-wrapper input::placeholder {
    color: #888;
}

/* Подсветка поля красным при ошибке */
.promo-container.invalid .input-wrapper input {
    border-color: #d93025;
}

/* Стили для сообщения (ошибка или успех) */
.promo-message {
    font-size: 14px;
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    display: none; /* Изначально сообщение скрыто */
    text-align: center;
}

.promo-message.error {
    color: #d93025;
    background-color: rgba(217, 48, 37, 0.15);
    border: 1px solid rgba(217, 48, 37, 0.5);
    display: block;
}

.promo-message.success {
    color: #1e8e3e;
    background-color: rgba(30, 142, 62, 0.15);
    border: 1px solid rgba(30, 142, 62, 0.5);
    display: block;
}

@media (max-width: 620px) {
    .top-card {
        min-width: unset;
        width: 90%;
        margin: 0 auto;
    }
}
