.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(9, 9, 11, 0.9);
  backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #121215;
  border: 1px solid var(--border-glass-glow);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  padding: 32px;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.9);
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: var(--transition);
  max-height: 90vh;
  overflow-y: auto;
}

@media (max-width: 600px) {
  .modal-box {
    padding: 24px 18px;
    width: 95%;
  }
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  color: #ffffff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.modal-header {
  margin-bottom: 20px;
  padding-right: 30px;
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

@media (max-width: 480px) {
  .modal-title {
    font-size: 1.35rem;
  }
}

.modal-subtitle {
  color: #a1a1aa;
  font-size: 0.95rem;
  font-weight: 500;
}

.payment-details-card {
  background: #18181b;
  border: 1px dashed var(--border-glass-glow);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  margin-bottom: 24px;
}

.payment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 480px) {
  .payment-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

.payment-row:last-child {
  border-bottom: none;
}

.payment-key {
  color: #a1a1aa;
  font-size: 0.92rem;
  font-weight: 600;
}

.payment-value {
  color: #ffffff;
  font-weight: 700;
  font-family: inherit;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.02em;
  text-align: right;
}

@media (max-width: 480px) {
  .payment-value {
    text-align: left;
    word-break: break-all;
  }
}

.payment-value-address {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.5;
  margin-top: 4px;
}

.btn-copy {
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 0.8rem;
  font-family: inherit;
  font-weight: 700;
  flex-shrink: 0;
}

.btn-copy:hover {
  background: #ffffff;
  color: #09090b;
}

.calendar-picker {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin: 16px 0;
}

.day-cell {
  background: #18181b;
  border: 1px solid var(--border-glass);
  color: #ffffff;
  padding: 8px 2px;
  text-align: center;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
}

.day-cell strong {
  color: #ffffff;
  transition: var(--transition);
}

.day-cell:hover:not(.disabled) {
  background: #ffffff;
  color: #09090b !important;
  border-color: #ffffff;
}

.day-cell:hover:not(.disabled) strong {
  color: #09090b !important;
}

.day-cell.selected {
  background: #ffffff;
  color: #09090b !important;
  font-weight: 800;
  border-color: #ffffff;
}

.day-cell.selected strong {
  color: #09090b !important;
}

.day-cell.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
}

@media (max-width: 480px) {
  .time-slots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.time-slot-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: #ffffff;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  transition: var(--transition);
}

.time-slot-btn strong,
.time-slot-btn small {
  color: inherit;
  transition: var(--transition);
}

.time-slot-btn:hover {
  background: #ffffff;
  color: #09090b !important;
  border-color: #ffffff;
}

.time-slot-btn:hover strong,
.time-slot-btn:hover small {
  color: #09090b !important;
}

.time-slot-btn.selected {
  background: #ffffff;
  color: #09090b !important;
  font-weight: 800;
  border-color: #ffffff;
}

.time-slot-btn.selected strong,
.time-slot-btn.selected small {
  color: #09090b !important;
}

.comm-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0;
}

.comm-option-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #18181b;
  border: 1px solid var(--border-glass-glow);
  padding: 16px 18px;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  transition: var(--transition);
  text-align: left;
}

.comm-option-btn small {
  color: #a1a1aa;
  transition: var(--transition);
}

.comm-option-btn:hover {
  background: #ffffff;
  color: #09090b !important;
  border-color: #ffffff;
  transform: translateX(4px);
}

.comm-option-btn:hover small {
  color: #3f3f46 !important;
}

.comm-option-btn:hover .comm-icon {
  background: #09090b;
  color: #ffffff;
}

.comm-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: var(--transition);
  flex-shrink: 0;
}

.comm-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
