:root {
  --primary-color: #ff9500;
  --secondary-color: #ffcc00;
  --background-color: #181818;
  --card-bg-color: #232323;
  --text-color: #f5f5f5;
  --accent-color: #00e676;
  --danger-color: #ff1744;
  --border-radius: 18px;
  --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  --transition: all 0.2s cubic-bezier(.4, 0, .2, 1);
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: 'Segoe UI', 'Roboto', 'Open Sans', sans-serif;
  transition: var(--transition);
}

.container {
  padding-top: 30px;
}

.card,
.service-item,
.gift-card-option,
.payment-method {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.card:hover,
.service-item:hover,
.gift-card-option:hover,
.payment-method:hover {
  box-shadow: 0 12px 36px rgba(255, 149, 0, 0.18);
  transform: scale(1.03);
  z-index: 2;
}

.card:focus-within,
.service-item:focus,
.gift-card-option:focus,
.payment-method:focus {
  outline: 2px solid var(--accent-color);
  box-shadow: 0 0 0 4px var(--accent-color);
}

.btn-primary,
.btn-primary:focus {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  color: #181818;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 16px var(--primary-color);
  transition: var(--transition);
  min-height: 48px;
  font-size: 1.15rem;
  padding: 12px 32px;
  letter-spacing: 0.03em;
}

.btn-primary:hover {
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
  color: #181818;
  transform: scale(1.04);
  box-shadow: 0 8px 24px var(--primary-color);
}

.btn-primary.back {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  padding-left: 24px;
}

.btn-primary.back::before {
  content: '←';
  font-size: 1.3em;
  margin-right: 6px;
  display: inline-block;
}

.card-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #181818;
  font-weight: bold;
  border-bottom: none;
  padding: 18px 24px;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px #fff8, 0 0 1px #fff8;
}

.card-body {
  padding: 25px;
}

.btn-primary:disabled {
  background: #555;
  transform: none;
  box-shadow: none;
  color: #aaa;
}

.list-group-item {
  background-color: var(--card-bg-color);
  border: 1px solid #333;
  color: var(--text-color);
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.list-group-item:hover {
  background-color: #2a2a2a;
  transform: translateX(5px);
  border-color: var(--primary-color);
}

.list-group-item.active,
.list-group-item.selected {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-color: transparent;
  color: #1e1e1e;
}

.badge-primary {
  background-color: var(--primary-color);
  padding: 8px 12px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: #1e1e1e;
}

.service-menu {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.service-item,
.gift-card-option,
.payment-method {
  min-height: 64px;
  font-size: 1.1rem;
}

.service-item {
  flex: 0 0 calc(50% - 15px);
  background-color: var(--card-bg-color);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 20px;
  border: 1px solid #333;
}

.service-item.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #1e1e1e;
}

.service-item .emoji {
  font-size: 36px;
  margin-bottom: 15px;
  display: block;
}

.service-item h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.service-item p {
  font-size: 14px;
  opacity: 0.8;
}

/* Gift Card Design */
.gift-card-option {
  display: flex;
  align-items: center;
  padding: 15px;
  background-color: #2a2a2a;
  border-radius: 8px;
  margin-bottom: 15px;
  cursor: pointer;
  border: 1px solid #333;
}

.gift-card-option.selected {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #1e1e1e;
}

.gift-card-option .card-info {
  flex: 1;
}

.gift-card-option .price {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

.gift-card-option .bonus {
  font-size: 14px;
  color: var(--secondary-color);
}

.gift-card-option.selected .bonus {
  color: #1e1e1e;
}

.gift-card-icon {
  margin-right: 15px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-size: 24px;
}

.payment-methods {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  flex-wrap: wrap;
}

.payment-method {
  flex: 0 0 calc(50% - 10px);
  background-color: #2a2a2a;
  border: 1px solid #333;
  padding: 15px;
  margin-bottom: 15px;
  text-align: center;
  cursor: pointer;
}

.payment-method.selected {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #1e1e1e;
}

.payment-method .emoji {
  font-size: 24px;
  margin-bottom: 10px;
  display: block;
}

.payment-method p {
  margin: 0;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {

  .service-item,
  .gift-card-option,
  .payment-method {
    flex: 0 0 100%;
    min-width: 0;
    margin-bottom: 16px;
  }

  .btn-primary,
  .btn-primary.back {
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
  }

  .service-menu {
    flex-direction: column;
    gap: 0;
  }
}

@media (max-width: 576px) {
  .service-item {
    flex: 0 0 100%;
  }

  .payment-method {
    flex: 0 0 100%;
  }
}

.loader {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(24, 24, 24, 0.7);
  align-items: center;
  justify-content: center;
}

.loader.active {
  display: flex;
}

.loader .spinner {
  border: 6px solid #232323;
  border-top: 6px solid var(--primary-color);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

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

  100% {
    transform: rotate(360deg);
  }
}

:focus-visible {
  outline: 3px solid var(--accent-color) !important;
  box-shadow: 0 0 0 4px var(--accent-color) !important;
  z-index: 10;
}

.modal-content {
  background: var(--background-color) !important;
  color: var(--text-color);
  border-radius: 22px;
  box-shadow: 0 12px 48px 0 rgba(0, 0, 0, 0.55), 0 1.5px 8px 0 rgba(255, 149, 0, 0.08);
  border: none;
  padding: 0;
}

.modal-header,
.modal-footer {
  background: transparent;
  border: none;
}

.card {
  background: var(--card-bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 20px;
  border: none;
  overflow: hidden;
  transition: var(--transition);
}

body,
.modal-backdrop {
  background: #111 !important;
}