.shop-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 30px;
  align-items: flex-start;
}

/* Стили для блока авторизации */
.auth-section {
  margin-top: 20px;
}

.auth-message {
  background-color: var(--bg-card-light);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-message h4 {
  color: var(--color-red);
  margin-bottom: 15px;
  font-size: 1.3rem;
  font-weight: 700;
}

.auth-message p {
  color: var(--text-muted);
  margin-bottom: 25px;
  font-size: 1rem;
}

.auth-message .btn {
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.auth-message .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(215, 31, 44, 0.4);
}
.shop-sidebar {
  background-color: var(--bg-card);
  padding: 20px;
  border-radius: 12px;
}
.sidebar-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
/* Стили для списка серверов (как в banlist.tpl) */
.server-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.server-list a {
  text-decoration: none;
  color: inherit;
}

.server-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  padding: 12px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  color: var(--text-muted);
}

.server-item.active, .server-item:hover {
  background-color: var(--color-red);
  color: white;
}

.server-item.active .online-indicator {
  opacity: 1;
}

.server-item i {
  font-size: 18px;
}

.online-indicator {
  margin-left: auto;
  color: var(--color-green);
  opacity: 0.3;
}

.server-select {
  width: 100%;
  padding: 12px 15px;
  background-color: #212121;
  border: 1px solid #333;
  color: var(--text-light);
  border-radius: 8px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.server-select:focus {
  outline: none;
  border-color: var(--color-red);
}

.server-select option {
  background-color: #212121;
  color: var(--text-light);
  padding: 8px 12px;
}
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(600px, 1fr));
  gap: 25px;
}
.item-card {
  background-color: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 280px 1fr;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.item-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.item-card-image-wrapper {
  background-color: #000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}
/* .item-card-image-wrapper::before {
  content: '';
  position: absolute;
  width: 4000px;
  height: 4000px;
  inset: 0;
  background-image: repeating-conic-gradient(from 0deg, var(--color-red) 0% 25%, transparent 25% 50%);
  background-size: 20px 20px;
  animation: spin 2200s linear infinite;
  top: -1000px;
  opacity: 0.1;
} */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.item-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 15px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
}
.item-logo {
  font-weight: 900;
  display: block;
  margin-top: 60px;
  text-align: center;
  text-transform: uppercase;
  position: relative;
  font-size: 30px;
  z-index: 12;
  text-shadow: 0 0 50px red;
  color: rgba(213, 158, 158, 0.7);
}
.item-image {
  object-fit: contain;
  position: relative;
  z-index: 2;
}
.item-card-info {
  padding: 25px;
  display: flex;
  flex-direction: column;
}
.item-title {
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 20px;
  flex-grow: 1;

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

}
.item-price {
  background-color: #180000;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 1.5rem;

  font-weight: 700;
}
.add-to-cart-btn {
  padding: 0 20px;
  height: 40px;
  background-color: var(--color-red);
  color: #EAEAEA;
  border: none;
  border-radius: 8px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.add-to-cart-btn:hover {
  background-color: var(--color-red-light);
}
.duration-select {
  width: 100%;
  padding: 12px 15px;
  background-color: #180000;
  border: 1px solid rgba(255,255,255,0.1);

  color: var(--text-light);
  border-radius: 8px;
  margin-bottom: 20px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

.advantages-section {
  border: 1px solid rgba(255,255,255,0.1);
  padding: 15px;
  border-radius: 8px;
  flex-grow: 1;
  background: #180000;
  height: 400px;
  overflow-y: scroll;
}

.advantages-section::-webkit-scrollbar {
  width: 4px;
}

.advantages-section::-webkit-scrollbar-track {
  background: transparent;
}

.advantages-section::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 2px;
}

.advantages-section::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.advantages-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.advantages-title {
  font-weight: 600;
  color: var(--text-muted);
}
.view-all {
  font-size: 12px;
  background-color: var(--bg-card-light);
  padding: 4px 10px;
  border-radius: 6px;
  transition: background-color 0.2s;
}
.view-all:hover {
  background-color: #333;
}
.advantages-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.advantages-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.advantages-list i {
  color: var(--color-red);
  font-size: 16px;
  width: 20px;
  text-align: center;
}
.advantages-list li i.fa-bolt,
.advantages-list li i.fa-arrows-to-circle,
.advantages-list li i.fa-hand-fist {
  color: var(--color-blue);
}
@media (max-width: 1400px) {
  .items-grid { grid-template-columns: 1fr; }
}
@media (max-width: 992px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { margin-bottom: 30px; }
  .server-list { flex-direction: row; justify-content: center; flex-wrap: wrap; }
}
@media (max-width: 768px) {
  .item-card { grid-template-columns: 1fr; }
  .item-card-image-wrapper { min-height: 300px; }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}
.modal-overlay.visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s 0s;
}
.modal-overlay.visible .modal-window {
  overflow-y: auto;
}

.purchase-modal-window {
  width: 100%;
  max-width: 900px;
  background-color: #1a1a1a;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-overlay.visible .purchase-modal-window {
  transform: scale(1);
}
.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}
.modal-close-btn:hover {
  color: var(--text-light);
  transform: rotate(90deg);
}
.purchase-layout {
  display: grid;
  grid-template-columns: 40% 60%;
}
.purchase-form-section {
  background-color: #141414;
  padding: 25px;
  border-radius: 16px 0 0 16px;
  display: flex;
  flex-direction: column;
}
.purchase-item-header {
  display: flex;
  justify-content: space-between;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
  font-weight: 600;
}
.purchase-item-price {
  white-space: nowrap;
  color: var(--color-red);
}
.purchase-form-content {
  flex-grow: 1;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--text-muted);
}
.purchase-select {
  width: 100%;
  padding: 12px 15px;
  background-color: #212121;
  border: 1px solid #333;
  color: var(--text-light);
  border-radius: 8px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}
.purchase-select:focus,
.purchase-input:focus {
  outline: none;
  border-color: var(--color-red);
}
.checkbox-label {
  cursor: pointer;
  display: flex;
  align-items: center;
}
input[type="checkbox"].promo-checkbox {
  display: none;
}
.custom-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #555;
  border-radius: 4px;
  margin-right: 10px;
  display: inline-block;
  position: relative;
  transition: all 0.2s;
}
input[type="checkbox"].promo-checkbox:checked + .custom-checkbox {
  background-color: var(--color-red);
  border-color: var(--color-red);
}
.custom-checkbox::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  color: white;
  font-size: 12px;
  transition: transform 0.2s;
}
input[type="checkbox"].promo-checkbox:checked + .custom-checkbox::after {
  transform: translate(-50%, -50%) scale(1);
}
.promo-input-wrapper {
  display: flex;
  margin-top: 10px;
}
.purchase-input {
  width: 100%;
  background-color: #212121;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 10px 15px;
  color: var(--text-light);
  font-size: 14px;
  transition: border-color 0.2s;
}
.purchase-input:disabled {
  background-color: #252525;
  cursor: not-allowed;
}
.promo-apply-btn {
  background-color: #32a852;
  border: none;
  color: white;
  width: 42px;
  height: 44px;
  border-radius: 8px;
  margin-left: -42px;
  cursor: pointer;
}
.purchase-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 700;
  font-size: 1.2rem;
}
.total-price {
  font-size: 1.5rem;
  color: var(--color-red);
}
.purchase-submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
}
.purchase-description-section {
  padding: 30px 40px;
  color: #cdd6f4;
  border-radius: 0 16px 16px 0;
}
.description-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 5px;
}
.description-subtitle {
  font-size: 0.9rem;
  color: #a6adc8;
  margin-bottom: 25px;
}
.description-section h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 15px;
}
.description-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.description-list li {
  line-height: 1.6;
  color: #bac2de;
}
.description-list strong {
  color: var(--color-green);
  font-weight: 600;
}
.purchase-modal-window{
  overflow-y: scroll;
  scale: 0.9;
  height: 500px;
}

.disp-n {display: none}

.purchase-layout{
  display: grid;
  grid-template-columns: 40% 60%;
}

.purchase-yes-btn {
  background-color: #32a852 !important;
  border-color: #32a852 !important;
  color: white !important;
  transition: all 0.3s ease;
  width: auto;
  padding: 12px 50px;
}

.purchase-yes-btn:hover {
  background-color: #2d8f47 !important;
  border-color: #2d8f47 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(50, 168, 82, 0.3);
}

.purchase-no-btn {
  background-color: #dc3545 !important;
  border-color: #dc3545 !important;
  color: white !important;
  transition: all 0.3s ease;
  width: auto;
  padding: 12px 50px;
}

.purchase-no-btn:hover {
  background-color: #c82333 !important;
  border-color: #c82333 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

#buy_result {
  margin-bottom: 20px;
  font-size: 1.15rem;
}

.purchase-success-section {
  padding: 40px;
  text-align: center;
  background: linear-gradient(135deg, #141414 0%, #1a1a1a 100%);
  border-radius: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.purchase-success-section.full-width {
  grid-column: 1 / -1;
  border-radius: 16px;
}

.purchase-success-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #32a852, #4a9eff, #32a852);
  background-size: 200% 100%;
  animation: gradientMove 3s ease-in-out infinite;
}

@keyframes gradientMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.success-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.success-header i {
  font-size: 4rem;
  color: #32a852;
  margin-bottom: 15px;
  animation: successPulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(50, 168, 82, 0.5));
  position: relative;
}

.success-header i::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(50, 168, 82, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ripple 2s ease-out infinite;
}

@keyframes ripple {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

.success-header span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
}

.success-content {
  flex-grow: 1;
  margin-bottom: 30px;
  text-align: left;
  background-color: #1a1a1a;
  padding: 25px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.success-content h4 {
  color: #32a852;
  margin-bottom: 15px;
  font-size: 1.3rem;
  text-align: center;
  font-weight: 700;
}

.success-content div {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 1rem;
}

.success-content b {
  color: var(--color-red);
  font-weight: 700;
  background-color: rgba(220, 53, 69, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

.success-content a {
  color: var(--color-blue);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.success-content a:hover {
  text-decoration: underline;
  color: #4a9eff;
  text-shadow: 0 0 8px rgba(74, 158, 255, 0.5);
}

.success-content ul {
  margin: 15px 0;
  padding-left: 20px;
}

.success-content li {
  margin-bottom: 8px;
  position: relative;
}

.success-content li::before {
  content: '•';
  color: var(--color-red);
  font-weight: bold;
  position: absolute;
  left: -15px;
  top: 0;
}

.success-content .highlight {
  background: linear-gradient(135deg, rgba(50, 168, 82, 0.1), rgba(50, 168, 82, 0.05));
  border: 1px solid rgba(50, 168, 82, 0.2);
  border-radius: 8px;
  padding: 15px;
  margin: 15px 0;
}

.success-content .highlight b {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-red);
}

.success-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.success-actions .btn {
  padding: 14px 35px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.success-actions .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.success-actions .btn:hover::before {
  left: 100%;
}

.success-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

@keyframes successPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.item-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.item-image-container {
	width: 100%;
	height: 100%;
	overflow: hidden;
}

@media (max-width: 768px) {
  .purchase-success-section {
    padding: 25px 20px;
  }
  
  .success-header i {
    font-size: 3rem;
  }
  
  .success-header span {
    font-size: 1.2rem;
  }
  
  .success-content {
    padding: 20px;
    font-size: 0.9rem;
  }
  
  .success-actions {
    flex-direction: column;
    gap: 15px;
  }
  
  .success-actions .btn {
    width: 100%;
    padding: 12px 25px;
  }
  
  .purchase-layout {
    grid-template-columns: 1fr;
  }
  
  .purchase-description-section {
    margin-top: 20px;
    padding: 20px;
  }
}