.profile-header {
  margin-bottom: 20px;
}
.profile-banner {
  height: 300px;
  background-color: var(--bg-card);
  border-radius: 12px;
  background-size: cover;
  background-position: center;
}
.profile-info-bar {
  position: relative;
  padding: 0 40px;
  margin-top: 20px;
}
.profile-avatar-card {
  display: flex;
  align-items: center;
  gap: 25px;
  position: relative;
}
.profile-avatar-wrapper {
  width: 160px;
  height: 160px;
  border-radius: 3px;
  /* border: 5px solid var(--bg-dark); */
  /* background-color: var(--bg-dark); */
  flex-shrink: 0;
}
.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 3px;
  object-fit: cover;
}
.profile-main-info {
  flex-grow: 1;
}
.profile-nickname {
  font-size: 2.5rem;
  font-weight: 800;
}
.profile-status-text {
  font-size: 1rem;
  color: var(--text-muted);
}
.profile-activity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background-color: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(5px);
  padding: 15px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
}
.profile-activity span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.online-status i {
  color: var(--color-green);
}

.online-status.offline i {
  color: var(--text-muted);
}

.profile-tabs {
  display: flex;
  gap: 20px;
  background-color: var(--bg-card);
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 25px;
}
.profile-tab {
  flex: 1;
  padding: 12px;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--bg-card-light);

  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.profile-tab:hover {
  background-color: var(--bg-card-light);
  color: var(--text-light);
}
.profile-tab.active {
  background-color: var(--color-red);
  color: white;
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}
.info-block {
  background-color: var(--bg-card);
  padding: 15px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.info-icon {
  width: 45px;
  height: 45px;
  flex-shrink: 0;
  background-color: var(--bg-card-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-muted);
}
.info-text {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.info-text span {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.info-text strong {
  font-size: 1rem;
  font-weight: 600;
}
.info-text .group-user {
  color: var(--color-red);
}
.time-played-block .info-icon {
  background-color: rgba(82, 183, 136, 0.1);
  color: var(--color-green);
}
.admin-rules-btn {
  display: inline-flex;
  justify-content: center;
  width: 32%;
}

.friends-section {
  background-color: var(--bg-card);
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 25px;
}
.friends-header {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 15px;
  margin-bottom: 20px;
}
.friends-header h3 {
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.friends-header span {
  color: var(--text-muted);
}
.friends-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.friend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background-color: var(--bg-card-light);
  padding: 10px;
  border-radius: 8px;
}
.friend-item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.friend-item a {
  flex-grow: 1;
  font-weight: 600;
}
.btn-message {
  max-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid #444;
  color: var(--text-muted);
  width: 40px; height: 40px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
}
.btn-message:hover {
  background-color: var(--color-red);
  border-color: var(--color-red);
  color: white;
}
.request-actions {
  display: flex;
  gap: 10px;
}
.btn-accept, .btn-decline {
  width: 40px; height: 40px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: all .2s;
}
.btn-accept { background-color: var(--color-green); color: white; }
.btn-accept:hover { background-color: #69e0a2; }
.btn-decline { background-color: var(--color-red); color: white; }
.btn-decline:hover { background-color: var(--color-red-light); }
.privileges-section {
  padding-bottom: 15px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.privileges-section h3 { font-size: 1.3rem; }
.privileges-section span { color: var(--text-muted); }
.privilege-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.privilege-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: var(--bg-card-light);
  padding: 20px;
  border-radius: 12px;
}

.privilege-info span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.privilege-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 20px;
  background-color: rgba(215, 31, 44, 0.1);
  color: var(--color-red);
}
.privilege-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
}
.privilege-info a {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: underline;
}

.friends-section-items {
  display: flex;
  flex-wrap: wrap;
  align-content: space-between;
  gap: 10px;
  margin-top: 20px;
}

.friends-section-item {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background-color: var(--bg-card-light);
  padding: 10px;
  border-radius: 10px;
}

.friends-section-item span {
  opacity: 0.8;
  font-size: 14px;
}

.profile-right-card-buttons {
  display: flex;
  margin-top: 10px;
  gap: 5px;
}

.profile-right-card-buttons a {
  max-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-right-card-buttons a.friend {
  width: 100%;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .profile-avatar-card {flex-direction: column;margin-top: 0;}
  .profile-info-bar { padding: 0 15px; margin-top: 0px; }
  .profile-activity { flex-direction: row; }
  .profile-tabs { flex-direction: column; }
  .admin-rules-btn{
    width: 100%;
  }
}

#countryBlock[data-tip]{
  position:relative;
  display: flex;
  gap: 7px;
}
#countryBlock img {
  width: 25px;
  height: 20px;
  margin-top: 3px;
}

					#countryBlock[data-tip]:hover::after{content:attr(data-tip);position:absolute;left:0;top:-10px;transform:translateY(-100%);background:#8d0f12;color:#fff;padding:6px 10px;border-radius:8px;white-space:nowrap;font-weight:600;letter-spacing:.4px;box-shadow:0 6px 18px rgba(141,15,18,.35)}
					#countryBlock[data-tip]:hover::before{content:"";position:absolute;left:16px;top:-12px;transform:translateY(-100%);border:7px solid transparent;border-top-color:#8d0f12}

/* ÐŸÐ°Ð½ÐµÐ»ÑŒ Ð°Ð´Ð¼Ð¸Ð½Ð¸ÑÑ‚Ñ€Ð°Ñ‚Ð¾Ñ€Ð° */
.btn_admin_menu {
  width: 45px;
  height: 45px;
  background: linear-gradient(23deg, #1e458f 0%, #2d76ff 55%);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: #fff;
  transition: 0.2s;
  cursor: pointer;
  margin-right: 10px;
}

.btn_admin_menu:hover {
  opacity: 0.7;
  color: #fff;
}

.admin_menu_block {
  display: flex;
  gap: 15px;
}

.left_block_admin {
  width: 100%;
  display: flex;
  gap: 10px;
  flex-direction: column;
}

.balance-left {
  height: 155px;
  padding: 20px 25px;
  display: flex;
  background-size: cover !important;
  padding-top: 6px;
  border-radius: 17px;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.balance-left::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url(../img/back_purse.png);
  background-size: cover;
  background-position: center;
  filter: hue-rotate(
134deg) saturate(1) brightness(1) contrast(1);
  z-index: 0;
}

.balance-left i {
  font-size: 40px;
  position: relative;
  margin-bottom: -70px;
  top: -60px;
  left: 160px;
  color: #87b2ff;
  width: 10px;
}

.skidka-right {
  height: 48px;
  background: var(--bg-card-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 15px;
  display: flex;
  border-radius: 10px;
  align-items: center;
  justify-content: space-between;
}

.top_balance_left {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    align-items: flex-start;
}

.h1reg {
  font-weight: 700;
  position: relative;
  font-size: 20px;
  color: #fff;
}

.h2reg {
  font-weight: 600;
  position: relative;
  font-size: 10.5px;
  color: #fff;
}

.buttom_balance_left {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
}

.name_card_user {
  font-size: 12px;
  color: #fff;
  opacity: 0.8;
}

.login_card {
  font-size: 14px;
  color: #fff;
  font-weight: 600;
}

.procent_name_menu {
  font-size: 12px;
  color: var(--text-muted);
}

.procent_admin_menu {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--color-red);
  padding: 4px 8px;
  border-radius: 8px;
}

.btn_admins_menu {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 7px;
}

.btn_admin_func {
  background: var(--bg-card-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  padding: 12px 15px;
  color: var(--text-light);
  gap: 10px;
  font-size: 14px;
  border-radius: 8px;
  display: flex;
  height: 48px;
  transition: all 0.2s;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}

.btn_admin_func:hover {
  background: var(--color-red-light);
  color: var(--text-light);
  text-decoration: none;
}

.btn_admin_func:hover i {
  color: #ffffff !important;
}

.btn_admin_func i {
  font-size: 16px;
  transition: 0.2s;
  background: var(--bg-card);
  width: 32px;
  height: 32px;
  display: flex;
  border-radius: 8px;
  color: var(--color-red);
  align-items: center;
  justify-content: center;
}

.flex_modal_head {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.line_title {
  display: flex;
  gap: 3px;
}

.line_purse1 {
  width: 20px;
  height: 2px;
  background: #256aea;
  border-radius: 1px;
}

.line_purse {
  width: 10px;
  height: 2px;
  background: #4d6aa0;
  border-radius: 1px;
}

.steam-profile-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  margin-top: 7px;
  transition: color 0.3s ease;
}

.steam-profile-link span {
  color: #fff;
  transition: color 0.3s ease;
}

.steam-profile-link span:hover {
  color: #8d0f12;
}

.steam-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.steam-username {
  font-weight: 600;
  font-size: 14px;
}

.vk-profile-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  margin-top: 7px;
  transition: color 0.3s ease;
}

.vk-profile-link span {
  color: #fff;
  transition: color 0.3s ease;
}

.vk-profile-link span:hover {
  color: #8d0f12;
}

.vk-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.vk-username {
  font-weight: 600;
  font-size: 14px;
}

.copyable-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
}

.copy-btn {
  background: var(--bg-card-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 1;
  transform: translateX(0);
  flex-shrink: 0;
}

.copy-btn:hover {
  background: var(--color-red);
  color: #fff;
  border-color: var(--color-red);
  transform: translateY(-1px);
}

.copy-btn i {
  font-size: 12px;
}

.info-text a {
  transition: color 0.3s ease;
}


.info-text a:hover {
  color: #8d0f12;
}

.privileges-footnote {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.privileges-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.privileges-tooltip i {
  color: #ddd;
  cursor: help;
  font-size: 17px;
  transition: color 0.3s ease;
}

.privileges-tooltip:hover i {
  color: var(--color-red);
}

.privileges-tooltip .tooltip-content {
  visibility: hidden;
  opacity: 0;
  width: 200px;
  background-color: var(--bg-card);
  color: var(--text-light);
  text-align: center;
  border-radius: 6px;
  padding: 8px 12px;
  position: absolute;
  z-index: 1000;
  right: 125%;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.3s ease;
  font-size: 12px;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.privileges-tooltip .tooltip-content::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent var(--bg-card-light);
}

.privileges-tooltip:hover .tooltip-content {
  visibility: visible;
  opacity: 1;
}

.privileges-link {
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 4px 8px;
  border-radius: 4px;
  background-color: var(--color-red);
  color: var(--text-light);
}

.privileges-link:hover {
  background-color: var(--color-red-light);
  text-decoration: none;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .admin_menu_block {
    flex-direction: column;
  }
  
  .balance-left i {
    display: none;
  }
  
  .privileges-footnote {
    margin-left: 0;
    margin-top: 10px;
    justify-content: center;
  }
  
  .privileges-tooltip .tooltip-content {
    width: 180px;
    right: auto;
    left: 50%;
    top: auto;
    bottom: 125%;
    transform: translateX(-50%);
    font-size: 11px;
  }
  
  .privileges-tooltip .tooltip-content::after {
    top: 100%;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    border-color: var(--bg-card-light) transparent transparent transparent;
  }
}

/* Ð¡Ñ‚Ð¸Ð»Ð¸ Ð´Ð»Ñ ÑÐ»ÐµÐ¼ÐµÐ½Ñ‚Ð¾Ð² Ð¿Ñ€Ð¸Ð²Ð¸Ð»ÐµÐ³Ð¸Ð¹ */
.admin-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  margin-bottom: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  gap: 20px;
}

.admin-item:hover {
  border-color: var(--color-red);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.admin-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.admin-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-red), var(--color-red-light));
  border-radius: 8px;
  color: #fff;
  font-size: 18px;
}

.admin-details {
  flex: 1;
}

.admin-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 4px;
}

.admin-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 120px;
}

.status-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}

.status-active {
  color: #28a745;
}

.status-paused {
  color: #ffc107;
}

.status-blocked {
  color: #dc3545;
  cursor: help;
}

.status-info i {
  font-size: 14px;
}

.admin-server {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 120px;
}

.server-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-light);
}

.server-info i {
  color: var(--color-red);
  font-size: 14px;
}

/* ÐÐ´Ð°Ð¿Ñ‚Ð¸Ð²Ð½Ð¾ÑÑ‚ÑŒ Ð´Ð»Ñ ÑÐ»ÐµÐ¼ÐµÐ½Ñ‚Ð¾Ð² Ð¿Ñ€Ð¸Ð²Ð¸Ð»ÐµÐ³Ð¸Ð¹ */
@media (max-width: 768px) {
  .admin-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .admin-info {
    width: 100%;
  }
  
  .admin-status,
  .admin-server {
    min-width: auto;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
  }
  
  .admin-meta {
    justify-content: flex-start;
  }
}

/* ÐšÐ°ÑÑ‚Ð¾Ð¼Ð½Ð¾Ðµ Ð¼Ð¾Ð´Ð°Ð»ÑŒÐ½Ð¾Ðµ Ð¾ÐºÐ½Ð¾ */
.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.custom-modal.visible {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-width: 900px;
  width: 95%;
  max-height: 85vh;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.custom-modal.visible .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-light);
}

.modal-title i {
  color: var(--color-red);
  font-size: 20px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.modal-close:hover {
  background: var(--bg-dark);
  color: var(--text-light);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-height: 85vh;
  }
  
  .modal-header {
    padding: 16px 20px;
  }
  
  .modal-title {
    font-size: 16px;
  }
  
  .modal-body {
    padding: 20px;
  }
}

/* Ð¡Ñ‚Ð¸Ð»Ð¸ Ð´Ð»Ñ Ñ„Ð¾Ñ€Ð¼ Ð² Ð¼Ð¾Ð´Ð°Ð»ÑŒÐ½Ð¾Ð¼ Ð¾ÐºÐ½Ðµ (Ð¸Ð· edit_admins.css) */
.custom-input {
  position: relative;
  width: 100%;
  display: block;
  margin-bottom: 20px;
}

.custom-input.with-title {
  margin-top: 10px;
}

.custom-input > input {
  width: 100%;
  padding: 25px 20px 8px 54px;
  background: var(--bg-card-light);
  border: 2px solid transparent;
  border-radius: 10px;
  color: var(--text-light);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.custom-input > input:hover {
  background: var(--bg-card);
  border-color: rgba(215, 31, 44, 0.3);
}

.custom-input > input:focus {
  outline: none;
  border-color: var(--color-red-light);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(215, 31, 44, 0.1);
}

.custom-input > input::placeholder {
  color: transparent;
}

.custom-input > span {
  position: absolute;
  left: 50px;
  top: 8px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  pointer-events: none;
}

.custom-input i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  transition: color 0.3s ease;
  pointer-events: none;
}

.custom-input:hover i {
  color: var(--color-red-light);
}

.custom-input.with-button > button,
.custom-select.with-button > button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-red);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(215, 31, 44, 0.3);
}

.custom-input.with-button > button:hover,
.custom-select.with-button > button:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 18px rgba(215, 31, 44, 0.25);
  transform: translateY(-50%) translateY(-1px);
}

.custom-input.with-button > button[disabled],
.custom-select.with-button > button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

/* ÐœÐµÑÑ‚Ð¾ Ð´Ð»Ñ ÐºÐ½Ð¾Ð¿ÐºÐ¸ Ð² Ð¿Ð¾Ð»ÑÑ… Ð²Ð²Ð¾Ð´Ð° */
.custom-input.with-button > input {
  padding-right: 140px;
}

.custom-select.with-button > select {
  padding-right: 140px;
}

.custom-select {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
  display: block;
}

.custom-select.with-title {
  margin-top: 10px;
}

.custom-select > select {
  width: 100%;
  padding: 25px 50px 8px 54px;
  background: var(--bg-card-light);
  border: 2px solid transparent;
  border-radius: 10px;
  color: var(--text-light);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-sizing: border-box;
}

.custom-select > select:hover {
  background: var(--bg-card);
  border-color: rgba(215, 31, 44, 0.3);
}

.custom-select > select:focus {
  outline: none;
  border-color: var(--color-red-light);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(215, 31, 44, 0.1);
}

.custom-select > span {
  position: absolute;
  left: 50px;
  top: 8px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  pointer-events: none;
}

.custom-select i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  transition: color 0.3s ease;
  pointer-events: none;
}

.custom-select:hover i {
  color: var(--color-red-light);
}


/* Ð¡Ñ‚Ð¸Ð»Ð¸ Ð´Ð»Ñ Ñ€ÐµÐ´Ð°ÐºÑ‚Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ñ Ð°Ð´Ð¼Ð¸Ð½Ð¾Ð² (Ð¸Ð· edit_admins.css) */
.editing_admins_full {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.editing_admins_full_btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.block_editing_admins {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-light);
  border-radius: 10px;
  padding: 15px;
}

.block_editing_admins > span {
  display: block;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
}

.buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Ð¡Ñ‚Ð¸Ð»Ð¸ Ð´Ð»Ñ ÐºÐ½Ð¾Ð¿Ð¾Ðº Ð´ÐµÐ¹ÑÑ‚Ð²Ð¸Ð¹ Ð°Ð´Ð¼Ð¸Ð½Ð¾Ð² */
.btn_editing_admins {
  background: var(--bg-card-light);
  color: var(--text-light);
  border: 1px solid var(--bg-card-light);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 8px;
  margin-bottom: 8px;
  display: inline-block;
}

.btn_editing_admins:hover {
  background: var(--color-red-light);
  border-color: var(--color-red-light);
  color: var(--text-light);
  transform: translateY(-1px);
}

.btn_editing_admins[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

/* Ð¡Ñ‚Ð¸Ð»Ð¸ Ð´Ð»Ñ Ð±Ð»Ð¾ÐºÐ¾Ð² Ð¿Ñ€Ð¸Ð²Ð¸Ð»ÐµÐ³Ð¸Ð¹ */
.block_admins_privileges {
  margin-top: 20px;
}

.flex_head_privileges {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.flex_text_priv {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.text_flex_privileges {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-light);
}

.desp_flex_privileges {
  font-size: 12px;
  color: var(--text-muted);
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Ð¡Ñ‚Ð¸Ð»Ð¸ Ð´Ð»Ñ Ñ‚Ð°Ð±Ð»Ð¸Ñ†Ñ‹ Ð¿Ñ€Ð¸Ð²Ð¸Ð»ÐµÐ³Ð¸Ð¹ (Ð¸Ð· edit_admins.css) */
.new_table_privileges {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-light);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.new_table_privileges:hover {
  border-color: var(--color-red);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.new_tr_privileges {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.new_tr_privileges:last-child {
  border-bottom: none;
}

.text_table_new_one {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-light);
  flex: 1;
}

.text_table_new {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.name_table_new {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  min-width: 120px;
  margin-right: 16px;
}

.flex_flags_new {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.btn_flags {
  background: var(--bg-card-light);
  color: var(--text-light);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 6px 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.btn_flags:hover:not([disabled]) {
  background: var(--color-red);
  border-color: var(--color-red);
  color: #fff;
}

.btn_flags[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.flags-input {
  flex: 1;
  padding: 8px 12px;
  background: var(--bg-card-light);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-light);
  font-size: 14px;
}

.flags-input:focus {
  outline: none;
  border-color: var(--color-red);
  background: var(--bg-card);
}

.timer_new_privileges {
  padding: 8px 12px;
  background: var(--bg-card-light);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-light);
  font-size: 14px;
  min-width: 200px;
}

.timer_new_privileges:focus {
  outline: none;
  border-color: var(--color-red);
  background: var(--bg-card);
}

.delete_privileges {
  background: #dc3545;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: auto;
}

.delete_privileges:hover:not([disabled]) {
  background: #c82333;
  transform: translateY(-1px);
}

.delete_privileges[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Ð¡Ñ‚Ð¸Ð»Ð¸ Ð´Ð»Ñ ÑÐ¿Ð¸ÑÐºÐ° ÑÐ»ÐµÐ¼ÐµÐ½Ñ‚Ð¾Ð² Ð¿Ñ€Ð¸Ð²Ð¸Ð»ÐµÐ³Ð¸Ð¹ */
.admin-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.admin-items-list .loader {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  color: var(--text-muted);
}

.admin-items-list .loader::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-top: 2px solid var(--color-red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Ð¡Ñ‚Ð¸Ð»Ð¸ Ð´Ð»Ñ store_info.tpl */
.store-info-section {
  margin-bottom: 20px;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 20px;
}

.info-content {
  flex: 1;
}

.info-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.info-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-light);
}

.btn-unblock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-red);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-unblock:hover {
  background: var(--color-red-light);
  transform: translateY(-1px);
}

.status-active {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #28a745;
  font-weight: 500;
}

.status-paused {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffc107;
  font-weight: 500;
}

/* Ð¡Ñ‚Ð¸Ð»Ð¸ Ð´Ð»Ñ Ñ‚Ð°Ð±Ð»Ð¸Ñ†Ñ‹ ÑƒÑÐ»ÑƒÐ³ */
.services-table-container {
  margin-top: 20px;
}

.services-table {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.services-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  background: var(--bg-card-light);
  border-bottom: 1px solid var(--border-color);
}

.service-col {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-right: 1px solid var(--border-color);
}

.service-col:last-child {
  border-right: none;
}

.services-body {
  display: flex;
  flex-direction: column;
}

/* Ð¡Ñ‚Ð¸Ð»Ð¸ Ð´Ð»Ñ editing_admins_store.tpl */
.service-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.service-item:hover {
  border-color: var(--color-red);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-card-light);
  border-bottom: 1px solid var(--border-color);
}

.service-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-light);
}

.service-delete {
  background: #dc3545;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.service-delete:hover:not([disabled]) {
  background: #c82333;
  transform: translateY(-1px);
}

.service-delete[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.service-content {
  padding: 20px;
}

.service-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.service-section:last-child {
  margin-bottom: 0;
}

.service-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  min-width: 120px;
}

.service-value {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.flags-section {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.btn-flags {
  background: var(--bg-card-light);
  color: var(--text-light);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 6px 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.btn-flags:hover:not([disabled]) {
  background: var(--color-red);
  border-color: var(--color-red);
  color: #fff;
}

.btn-flags[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.flags-input {
  flex: 1;
  padding: 8px 12px;
  background: var(--bg-card-light);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-light);
  font-size: 14px;
}

.flags-input:focus {
  outline: none;
  border-color: var(--color-red);
  background: var(--bg-card);
}

.date-input {
  padding: 8px 12px;
  background: var(--bg-card-light);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-light);
  font-size: 14px;
  min-width: 200px;
}

.date-input:focus {
  outline: none;
  border-color: var(--color-red);
  background: var(--bg-card);
}

/* ÐÐ´Ð°Ð¿Ñ‚Ð¸Ð²Ð½Ð¾ÑÑ‚ÑŒ Ð´Ð»Ñ Ð½Ð¾Ð²Ñ‹Ñ… ÑÐ»ÐµÐ¼ÐµÐ½Ñ‚Ð¾Ð² */
@media (max-width: 768px) {
  .services-header {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .service-col {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  
  .service-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .service-label {
    min-width: auto;
  }
  
  .flags-section {
    width: 100%;
  }
  
  .date-input {
    min-width: 100%;
  }
}

.extend-content {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}

.extend-select {
  flex: 1;
  min-width: 0;
}

.extend-select select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--bg-card-light);
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--text-light);
  font-size: 14px;
}

.extend-select select:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

/* ===== Events Styles ===== */
.events-container {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-light);
  border-radius: 12px;
  margin-bottom: 25px;
  overflow: hidden;
}

.events-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 24px;
  background: var(--bg-card-light);
  border-bottom: 1px solid var(--bg-card-light);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-light);
}

.events-header i {
  font-size: 20px;
  color: var(--color-red);
}

.events-list {
  padding: 20px;
  max-height: unset;
}

.event-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 15px;
  align-items: center;
  padding: 15px;
  margin-bottom: 10px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-light);
  border-radius: 8px;
  transition: all 0.2s ease;
  min-height: 60px;
  padding-top: 15px!important;
}

.event-item:hover {
  border-color: var(--color-red);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.event-item:last-child {
  margin-bottom: 0;
}

.event-text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.4;
  word-wrap: break-word;
  min-width: 0;
}

.event-user {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.event-user:hover {
  background: var(--bg-card-light);
}

.event-user img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.event-user span {
  font-size: 13px;
  font-weight: 500;
}

.event-time {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  text-align: right;
}

.event-item .btn {
  padding: 6px 12px;
  font-size: 12px;
  white-space: nowrap;
}

/* Responsive for events */
@media (max-width: 768px) {
  .events-header {
    padding: 15px 20px;
    font-size: 16px;
  }
  
  .events-list {
    padding: 15px;
  }
  
  .event-item {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: flex-start;
  }
  
  .event-text {
    order: 1;
    margin-bottom: 5px;
  }
  
  .event-user {
    order: 2;
    justify-self: flex-start;
  }
  
  .event-time {
    order: 3;
    text-align: left;
  }
  
  .event-item .btn {
    order: 4;
    justify-self: flex-start;
    margin-top: 5px;
  }
}