/**
 * @format
 *
 * KRAS MEAT Project Styles (c) 2025.
 * Unique build ID: km-project-v1-091825-rev2
 * Based on the original work of Anomus.LY
 * Unauthorized copying and distribution is prohibited.
 *
 */

/* ===== RESET & BASE STYLES ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #ffcc00;
  --primary-dark: #e6b800;
  --primary-light: #ffdb4d;
  --accent: #ff9900;
  --accent-dark: #e68a00;
  --accent-light: #ffad33;
  --bg-dark: #1a1a1a;
  --bg-darker: #0f0f0f;
  --bg-card: #222222;
  --bg-element: #2d2d2d;
  --text-white: #ffffff;
  --text-light: #f0f0f0;
  --text-gray: #b0b0b0;
  --text-dark: #707070;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);
  --font-primary: 'Poppins', sans-serif;
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-round: 50%;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-darker);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
    flex-grow: 1;
}

body.menu-open {
  overflow: hidden;
  position: relative;
}

body.menu-open::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  animation: fadeIn 0.3s ease forwards;
}

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

a {
  text-decoration: none;
  color: var(--primary-light);
  transition: color var(--transition-normal);
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

.km-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

section {
  padding: var(--spacing-xxl) 0;
  position: relative;
}

/* ===== BUTTONS (UNIQUE KM CLASSES) ===== */
.km-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  gap: 0.5rem;
}

.km-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%) rotate(45deg);
  transition: transform 0.6s ease;
  z-index: -1;
}

.km-button:hover::before {
  transform: translateX(100%) rotate(45deg);
}

.km-button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.km-button-main {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3);
}

.km-button-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 204, 0, 0.4);
  color: var(--text-white);
}

.km-button-main:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(255, 204, 0, 0.3);
}

.km-button-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-white);
  border: 1px solid rgba(255, 204, 0, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.km-button-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  color: var(--text-white);
  border-color: rgba(255, 204, 0, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.km-button-secondary:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


/* ===== HEADER (UNIQUE KM CLASSES) ===== */
.km-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  z-index: 1000;
  background: rgba(15, 15, 15, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 204, 0, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md) var(--spacing-lg);
  transition: all var(--transition-normal);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.km-header.scrolled {
  padding: var(--spacing-sm) var(--spacing-lg);
  background: rgba(15, 15, 15, 0.98);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.km-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  z-index: 1001;
}

.logo img {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 5px rgba(255, 204, 0, 0.3));
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-white);
  text-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-white);
  cursor: pointer;
  z-index: 1001;
  transition: all var(--transition-normal);
  padding: 5px;
  border-radius: var(--radius-sm);
}

.mobile-menu-toggle:hover {
  color: var(--primary);
}

.mobile-menu-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}


.nav-container {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

.nav-list {
  display: flex;
  gap: var(--spacing-lg);
}

.header-buttons {
  display: flex;
  gap: var(--spacing-md);
}

@media (max-width: 992px) {
  .mobile-menu-toggle {
    display: block;
  }
  .nav-container {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: calc(100vh - 100px);
    background: var(--bg-dark);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transition: right 0.3s ease;
    z-index: 1000;
    padding: 30px 20px 20px;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 204, 0, 0.1);
  }
  .nav-container.active { right: 5%; }
  .nav { width: 100%; }
  .nav-list {
    flex-direction: column;
    gap: var(--spacing-md);
    width: 100%;
    text-align: center;
  }
  .header-buttons {
    flex-direction: column;
    width: 100%;
    margin-top: var(--spacing-xl);
  }
  .header-buttons .km-button {
    width: 100%;
    margin-bottom: var(--spacing-md);
  }
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  position: relative;
  overflow: hidden;
}

.hero .km-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-xl);
}

.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--text-white);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3);
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-gray);
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
}

.hero-image {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 300px;
}

.hero-image img {
  max-width: 100%;
  filter: drop-shadow(0 0 20px rgba(255, 204, 0, 0.5));
}

.floating {
  animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

@media (max-width: 992px) {
  .hero .km-container {
    flex-direction: column;
    text-align: center;
  }
  .hero-content { order: 2; }
  .hero-image {
    order: 1;
    margin-bottom: var(--spacing-xl);
  }
}

/* ===== GENERAL SECTION STYLES ===== */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xxl);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto;
}

/* ===== PREMIUM/PURCHASE SECTION ===== */
.pricing-cards {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
}

.pricing-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
  max-width: 350px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.premium-card {
  background: linear-gradient(135deg, rgba(255, 204, 0, 0.1) 0%, rgba(255, 153, 0, 0.05) 100%);
  border: 1px solid rgba(255, 204, 0, 0.2);
  position: relative;
  z-index: 1;
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(255, 204, 0, 0.1) 0%, transparent 70%);
  z-index: -1;
}

.premium-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

.pricing-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-round);
  background: linear-gradient(135deg, rgba(255, 204, 0, 0.1) 0%, rgba(255, 153, 0, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
  font-size: 2rem;
  color: var(--primary);
  transition: all var(--transition-normal);
  border: 1px solid rgba(255, 204, 0, 0.1);
}

.premium-card .pricing-icon {
  color: var(--accent);
  background: linear-gradient(135deg, rgba(255, 204, 0, 0.2) 0%, rgba(255, 153, 0, 0.2) 100%);
  box-shadow: 0 0 15px rgba(255, 153, 0, 0.3);
}

.pricing-card:hover .pricing-icon {
  transform: scale(1.1) rotate(5deg);
}

.pricing-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.pricing-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--text-white);
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--spacing-sm);
}

.pricing-description {
  color: var(--text-gray);
}

.pricing-features {
  margin-bottom: var(--spacing-xl);
}

.pricing-features li {
  padding: var(--spacing-sm) 0;
  color: var(--text-gray);
  display: flex;
  align-items: center;
}

.pricing-features li i {
  color: var(--primary);
  margin-right: var(--spacing-sm);
  font-size: 0.9rem;
}

/* ===== FOOTER (UNIQUE KM CLASSES) ===== */
.km-footer {
  background: var(--bg-darker);
  border-top: 1px solid rgba(255, 204, 0, 0.1);
  padding: var(--spacing-xxl) 0 var(--spacing-lg);
  position: relative;
  overflow: hidden;
}

.km-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 20%, var(--accent) 50%, var(--primary) 80%, transparent 100%);
  animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.km-footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}

.footer-logo img {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(255, 204, 0, 0.5));
}

.footer-logo h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-white);
}

.footer-links {
  display: flex;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
}

.footer-column h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.footer-column h3 i {
  color: var(--primary);
}

.footer-column ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-column ul li a {
  color: var(--text-gray);
  transition: color var(--transition-normal), transform var(--transition-normal);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  border-radius: var(--radius-sm);
}

.footer-column ul li a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.footer-column ul li a i {
  font-size: 0.8rem;
  color: var(--primary-light);
  transition: transform var(--transition-normal);
}

.footer-column ul li a:hover {
  color: var(--primary-light);
}

.footer-column ul li a:hover i {
  transform: translateX(3px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-dark);
}

@media (max-width: 992px) {
    .pricing-cards, .support-options {
        flex-direction: column;
        align-items: center;
    }
    .pricing-card, .support-card {
        max-width: 100%;
        width: 100%;
        margin-bottom: var(--spacing-xl);
    }
    .km-footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--spacing-xl);
    }
}

/* Legal/Info Pages styles */
.legal-content {
  padding: var(--spacing-xxl) 0;
  min-height: 70vh;
  margin-top: 100px;
}
.legal-container {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: var(--spacing-xl);
}
.legal-container h1, .legal-container h2 {
  color: var(--primary);
  margin-bottom: var(--spacing-lg);
  font-size: 1.8rem;
  border-bottom: 1px solid rgba(255, 204, 0, 0.2);
  padding-bottom: var(--spacing-sm);
}
.legal-container h3 {
  color: var(--text-white);
  margin: var(--spacing-lg) 0 var(--spacing-md);
  font-size: 1.4rem;
}
.legal-container p, .legal-container ul, .legal-container ol {
  margin-bottom: var(--spacing-md);
  color: var(--text-gray);
  line-height: 1.7;
}
.legal-container ul, .legal-container ol {
  padding-left: var(--spacing-lg);
}
.legal-date {
  font-style: italic;
  color: var(--text-dark);
  margin-top: var(--spacing-xl);
  text-align: right;
}

/* Purchase form styles */
.purchase-details {
  text-align: center;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.purchase-details input[type="text"],
.purchase-details input[type="email"],
.purchase-details input[type="password"],
.purchase-details input[type="number"] {
  padding: 15px;
  width: 100%;
  max-width: 450px;
  border: 2px solid #333;
  background-color: #222;
  color: #fff;
  border-radius: 8px;
  font-size: 16px;
  text-align: center;
  transition: border-color 0.3s;
}

.purchase-details input:focus-visible {
  outline: none;
  border-color: var(--primary);
}

.payment-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 450px;
}

.btn-buy {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  font-weight: 600;
}

.password-container {
    position: relative;
    width: 100%;
    max-width: 450px;
}
.password-container input[type="text"] {
    padding-right: 155px; 
}
.password-container button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    height: calc(100% - 10px);
    font-size: 0.9em;
    padding: 0 15px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
.radio-group input[type="radio"] {
    display: none;
}
.radio-group .radio-label {
    padding: 12px 20px;
    border: 2px solid #444;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background-color: #2a2a2a;
}
.radio-group input[type="radio"]:checked + .radio-label {
    background-color: var(--primary);
    color: #1a1a1a;
    border-color: var(--primary);
    font-weight: 600;
}
.radio-group input[type="radio"]:focus-visible + .radio-label {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 2px var(--primary-light);
}

/* Preloader styles */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-darker);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader { position: relative; width: 120px; height: 120px; }
.loader-circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 4px solid transparent;
  border-top-color: var(--primary);
  border-right-color: var(--accent);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}
.loader-circle:nth-child(2) {
  border-bottom-color: var(--primary-light);
  border-left-color: var(--accent-light);
  animation: spin 1.5s linear infinite reverse;
}
.loader-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  animation: pulse-loader 2s ease-in-out infinite;
}
@keyframes spin { 
  from { transform: rotate(0deg); } 
  to { transform: rotate(360deg); }
}
@keyframes pulse-loader {
  0%, 100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* Theme additions */
/* Общий стиль скроллбара для страницы */
::-webkit-scrollbar { width: 8px; background-color: var(--bg-darker); }
::-webkit-scrollbar-thumb { background: linear-gradient(to bottom, var(--primary), var(--accent)); border-radius: 4px; }
::selection { background-color: var(--primary); color: var(--text-white); }

/* Стилизация скроллбара для списка донатеров */
.donators-list::-webkit-scrollbar {
    width: 8px;
}
.donators-list::-webkit-scrollbar-track {
    background: var(--bg-element);
    border-radius: 4px;
}
.donators-list::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}
.donators-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Styles for Manual Payment Section */
.manual-payment-section {
    margin-top: var(--spacing-xxl); 
    padding-top: var(--spacing-xxl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.manual-payment-info {
    background: var(--bg-element);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin: 0 auto var(--spacing-lg) auto; 
    border-left: 4px solid var(--primary);
    max-width: 450px; 
    text-align: center;
}

.manual-payment-info p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-gray);
}

.manual-payment-info strong {
    color: var(--text-white);
    font-size: 1.2em;
    word-break: break-all;
}

/* ===== KRAS MEAT SERVER WIDGET STYLES ===== */
.km-server-widget { 
    all: revert; 
    box-sizing: border-box; 
    width: 100%; 
    max-width: 450px; 
    background: #1f1f1f; 
    border-radius: 12px; 
    padding: 1.2rem; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); 
    border: 1px solid rgba(255, 204, 0, 0.1); 
    position: relative; 
    font-family: 'Poppins', sans-serif; 
    color: #f0f0f0; 
    margin-bottom: 20px; 
    display: flex; 
    flex-direction: column; 
    gap: 1rem; 
    transition: box-shadow 0.3s ease; 
}
.km-server-widget:hover { 
    box-shadow: 0 8px 25px rgba(255, 204, 0, 0.2); 
}
.km-server-widget::after { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 3px; 
    background: linear-gradient(90deg, #ffcc00 0%, #ff9900 100%); 
}
.km-widget-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 1rem; 
}
.km-widget-header h3 { 
    all: revert; 
    box-sizing: border-box; 
    font-size: 1.4rem; 
    font-weight: 600; 
    color: #fff; 
    margin: 0; 
    padding: 0; 
    font-family: 'Poppins', sans-serif; 
    flex-grow: 1; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}
.km-server-widget a, 
.km-server-widget button { 
    all: revert; 
    font-family: 'Poppins', sans-serif; 
}
.widget-col-main { 
    display: flex; 
    flex-direction: column; 
    gap: 0.75rem; 
}
.info-row { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background-color: #2d2d2d; 
    padding: 0.4rem 0.8rem; 
    border-radius: 6px; 
    font-size: 0.9rem; 
}
.info-label { 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
    color: #b0b0b0; 
}
.info-label i { 
    color: #ffcc00; 
}
.info-row span { 
    color: #f0f0f0; 
}
.info-row strong { 
    font-weight: 600; 
    color: #fff; 
}
.player-list-container { 
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
    padding-top: 1rem; 
}
.player-list-header { 
    font-weight: 500; 
    color: #ffcc00; 
    margin-bottom: 0.5rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    cursor: pointer; 
    user-select: none; 
}
.player-list-toggle { 
    transition: transform 0.3s ease; 
}
.player-list-toggle.rotated { 
    transform: rotate(180deg); 
}
.km-player-list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    max-height: 0; 
    overflow-y: auto; 
    opacity: 0; 
    transition: max-height 0.4s ease, opacity 0.4s ease; 
}
.km-player-list.visible { 
    max-height: 220px; 
    opacity: 1; 
    margin-top: 0.5rem; 
}
.player-item { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0.4rem 0.6rem; 
    background-color: #2d2d2d; 
    border-radius: 4px; 
    font-size: 0.85rem; 
    margin-bottom: 4px; 
}
.player-name { 
    color: #f0f0f0; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    flex-grow: 1; 
}
.player-stats { 
    display: flex; 
    gap: 1rem; 
    align-items: center; 
    flex-shrink: 0; 
    margin-left: 1rem; 
}
.player-score { 
    font-weight: 600; 
    color: #ffcc00; 
}
.player-time { 
    font-weight: 400; 
    color: #b0b0b0; 
    font-size: 0.8rem; 
    min-width: 55px; 
    text-align: right; 
}
.ip-container { 
    display: flex; 
    align-items: center; 
    background-color: #2d2d2d; 
    border-radius: 6px; 
}
.server-ip-text { 
    font-size: 0.85rem; 
    color: #b0b0b0; 
    padding: 0.4rem 0.8rem; 
    white-space: nowrap; 
}
.ip-copy-button { 
    background: #3a3a3a; 
    color: #b0b0b0; 
    border: none; 
    border-radius: 0 6px 6px 0; 
    padding: 0.5rem 0.7rem; 
    cursor: pointer; 
    transition: color 0.3s ease, background 0.3s ease; 
    position: relative; 
    border-left: 1px solid #444; 
}
.ip-copy-button:hover { 
    background: #444; 
    color: #fff; 
}
.ip-copy-button .tooltip-text { 
    visibility: hidden; 
    width: 120px; 
    background-color: #111; 
    color: #fff; 
    text-align: center; 
    border-radius: 6px; 
    padding: 5px 0; 
    position: absolute; 
    z-index: 1; 
    bottom: 125%; 
    right: 0; 
    opacity: 0; 
    transition: opacity 0.3s; 
}
.ip-copy-button:hover .tooltip-text { 
    visibility: visible; 
    opacity: 1; 
}

/* --- ИСПРАВЛЕНИЕ ШАПКИ --- */
/* 1. Запрещаем перенос текста внутри кнопок и уменьшаем их размер */
.km-button {
    white-space: nowrap; /* Текст всегда в одну строку */
    padding: 8px 14px;   /* Уменьшаем внутренние отступы (было больше) */
    font-size: 0.9rem;   /* Чуть уменьшаем размер шрифта */
}

/* 2. Уменьшаем расстояние между навигацией и правыми кнопками */
.nav-container {
    gap: 15px !important; /* Было var(--spacing-xl) */
}

/* 3. Уменьшаем расстояние между ссылками (Правила, Спонсоры и т.д.) */
.nav-list {
    gap: 8px !important; /* Было var(--spacing-lg) */
}

/* 4. Уменьшаем расстояние между кнопками справа (Поддержать, Telegram) */
.header-buttons {
    gap: 8px !important;
}

/* 5. Чуть уменьшаем логотип, чтобы освободить место */
.logo h1 {
    font-size: 1.3rem;
}

/* --- НОВЫЙ ДИЗАЙН СПИСКА СПОНСОРОВ (FINAL) --- */

.donators {
  padding: 80px 0;
  background-color: var(--bg-dark);
}

.donators-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: auto;           
    overflow: visible;      
    padding: 10px;
}

.donator-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, rgba(34, 34, 34, 1) 0%, rgba(20, 20, 20, 1) 100%);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.donator-item:hover {
    transform: translateX(5px);
    border-color: rgba(255, 204, 0, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.donator-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.donator-place {
    font-size: 1.1rem;
    font-weight: 700;
    color: #555;
    width: 30px;
    text-align: center;
}

.donator-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.donator-nickname {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
}

/* ИСПРАВЛЕННЫЙ СТИЛЬ СУММЫ */
.donator-amount {
    font-family: 'Poppins', sans-serif !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #ffcc00 !important; 
    background: rgba(255, 204, 0, 0.1) !important;
    padding: 8px 15px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(255, 204, 0, 0.2) !important;
    display: inline-block !important;
    min-width: 80px;
    text-align: center;
    white-space: nowrap;
    z-index: 5;
}

/* --- ТОП 1 (ЗОЛОТОЙ) --- */
.donator-item.rank-1 {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.15) 0%, rgba(20, 20, 20, 1) 100%);
    border: 1px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}
.donator-item.rank-1 .donator-place { color: #ffd700; font-size: 1.5rem; }
.donator-item.rank-1 .donator-avatar { background: #ffd700; color: #000; box-shadow: 0 0 10px #ffd700; border: none; }
.donator-item.rank-1 .donator-amount { 
    background: #ffd700 !important;
    color: #000000 !important; 
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5) !important;
    border: none !important;
    text-shadow: none !important;
}

/* --- ТОП 2 (SILVER) --- */
.donator-item.rank-2 {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.1) 0%, rgba(20, 20, 20, 1) 100%);
    border: 1px solid rgba(192, 192, 192, 0.5);
}
.donator-item.rank-2 .donator-place { color: #e0e0e0; font-size: 1.3rem; }
.donator-item.rank-2 .donator-avatar { background: #c0c0c0; color: #000; border: none;}

/* --- ТОП 3 (BRONZE) --- */
.donator-item.rank-3 {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.1) 0%, rgba(20, 20, 20, 1) 100%);
    border: 1px solid rgba(205, 127, 50, 0.5);
}
.donator-item.rank-3 .donator-place { color: #cd7f32; font-size: 1.3rem; }
.donator-item.rank-3 .donator-avatar { background: #cd7f32; color: #000; border: none; }